retspen / webvirtcloud

WebVirtCloud is virtualization web interface for admins and users
1.64k stars 363 forks source link

I have a question about libvirt-python on macos10.14 #302

Open QZKrainpig opened 4 years ago

QZKrainpig commented 4 years ago

Running setup.py install for libvirt-python ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/dh/ns8vckrn12zbn_zl4bl9rgrc0000gn/T/pip-install-unW2HH/libvirt-python/setup.py'"'"'; file='"'"'/private/var/folders/dh/ns8vckrn12zbn_zl4bl9rgrc0000gn/T/pip-install-unW2HH/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 /private/var/folders/dh/ns8vckrn12zbn_zl4bl9rgrc0000gn/T/pip-record-nq06qS/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /Users/qzk/Library/Python/2.7/include/python2.7/libvirt-python cwd: /private/var/folders/dh/ns8vckrn12zbn_zl4bl9rgrc0000gn/T/pip-install-unW2HH/libvirt-python/ Complete output (44 lines): running install running build /usr/local/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt /usr/bin/python generator.py libvirt /usr/local/Cellar/libvirt/6.1.0_1/share/libvirt/api/libvirt-api.xml Found 466 functions in /usr/local/Cellar/libvirt/6.1.0_1/share/libvirt/api/libvirt-api.xml Found 0 functions in libvirt-override-api.xml Generated 359 wrapper functions Missing type converters: virTypedParameterPtr:2 virNWFilterBindingPtr *:1 virNetworkPortPtr:12 virNWFilterBindingPtr:8 virTypedParameterPtr :3 char :1 virNetworkPortPtr :1 ERROR: failed virConnectBaselineHypervisorCPU ERROR: failed virConnectListAllNWFilterBindings ERROR: failed virConnectSetIdentity ERROR: failed virDomainGetGuestInfo ERROR: failed virDomainGetLaunchSecurityInfo ERROR: failed virDomainSetIOThreadParams 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 virNetworkListAllPorts ERROR: failed virNetworkPortCreateXML ERROR: failed virNetworkPortDelete ERROR: failed virNetworkPortFree ERROR: failed virNetworkPortGetNetwork ERROR: failed virNetworkPortGetParameters ERROR: failed virNetworkPortGetUUID ERROR: failed virNetworkPortGetUUIDString ERROR: failed virNetworkPortGetXMLDesc ERROR: failed virNetworkPortLookupByUUID ERROR: failed virNetworkPortLookupByUUIDString ERROR: failed virNetworkPortRef ERROR: failed virNetworkPortSetParameters ERROR: failed virNodeGetSEVInfo error: command '/usr/bin/python' failed with exit status 1

ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/dh/ns8vckrn12zbn_zl4bl9rgrc0000gn/T/pip-install-unW2HH/libvirt-python/setup.py'"'"'; file='"'"'/private/var/folders/dh/ns8vckrn12zbn_zl4bl9rgrc0000gn/T/pip-install-unW2HH/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 /private/var/folders/dh/ns8vckrn12zbn_zl4bl9rgrc0000gn/T/pip-record-nq06qS/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /Users/qzk/Library/Python/2.7/include/python2.7/libvirt-python Check the logs for full command output.

catborise commented 4 years ago

hi @QZKrainpig why would you install webvirtcloud on macOS? for a special purpose?

i think you want to install libvirt-python to macOS. Before the libvirt-python you should install libvirt and pkgconfig. brew install libvirt brew install pkgconfig

install pip then, you should try install it with "pip install libvirt-python"