python - libvirt-python CentOS 的构建轮失败

标签 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,我会遇到 wheel 错误(见下文)。谁能帮我解决这个问题?

    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/

最佳答案

找到两个 upper_constraints 文件。一个在 python 站 pip 包中。更新了 libvirt-python 并修复了它(或者至少让我转到下一个安装错误!)

关于python - libvirt-python CentOS 的构建轮失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53788283/

相关文章:

python - 如何在 PyBox2D 中绘制圆形

python - 我真的需要 Visual Studio 2010 for PIP 才能工作吗?或者我可以安装 2013/2015 并且它可以工作吗?

python - 安装包(Python PIL/Pillow)但我无法导入它

python - pip install lxml 和 gdal 在 anaconda env 中失败

ruby - CentOS 5.4 和 Rubyworks——它变老了

python - 格式化德语的刻度标签,即以点作为千位分隔符,以逗号作为十进制分隔符

执行shell脚本时出现Python错误

python - 使用 pip 安装 Python 包源 tarball

php - Drupal 忽略服务器权限并显示权限错误

linux - 使用 Altiris DS 6.9 SP5 创建 Linux 的备份镜像