2017-02-07 3 views
0

Wenn ich versuche, libvirt-python über die Installation folgende:libvirt-python installieren, auf dem Mac Fehler

pip install libvirt-python 

Ich erhalte die folgende Fehlermeldung:

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/ 

Jede Hilfe würde geschätzt als ich Ich habe keine Ideen, wie ich das beheben kann.

Mac 10.11.4 Python 2.7.13 & 2.7.10 libvirt über Gebräu installiert

Warning: libvirt-3.0.0 already installed 

Antwort

1

Sie benötigen libvirt-python 3.0.0 aber das eine auf PyPI ist noch 2.5.0 zu installieren. Führen Sie diesen Befehl statt:

pip install https://libvirt.org/sources/python/libvirt-python-3.0.0.tar.gz 

Referenz:

+0

Vielen Dank !!! es funktionierte: D – Jele

1

Wir haben vergessen, die 3.0.0 Release PyPI hochladen. Dieser Fehler ist jetzt behoben. Wenn Sie es erneut versuchen, sollte es korrekt erstellt werden.

+0

Brilliant, danke. – Jele