When using sudo pip3 install atd to try and download the "after the deadline" module atd for python 3.6 I get the following error:
Failed to build atd
Installing collected packages: atd
Running setup.py install for atd ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tfcxr6us/atd/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-xsek23ca-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/atd
copying atd/__init__.py -> build/lib/atd
copying atd/atd.py -> build/lib/atd
running build_scripts
creating build/scripts-3.6
error: file '/tmp/pip-build-tfcxr6us/atd/bin\atddir.py' does not exist
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tfcxr6us/atd/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-xsek23ca-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-tfcxr6us/atd/
The package atd is a connector for McAfee ATD API. Is it what you want?
The package is outdated because its setup.py uses ez_setup, deprecated and removed from setuptools long ago. The package was not updated since 2015.
The package is only for windows as its setup.py declares a script bin\\atddir.py.
I'm sure the module is unusable. Perhaps it's not what you want. What "after the deadline" module are you looking for?
Related
I am failing to install SRC in Linux Mint 19 via PIP. I have attempted to paste the output and failed horribly, I have had to double space everything, otherwise, it comes out as one long run-on sentence. Not sure how to paste a readable output of my Linux terminal here. Sorry.....
Failed building wheel for src
Running setup.py clean for src
Failed to build src
Installing collected packages: src
Running setup.py install for src ... error
Complete output from command /usr/bin/python -u -c "import setuptools,
tokenize;__file__='/tmp/pip-build-l2mswq/src/setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
/tmp/pip-AeHl8U-record/install-record.txt --single-version-externally-managed --
compile --user --prefix=:
running install
error: error in command line: command 'InstallCommand' has no such option
'compile'
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-
build-l2mswq/src/setup.py';f=getattr(tokenize, 'open', open)
(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code,
__file__, 'exec'))" install --record /tmp/pip-AeHl8U-record/install-record.txt -
-single-version-externally-managed --compile --user --prefix=" failed with error
code 1 in /tmp/pip-build-l2mswq/src/
pip install src
tries to install src from PyPI — a package specifically created to not to be installed.
What are you trying to install?
Hey am trying to install faster-than-requests with and from file directly non of them works it gives an error :
PS C:\WINDOWS\system32> pip install faster-than-requests
Collecting faster-than-requests
Using cached https://files.pythonhosted.org/packages/90/15/72ffe29bf34b40b4b9881a89e0fbbf9d22ea0b493681965fd08ce1fafa7b/faster_than_requests-0.9.2.zip
Installing collected packages: faster-than-requests
Running setup.py install for faster-than-requests ... error
Complete output from command c:\users\gaming\appdata\local\programs\python\python37\python.exe -u -c "import setuptools, tokenize;file='C:\Users\GAMING\AppData\Local\Temp\pip-install-g86h8jtt\faster-than-requests\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\GAMING\AppData\Local\Temp\pip-record-8b_4dut4\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'faster_than_requests' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
Command "c:\users\gaming\appdata\local\programs\python\python37\python.exe -u -c "import setuptools, tokenize;file='C:\Users\GAMING\AppData\Local\Temp\pip-install-g86h8jtt\faster-than-requests\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\GAMING\AppData\Local\Temp\pip-record-8b_4dut4\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\GAMING\AppData\Local\Temp\pip-install-g86h8jtt\faster-than-requests\
Collecting zbar
Using cached https://files.pythonhosted.org/packages/33/54/cc5819efc9ee7e34b60b41e1d2d4753b6dd0c26a41c9a552611f66aa106e/zbar-0.10.tar.bz2
Installing collected packages: zbar
Running setup.py install for zbar ... error
Complete output from command c:\python27\python.exe -u -c "import
setuptools,
tokenize;file='c:\users\k\appdata\local\temp\pip-build-y0jgcd\zbar\setup.py';f=getattr(tokenize,
'open', open)(file);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, file, 'exec'))" install
--record c:\users\k\appdata\local\temp\pip-labpqj-record\install-record.txt
--single-version-externally-managed --compile:
running install
running build
running build_ext
building 'zbar' extension
error: INCLUDE environment variable is empty
Command "c:\python27\python.exe -u -c "import setuptools,
tokenize;file='c:\users\k\appdata\local\temp\pip-build-y0jgcd\zbar\setup.py';f=getattr(tokenize,
'open', open)(file);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, file, 'exec'))" install
--record c:\users\k\appdata\local\temp\pip-labpqj-record\install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in c:\users\k\appdata\local\temp\pip-build-y0jgcd\zbar\
how to fix this problem
Try the install steps provided in : https://github.com/ZBar/ZBar/blob/master/README
This question already has answers here:
pip install failing with: OSError: [Errno 13] Permission denied on directory
(9 answers)
Closed 5 years ago.
I'm trying to install a package called turicreate on my device. I want to use it in code written in python 2.7
I have both python 3.6 and python 2.7 on my device so I'm trying to use the command:
$ python2.7 -m pip install turicreate
and then I get this error:
Running setup.py install for prettytable ... error
Complete output from command /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/var/folders/4d/3qphp3b56cjdhdqh3jcv994r0000gn/T/pip-build-Uya2Ub/prettytable/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/4d/3qphp3b56cjdhdqh3jcv994r0000gn/T/pip-3wU21B-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib
copying prettytable.py -> build/lib
running install_lib
copying build/lib/prettytable.py -> /Library/Python/2.7/site-packages
error: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/prettytable.py'
----------------------------------------
Command "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/var/folders/4d/3qphp3b56cjdhdqh3jcv994r0000gn/T/pip-build-Uya2Ub/prettytable/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/4d/3qphp3b56cjdhdqh3jcv994r0000gn/T/pip-3wU21B-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/4d/3qphp3b56cjdhdqh3jcv994r0000gn/T/pip-build-Uya2Ub/prettytable/
Could someone please propose a solution to this issue?
Thanks,
Abe
PS: I'm on Mac and doing this in terminal.
This error means that you do not have administrator permissions to write in the dictionary. In order to gain this permission you need to use the sudo prefix.
sudo python2.7 -m pip install turicreate
When i try to install libvirt-python via the following:
pip install libvirt-python
I get the following error:
Collecting libvirt-python
Downloading libvirt-python-2.5.0.tar.gz (172kB)
100% |████████████████████████████████| 174kB 2.4MB/s
Building wheels for collected packages: libvirt-python
Running setup.py bdist_wheel for libvirt-python ... error
Complete output from command /usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/h4/8vv21pzx2k9471lzymg_r3th0000gp/T/pip-build-JcUj3e/libvirt-python/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 /var/folders/h4/8vv21pzx2k9471lzymg_r3th0000gp/T/tmp79QS6spip-wheel- --python-tag cp27:
running bdist_wheel
running build
/usr/local/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt
/usr/local/opt/python/bin/python2.7 generator.py libvirt /usr/local/Cellar/libvirt/3.0.0/share/libvirt/api/libvirt-api.xml
Found 418 functions in /usr/local/Cellar/libvirt/3.0.0/share/libvirt/api/libvirt-api.xml
Found 0 functions in libvirt-override-api.xml
Generated 344 wrapper functions
Missing type converters:
virConnectSecretEventGenericCallback:1
virStorageVolInfoPtr:1
ERROR: failed virConnectSecretEventRegisterAny
ERROR: failed virStorageVolGetInfoFlags
error: command '/usr/local/opt/python/bin/python2.7' failed with exit status 1
----------------------------------------
Failed building wheel for libvirt-python
Running setup.py clean for libvirt-python
Failed to build libvirt-python
Installing collected packages: libvirt-python
Running setup.py install for libvirt-python ... error
Complete output from command /usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/h4/8vv21pzx2k9471lzymg_r3th0000gp/T/pip-build-JcUj3e/libvirt-python/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/h4/8vv21pzx2k9471lzymg_r3th0000gp/T/pip-eNRl_m-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
/usr/local/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt
/usr/local/opt/python/bin/python2.7 generator.py libvirt /usr/local/Cellar/libvirt/3.0.0/share/libvirt/api/libvirt-api.xml
Found 418 functions in /usr/local/Cellar/libvirt/3.0.0/share/libvirt/api/libvirt-api.xml
Found 0 functions in libvirt-override-api.xml
Generated 344 wrapper functions
Missing type converters:
virConnectSecretEventGenericCallback:1
virStorageVolInfoPtr:1
ERROR: failed virConnectSecretEventRegisterAny
ERROR: failed virStorageVolGetInfoFlags
error: command '/usr/local/opt/python/bin/python2.7' failed with exit status 1
----------------------------------------
Command "/usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/h4/8vv21pzx2k9471lzymg_r3th0000gp/T/pip-build-JcUj3e/libvirt-python/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/h4/8vv21pzx2k9471lzymg_r3th0000gp/T/pip-eNRl_m-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/h4/8vv21pzx2k9471lzymg_r3th0000gp/T/pip-build-JcUj3e/libvirt-python/
Any help would be appreciated as I'm out of ideas on how to fix this.
Mac 10.11.4
Python 2.7.13 & 2.7.10
libvirt installed via brew
Warning: libvirt-3.0.0 already installed
You need to install libvirt-python 3.0.0 but the one on PyPI is still 2.5.0. Run this command instead:
pip install https://libvirt.org/sources/python/libvirt-python-3.0.0.tar.gz
Reference:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=852886
We forgot to upload the 3.0.0 release to PyPI. This mistake is resolved now, so if you retry it should build correctly.