libvirt-python CentOS的构建轮失败

时间:2018-12-14 23:46:00

标签: python pip centos openstack devstack

我正在运行CentOS并尝试安装openstack。 如果我安装libvirt-python,它将安装最新版本,例如

pip install --user libvirt-python
Collecting libvirt-python
Installing collected packages: libvirt-python
Successfully installed libvirt-python-4.10.0

但是,upper_constraints.txt(在运行时动态更新,不确定在哪里设置)列表 libvirt-python === 3.10.0

如果我卸载libvirt-python并尝试安装3.10.0,则会收到车轮错误(请参见下文)。有人可以帮我吗?

    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/

1 个答案:

答案 0 :(得分:0)

找到了两个upper_constraints文件。一种是在python site-packages中。更新了libvirt-python和已修复的问题(或至少将我转移到下一个安装错误!)