question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installation Fails Because of __version__ Import (v0.6)

See original GitHub issue

c88b376 tried to make things easier to manage by doing from flask_user import __version__ as flask_user_version in setup.py. However, that has an undesirable consequence: users who don’t already have passlib installed could face an ImportError, preventing installation of Flask-User.

To reproduce (ensure passlib is not already installed):

$ pip install --no-cache-dir Flask-User==0.6.17
Collecting Flask-User==0.6.17 (from -r requirements.txt (line 13))
  Downloading Flask-User-0.6.17.tar.gz (62kB)
    100% |████████████████████████████████| 71kB 6.0MB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-c6f9o6kh/Flask-User/setup.py", line 5, in <module>
        from flask_user import __version__ as flask_user_version
      File "/tmp/pip-build-c6f9o6kh/Flask-User/flask_user/__init__.py", line 7, in <module>
        from passlib.context import CryptContext
    ImportError: No module named 'passlib'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-c6f9o6kh/Flask-User/

Note that if the packages are cached, it could also appear to work fine, which is why --no-cache-dir is needed.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
matthijskooijmancommented, Sep 13, 2017

Hm, I can’t quite find this 0.6.19 release anywhere? It seems that git tags haven’t been created since the 0.5 series, but I can’t find a commit fixing this in (or releasing 0.6.19) in either the master or 0.6.x branches? And pypy still seems to list 0.6.17 as the latest version. I might be ignorant on how this works and I might just need to be more patient, but it seems I’m missing something here?

1reaction
lingthiocommented, Sep 16, 2017

I’m so sorry. I apparently was overwhelmed, and forgot to release the v0.6.19 build to PyPi. I’ve fixed this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to install/import fastparquet · Issue #601
Attempt to install the 0.6.0.post1 version discussed in the issue #598 with the following command: : pip install fastparquet==0.6.0.post1.
Read more >
Error in importing environment OpenAI Gym - python
After installing gym, it is 80 games. After installing gym[atari], it is 267 games. And you have to accept the specific licenses to...
Read more >
Package Installation — halotools v0.8.2.dev4+g17422b8
Package Installation¶. To install Halotools, you can use conda-forge (recommended), pip, or clone the repo from GitHub and build the source code.
Read more >
Installation Guide :: NVIDIA Deep Learning TensorRT ...
This NVIDIA TensorRT 8.5.2 Installation Guide provides the installation requirements, a list of what is included in the TensorRT package, ...
Read more >
Installing with Anaconda / conda
To install the latest version of GeoPandas, you can then do: ... packages from both channels for the dependencies of GeoPandas can lead...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found