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.
Related
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\
i wanted to install PyAutoGUI via pip.
It worked, until it installed Pillow.
Here is the error:
Command "c:\users\erazor\appdata\local\programs\python\python38\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Erazor\AppData\Local\Temp\pip-install-ff50gy2x\Pillow\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\Erazor\AppData\Local\Temp\pip-record-hfqa44g5\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Erazor\AppData\Local\Temp\pip-install-ff50gy2x\Pillow\
Here is a Hastebin forme the command promt.
I hope you can help me.
EDIT: I tried han solos comment. It did not Work its the Same error but now i get
Failed building wheel for Pillow
as an additional error.
EDIT: New error:
Building wheels for collected packages: Pillow
Building wheel for Pillow (setup.py) ... error
Failed building wheel for Pillow
Running setup.py clean for Pillow
Failed to build Pillow
Installing collected packages: Pillow, pyscreeze, pyautogui
Running setup.py install for Pillow ... error
Command "c:\users\erazor\appdata\local\programs\python\python38\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Erazor\AppData\Local\Temp\pip-install-m5b1ubtx\Pillow\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\Erazor\AppData\Local\Temp\pip-record-ot3l1c72\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Erazor\AppData\Local\Temp\pip-install-m5b1ubtx\Pillow\
Pillow's latest supported Python version is 3.7, not 3.8.
I'm running CentOS and trying to install openstack.
If I install libvirt-python, it will install the latest version e.g.
pip install --user libvirt-python
Collecting libvirt-python
Installing collected packages: libvirt-python
Successfully installed libvirt-python-4.10.0
However, the upper_constraints.txt (which is dynamically updated at runtime, not sure where it's getting set) lists
libvirt-python===3.10.0
If I uninstall libvirt-python and try to install 3.10.0 I'm getting a wheel error (see below). Can anyone help me with this?
pip install --user libvirt-python==3.10.0
Collecting libvirt-python==3.10.0
Using cached
https://files.pythonhosted.org/packages/20/b3/d7e226a07efa1432a4dcf92b3baa0cf554241a7eecd8a654c23c2119b190/libvirt-python-3.10.0.tar.gz
Building wheels for collected packages: libvirt-python
Running setup.py bdist_wheel for libvirt-python ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-Ry0ikH/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 /tmp/pip-wheel-GwcOJA --python-tag cp27:
running bdist_wheel
running build
/usr/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt
/usr/bin/python generator.py libvirt /usr/share/libvirt/api/libvirt-api.xml
Found 446 functions in /usr/share/libvirt/api/libvirt-api.xml
Found 0 functions in libvirt-override-api.xml
Generated 355 wrapper functions
Missing type converters:
virNWFilterBindingPtr:8
virTypedParameterPtr *:2
virNWFilterBindingPtr **:1
char **:1
ERROR: failed virConnectBaselineHypervisorCPU
ERROR: failed virConnectListAllNWFilterBindings
ERROR: failed virDomainGetLaunchSecurityInfo
ERROR: failed virNWFilterBindingCreateXML
ERROR: failed virNWFilterBindingDelete
ERROR: failed virNWFilterBindingFree
ERROR: failed virNWFilterBindingGetFilterName
ERROR: failed virNWFilterBindingGetPortDev
ERROR: failed virNWFilterBindingGetXMLDesc
ERROR: failed virNWFilterBindingLookupByPortDev
ERROR: failed virNWFilterBindingRef
ERROR: failed virNodeGetSEVInfo
error: command '/usr/bin/python' 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/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-Ry0ikH/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 /tmp/pip-record-7u_zLd/install-record.txt --single-version-externally-managed --compile --user --prefix=:
running install
running build
/usr/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt
/usr/bin/python generator.py libvirt /usr/share/libvirt/api/libvirt-api.xml
Found 446 functions in /usr/share/libvirt/api/libvirt-api.xml
Found 0 functions in libvirt-override-api.xml
Generated 355 wrapper functions
Missing type converters:
virNWFilterBindingPtr:8
virTypedParameterPtr *:2
virNWFilterBindingPtr **:1
char **:1
ERROR: failed virConnectBaselineHypervisorCPU
ERROR: failed virConnectListAllNWFilterBindings
ERROR: failed virDomainGetLaunchSecurityInfo
ERROR: failed virNWFilterBindingCreateXML
ERROR: failed virNWFilterBindingDelete
ERROR: failed virNWFilterBindingFree
ERROR: failed virNWFilterBindingGetFilterName
ERROR: failed virNWFilterBindingGetPortDev
ERROR: failed virNWFilterBindingGetXMLDesc
ERROR: failed virNWFilterBindingLookupByPortDev
ERROR: failed virNWFilterBindingRef
ERROR: failed virNodeGetSEVInfo
error: command '/usr/bin/python' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-Ry0ikH/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 /tmp/pip-record-7u_zLd/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-Ry0ikH/libvirt-python/
Found two upper_constraints files. One is in the python site-packages. Updated both for libvirt-python and that has fixed it (or at least moved me on to the next install error!)
it needs dev tool installation
use: apt-get install libvirt-dev to install dev tool then t
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
I'm trying to install Pillow using
pip install pillow
But everytime it does that:
Failed building wheel for Pillow Running setup.py clean for Pillow
Failed to build Pillow
Command "/data/data/com.termux/files/usr/bin/python -u -c "import setuptools, tokenize;file='/data/data/com.termux/files/usr/tmp/pip-build-rzy91xcz/pillow/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /data/data/com.termux/files/usr/tmp/pip-d_if45hl-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /data/data/com.termux/files/usr/tmp/pip-build-rzy91xcz/pillow/
It also says that:
unable to execute 'aarch64-linux-android-clang': No such file or directory error: command 'aarch64-linux-android-clang' failed with exit status 1
I solved this by installing clang
pkg install clang
Thank you to abarnet and sorry for late answer to myself haha I'm late because I sixed this week ago.