Error trying to Install sheetsync using pip - python

I am trying to currently install a library called syncsheets but am receiving the following error. I have looked around similar situations having similar issues and arrived at one conclusion but am still having a hard time understanding my current situation. Ref Question: NameError: name 'execfile' is not defined installing fandjango on Python3
I am under the impression this library only supports python2, any help/confirmation would really be appreciated on how I can work around this error. Thank you!
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ip2brw81/sheetsync/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ip2brw81/sheetsync/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-tyozokps
cwd: /tmp/pip-install-ip2brw81/sheetsync/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-ip2brw81/sheetsync/setup.py", line 4, in <module>
execfile(os.path.join('sheetsync','version.py'))
NameError: name 'execfile' is not defined
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

The library that I think you're trying to install, sheetsync is only compatible with python2. In your question you are attempting to install with python3.

Related

Cannot install xml.etree.elementtree in pycharm

Using cached pycopy-xml.etree.ElementTree-0.1.2.tar.gz (1.9 kB)
DEPRECATION: The -b/--build/--build-dir/--build-directory option is deprecated. pip 20.3 will remove support for this functionality. A possible replacement is use the TMPDIR/TEMP/TMP environment variable, possibly combined with --no-clean. You can find discussion regarding this at https://github.com/pypa/pip/issues/8333.
ERROR: Command errored out with exit status 1:
command: 'F:\Python\venv\Scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pycharm-packaging\\pycopy-xml-etree-elementtree\\setup.py'"'"'; __file__='"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pycharm-packaging\\pycopy-xml-etree-elementtree\\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\hp\AppData\Local\Temp\pip-pip-egg-info-ncg_nv94'
cwd: C:\Users\hp\AppData\Local\Temp\pycharm-packaging\pycopy-xml-etree-elementtree\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\hp\AppData\Local\Programs\Python\Python37-32\lib\tokenize.py", line 447, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\hp\\AppData\\Local\\Temp\\pycharm-packaging\\pycopy-xml-etree-elementtree\\setup.py'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
No, you don't need to install py-xml: the ElementTree API is part of the standard library of Python
here
In fact, py-xml is an old and probably obsolete package whose installation script appears to be only compatible with Python 2. One more reason why you don't need to install it!
If you would have just put the import statement in your code it would have worked without any issue in that regard.

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.

Python: ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output

I have a installation problem with pip where I failed to install a library called minecraft
> ERROR: Command errored out with exit status 1:
command: 'c:\users\admin\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-_zussc0h\\minecraft\\setup.py'"'"'; __file__='"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-_zussc0h\\minecraft\\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: C:\Users\Admin\AppData\Local\Temp\pip-install-_zussc0h\minecraft\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Admin\AppData\Local\Temp\pip-install-_zussc0h\minecraft\setup.py", line 9, in <module>
with open(NOTICE, 'r', encoding='utf-8') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-_zussc0h\\minecraft\\setup.py\\..\\..\\NOTICE.rst'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I try some methods to fix it, like "pip install -U setuptools", but is it not working.
So, i really don't know how to fix it. Can you help me?
By the way, i am using Python3
https://pypi.org/project/minecraft/
This is not a usable Python package, but the name is reserved by Micro$oft Corporation.
(Emphasize and edits are mine — phd)
This is a bug in the package, not sure if it's deliberate. The package is uninstallable but anyway it's not intended for installation.

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!!

Categories