ERROR: Command errored out with exit status 1 while installing requirements - python

ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ib3vl4vt/web.py/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ib3vl4vt/web.py/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 pip-egg-info
cwd: /tmp/pip-install-ib3vl4vt/web.py/
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-ib3vl4vt/web.py/setup.py", line 6, in <module>
from web import __version__
File "/tmp/pip-install-ib3vl4vt/web.py/web/__init__.py", line 14, in <module>
import utils, db, net, wsgi, http, webapi, httpserver, debugerror
ModuleNotFoundError: No module named 'utils'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
While installing requirements.txt in InsecureBankv2/AndroLabServer, I got this errors.
Because of these problems, It seems like InsecureBankv2 app won't login to my server.
What should I do to solve this problem?

Have you tried
pip install utils

How i got around this error message was do py -3 -m pip install and it worked properly. I'm using Windows 10 as of July 2020 and inside of a virtual environment.
The error was happening when i attempted to install coderedcms.

try this for linux
python3 -m pip install win32gui

Related

Python3-pip wont install package

I tried to install the turtle-package for python3 via pip. But it just returns an error. I recently switched to xubuntu and I am not sure what to do. Any help??
pip install turtle
The output I get is:
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wewhl4kt/turtle/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wewhl4kt/turtle/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-pip-egg-info-ota0vbai
cwd: /tmp/pip-install-wewhl4kt/turtle/
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-wewhl4kt/turtle/setup.py", line 40
except ValueError, ve:
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
If you want to install the PythonTurtle package, then from the PyPI website the command to write is
pip install PythonTurtle
or
python3 -m pip install --user PythonTurtle
PythonTurtle
It looks like the package you're downloading is broken. The maintainer of the project has probably abandoned the project. Are you sure that this is the package you want to be installing?

Keep returning error when trying to install MySQL-python on mac

I've tried sudo pip install MySQL-python
I have python 3 and python 2 on my Mac 10.14
and I keep getting this error:
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-00klz8kk/mysql-python/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-00klz8kk/mysql-python/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 /private/tmp/pip-pip-egg-info-98ox2mo0
cwd: /private/tmp/pip-install-00klz8kk/mysql-python/
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/tmp/pip-install-00klz8kk/mysql-python/setup.py", line 13, in <module>
from setup_posix import get_config
File "/private/tmp/pip-install-00klz8kk/mysql-python/setup_posix.py", line 2, in <module>
from ConfigParser import SafeConfigParser
ModuleNotFoundError: No module named 'ConfigParser'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
try installing the following which are the same,
pip install pymysql
pip install mysql-connector
pip intsall mysql-connector-python

I am facing "from setuptools import find_namespace_packages" error in python-2.7 while trying to install dm-sonnet package. Any possible solution?

I need to use python-2.7 for some script, setuptools==39.1.0, I cannot pip install dm-sonnet, is there supposed to be find_namespace_packages inside setuptools? Its not there in this setuptools(or v44)
Error message:
ERROR: Command errored out with exit status 1:
command: /home/russo/anaconda3/envs/russo2/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9l072x/dm-sonnet/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9l072x/dm-sonnet/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-9l072x/dm-sonnet/pip-egg-info
cwd: /tmp/pip-install-9l072x/dm-sonnet/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-9l072x/dm-sonnet/setup.py", line 7, in <module>
from setuptools import find_namespace_packages
ImportError: cannot import name find_namespace_packages
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
dm-sonnet requires Python 3. You cannot use it with Python 2.
In the commit 00612ca setup.py uses find_packages. You can try this version with Python 2.7. It's perhaps release 1.36 or earlier. Try
pip2 install dm-sonnet==1.36
or
pip2 install 'dm-sonnet<2'

Problems with pip or pip3 install requirements.txt what I should to do to fix this error?

I run into the error below when running either command lines;
# Using pip
pip install requirements.txt
# Using pip3
pip3 install requirements.txt
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-evkbiocv/poster/setup.py'"'"'; file='"'"'/tmp/pip-install-evkbiocv/poster/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-evkbiocv/poster/pip-egg-info
cwd: /tmp/pip-install-evkbiocv/poster/
Complete output (10 lines):
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-evkbiocv/poster/setup.py", line 2, in
import poster
File "/tmp/pip-install-evkbiocv/poster/poster/init.py", line 29, in
import poster.streaminghttp
File "/tmp/pip-install-evkbiocv/poster/poster/streaminghttp.py", line 61
print "send:", repr(value)
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.`
What am I doing wrong and how can I fix it?
poster — the latest version was released in 2011. Obviously the package is for Python 2 and abandoned.
For HTTP use requests.

I'm trying to install -r requirements.txt from a flask app from github

I keep getting the following error:
ERROR: Command errored out with exit status 1:
command: /Users/felipeveraloza/Desktop/flask-aws-tutorial/flask-aws/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/_d/tpx546q90svbs7y84bgplfpm0000gn/T/pip-install-qql4powj/distribute/setup.py'"'"'; __file__='"'"'/private/var/folders/_d/tpx546q90svbs7y84bgplfpm0000gn/T/pip-install-qql4powj/distribute/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 /private/var/folders/_d/tpx546q90svbs7y84bgplfpm0000gn/T/pip-install-qql4powj/distribute/pip-egg-info
cwd: /private/var/folders/_d/tpx546q90svbs7y84bgplfpm0000gn/T/pip-install-qql4powj/distribute/
Complete output (10 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/_d/tpx546q90svbs7y84bgplfpm0000gn/T/pip-install-qql4powj/distribute/setuptools/__init__.py", line 2, in <module>
from setuptools.extension import Extension, Library
File "/private/var/folders/_d/tpx546q90svbs7y84bgplfpm0000gn/T/pip-install-qql4powj/distribute/setuptools/extension.py", line 2, in <module>
from setuptools.dist import _get_unpatched
File "/private/var/folders/_d/tpx546q90svbs7y84bgplfpm0000gn/T/pip-install-qql4powj/distribute/setuptools/dist.py", line 103
except ValueError, e:
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Did you try?
$ pip install -r requirements.txt
I would specify the version of Pip you are using. Mac is defaulted to python 2.7... in your case i would run the command as "pip3" so in your case...
pip3 install -r requirements.txt

Categories