-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't install flask-mongoengine in my virtual environment #402
Comments
Can you install anything else or is it just a problem with flask-mongoengine |
problem with flask-mongoengine only |
if there is a permission issue or python conflict in windows, usually explicitly specififying pip module helps, |
Hey, I can reproduce this issue. (venv) chpross@vmd21292:~/project-elrond$ python3 -m pip install flask-mongoengine
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. |
@christopherpross can you share your environment(OS version) python version etc, I will try to reproduce it on my system if it is linux/mac. |
@vinu76jsr hey, of curse:
hope it helps. |
@keerthivasan-g @christopherpross |
@christopherpross master version install success. |
same here! Already using master version. |
I had the same problem with Python 3.7.8 installing from PyPI. Installing from master works fine but I was wondering if there's a plan to publish new releases as the latest release on GitHub is 0.9.2 (Feb 2017), PyPI is 0.9.5 (Feb 2018) and the current setup.py is 0.10.7. Thanks! |
Same problem here $ python3
Python 3.8.2 (default, Jul 16 2020, 14:00:26)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
ubuntu: Ubuntu 20.04 LTS (64 bit)
shell: zsh $ pip install -r requirements/dev.txt
Requirement already satisfied: Flask in ./.venv/lib/python3.8/site-packages (from -r requirements/base.txt (line 1)) (1.1.2)
Collecting Flask-RESTful
Using cached Flask_RESTful-0.3.8-py2.py3-none-any.whl (25 kB)
Collecting python-dotenv
Using cached python_dotenv-0.14.0-py2.py3-none-any.whl (17 kB)
Requirement already satisfied: pymongo in ./.venv/lib/python3.8/site-packages (from -r requirements/base.txt (line 4)) (3.11.0)
Collecting flask-mongoengine
Using cached flask-mongoengine-0.9.5.tar.gz (111 kB)
ERROR: Command errored out with exit status 1:
command: /home/lucas/workspaces/plataformafii/apis/api-plataforma-fii/.venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-k1g0t687/flask-mongoengine/setup.py'"'"'; __file__='"'"'/tmp/pip-install-k1g0t687/flask-mongoengine/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-k1g0t687/flask-mongoengine/pip-egg-info
cwd: /tmp/pip-install-k1g0t687/flask-mongoengine/
Complete output (44 lines):
WARNING: The wheel package is not available.
ERROR: Command errored out with exit status 1:
command: /home/lucas/workspaces/plataformafii/apis/api-plataforma-fii/.venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-z8t7tfli/rednose/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-z8t7tfli/rednose/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-alm6064h
cwd: /tmp/pip-wheel-z8t7tfli/rednose/
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
ERROR: Failed building wheel for rednose
ERROR: Failed to build one or more wheels
Traceback (most recent call last):
File "/home/lucas/workspaces/plataformafii/apis/api-plataforma-fii/.venv/lib/python3.8/site-packages/setuptools/installer.py", line 128, in fetch_build_egg
subprocess.check_call(cmd)
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/lucas/workspaces/plataformafii/apis/api-plataforma-fii/.venv/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpyp1dkgh9', '--quiet', 'rednose']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-k1g0t687/flask-mongoengine/setup.py", line 36, in <module>
setup(
File "/home/lucas/workspaces/plataformafii/apis/api-plataforma-fii/.venv/lib/python3.8/site-packages/setuptools/__init__.py", line 164, in setup
_install_setup_requires(attrs)
File "/home/lucas/workspaces/plataformafii/apis/api-plataforma-fii/.venv/lib/python3.8/site-packages/setuptools/__init__.py", line 159, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/home/lucas/workspaces/plataformafii/apis/api-plataforma-fii/.venv/lib/python3.8/site-packages/setuptools/dist.py", line 699, in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "/home/lucas/workspaces/plataformafii/apis/api-plataforma-fii/.venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 779, in resolve
dist = best[req.key] = env.best_match(
File "/home/lucas/workspaces/plataformafii/apis/api-plataforma-fii/.venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1064, in best_match
return self.obtain(req, installer)
File "/home/lucas/workspaces/plataformafii/apis/api-plataforma-fii/.venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1076, in obtain
return installer(requirement)
File "/home/lucas/workspaces/plataformafii/apis/api-plataforma-fii/.venv/lib/python3.8/site-packages/setuptools/dist.py", line 758, in fetch_build_egg
return fetch_build_egg(self, req)
File "/home/lucas/workspaces/plataformafii/apis/api-plataforma-fii/.venv/lib/python3.8/site-packages/setuptools/installer.py", line 130, in fetch_build_egg
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['/home/lucas/workspaces/plataformafii/apis/api-plataforma-fii/.venv/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpyp1dkgh9', '--quiet', 'rednose']' returned non-zero exit status 1.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. |
Hey.
|
I guess it relate to pypa/setuptools#1934 (comment) Caused by Line 54 in 93bd9b9
|
Thanks, this work for me. ( |
The problem is that that there is no Python 3 wheel for flask-mongoengine 0.9.5, see #410. |
Hi, dear all. Thank you for patience. Unfortunately (or maybe hopefully?) i am currently has no flask or mongo related projects, so my time here is very limited. After some fight with travis, I was able to deploy new version to pip. Please check. |
This still does not seem to be working. I keep getting the same error:
I have also tried
|
@qre0ct The answer to your question is in second line of copy/paste. |
pip install flask-mongoengine
Collecting flask-mongoengine
Using cached flask-mongoengine-0.9.5.tar.gz (111 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\keerthivasan\desktop\pybox\venv\scripts\python.exe' -c 'import
sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\keerthivasan\AppData\Local
\Temp\pip-install-su4c26f2\flask-mongoengine\setup.py'"'"'; file='"'"'C:\User
s\keerthivasan\AppData\Local\Temp\pip-install-su4c26f2\flask-mongoengine\setup.
py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"
'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg
_info --egg-base 'C:\Users\keerthivasan\AppData\Local\Temp\pip-pip-egg-info-xw613uem'
cwd: C:\Users\keerthivasan\AppData\Local\Temp\pip-install-su4c26f2\flask-mong
oengine\
im trying to install flask-mongoengine but can't for some reasons. Help me out
The text was updated successfully, but these errors were encountered: