Problem installing VCS module in python: Command error - python

I am trying to install VCS via pip3 install vcs but encountered this error:
Collecting vcs
Using cached vcs-0.4.0.tar.gz (482 kB)
ERROR: Command errored out with exit status 1:
command: /Users/lyndz/opt/miniconda3/bin/python -c 'import sys, setuptools, tokenize;
sys.argv[0] = '"'"'/private/var/folders/39/z65bwzg92zbcj_9jhmv7pm2c0000gn/T/pip-install-
lwcjhwsx/vcs/setup.py'"'"';
__file__='"'"'/private/var/folders/39/z65bwzg92zbcj_9jhmv7pm2c0000gn/T/pip-install-
lwcjhwsx/vcs/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/39/z65bwzg92zbcj_9jhmv7pm2c0000gn/T/pip-pip-egg-info-o6brd8bc
cwd: /private/var/folders/39/z65bwzg92zbcj_9jhmv7pm2c0000gn/T/pip-install-lwcjhwsx/vcs/
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/39/z65bwzg92zbcj_9jhmv7pm2c0000gn/T/pip-install-
lwcjhwsx/vcs/setup.py", line 11
except IOError, err:
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for
full command output.
Any ideas on solving this?
I'll appreciate any help.

I believe this problem is because of python3 syntax which doesn't allow except IOError, e. You should fork that pip package in your Github and change that exception like below:
except IOError as err:

Related

Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output - while installing pycopy-fcntl through pip

I was trying to install pycopy-fcntl via pip package installer but it was giving this error(newbie in stackoverflow).
ERROR: Command errored out with exit status 1:
command: 'c:\users\lg\appdata\local\programs\python\python37\python.exe' -c 'import sys, setuptools,
tokenize; sys.argv[0] = '"'"'C:\\Users\\lg\\AppData\\Local\\Temp\\pip-install-bjhg1nur\\pycopy-
fcntl\\setup.py'"'"'; __file__='"'"'C:\\Users\\lg\\AppData\\Local\\Temp\\pip-install-
bjhg1nur\\pycopy-fcntl\\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\lg\AppData\Local\Temp\pip-pip-egg-info-
00tiv3i6'
cwd: C:\Users\lg\AppData\Local\Temp\pip-install-bjhg1nur\pycopy-fcntl\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\lg\appdata\local\programs\python\python37\lib\tokenize.py", line 447, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\lg\\AppData\\Local\\Temp\\pip-install-bjhg1nur\\pycopy-fcntl\\setup.py'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I had tried this code pip install --upgrade setuptools still the error arrives.
I can't understand, what is the error telling about?
Thanks in advance, Sir/Mam.
The source code doesn't have setup.py
The package lacks almost all files including setup.py.
The bottom line: the package is either broken or is not intended to be installed with pip.

How to install Vizdoom python

I am new to programming, I am trying to install vizdoom on windows 10, python. Using the command:
pip install vizdoom
and keep getting this error, I have tried searching around, have spent hours but am not able to fix it.
Collecting vizdoom Using cached vizdoom-1.1.7.tar.gz (4.9 MB)
ERROR: Command errored out with exit status 1:
command: 'C:\Users\USER\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\python.exe'
-c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-sqhbgmz4\\vizdoom\\setup.py'"'"';
__file__='"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-sqhbgmz4\\vizdoom\\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\USER\AppData\Local\Temp\pip-pip-egg-info-m7e2idad'
cwd: C:\Users\USER\AppData\Local\Temp\pip-install-sqhbgmz4\vizdoom\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\USER\AppData\Local\Temp\pip-install-sqhbgmz4\vizdoom\setup.py", line 14, in <module>
raise RuntimeError("Building pip package on Windows is not currently available ...")
RuntimeError: Building pip package on Windows is not currently available ...
---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
as a last resort, I hope to get some help from here.
Never mind, I switched to ubuntu.

Intalling python-midi package in Anaconda

I'm trying to install the following Python-Midi Package (GitHub link) inside an Anaconda envirorment using pip (it works fine, i've already used it for many packages) with the command pip install python-midi.
Unfortunately i keep getting the following error:
ERROR: Command errored out with exit status 1: command: 'C:\Users\Mattia\anaconda3\envs\trapgenerator\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Mattia\\AppData\\Local\\Temp\\pip-install-3jtz232d\\python-midi\\setup.py'"'"'; __file__='"'"'C:\\Users\\Mattia\\AppData\\Local\\Temp\\pip-install-3jtz232d\\python-midi\\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\Mattia\AppData\Local\Temp\pip-install-3jtz232d\python-midi\pip-egg-info' cwd: C:\Users\Mattia\AppData\Local\Temp\pip-install-3jtz232d\python-midi\ Complete output (6 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\Mattia\AppData\Local\Temp\pip-install-3jtz232d\python-midi\setup.py", line 42 print "No sequencer available for '%s' platform." % platform ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("No sequencer available for '%s' platform." % platform)? ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
And i can't really figure out what is the problem. Anyone has any suggestions?
Unfortunately the mentioned python package is not compatible with Python 3, works only with Python 2

Got an error while installing turtle library

The error given below:
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Collecting turtle
Using cached turtle-0.0.2.tar.gz (11 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\soura\appdata\local\programs\python\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\soura\\AppData\\
Local\\Temp\\pip-install-fovg_cud\\turtle\\setup.py'"'"'; __file__='"'"'C:\\Users\\soura\\AppData\\Local\\Temp\\pip-install-fovg_cud\\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 --eg
g-base 'C:\Users\soura\AppData\Local\Temp\pip-install-fovg_cud\turtle\pip-egg-info'
cwd: C:\Users\soura\AppData\Local\Temp\pip-install-fovg_cud\turtle\
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\soura\AppData\Local\Temp\pip-install-fovg_cud\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.
In your code, you have a syntactic error next to an except in your code.
According to the error, you need to change line 1 to:
except ValueError:
#your code here
Hope this helps!!

Failed to install airflow with pip

pip command:
pip install google-cloud-storage apache-beam[gcp]==2.2.0 apache-airflow[gcp_api]==1.9.0 paramiko sshtunnel
Error:
ERROR: Command errored out with exit status 1:
command: /home/cyao/Project/itcorp-airflow/venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8hamva8l/apache-airflow/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8hamva8l/apache-airflow/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-8hamva8l/apache-airflow/pip-egg-info
cwd: /tmp/pip-install-8hamva8l/apache-airflow/
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-8hamva8l/apache-airflow/setup.py", line 102
async = [
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
This is the code from apache-airflow setup.py from version 1.9.0. In Python 3.7 the word async became a reserved keyword so the code is incompatible with Python 3.7+.
Either use Python 3.6 or use later version of apache-airflow.

Categories