Installation Fails Because of __version__ Import (v0.6)
See original GitHub issuec88b376 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:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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?
I’m so sorry. I apparently was overwhelmed, and forgot to release the v0.6.19 build to PyPi. I’ve fixed this.