Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install libvirt-python on El Capitan #50

Closed
pavelz opened this issue Jul 29, 2016 · 15 comments
Closed

Can't install libvirt-python on El Capitan #50

pavelz opened this issue Jul 29, 2016 · 15 comments

Comments

@pavelz
Copy link

pavelz commented Jul 29, 2016

==> Installing virt-manager from jeffreywildman/virt-manager
==> Downloading https://fedorahosted.org/released/virt-manager/virt-manager-1.4.0.tar.gz
Already downloaded: /Users/pavel/Library/Caches/Homebrew/virt-manager-1.4.0.tar.gz
==> Patching
patching file virt-clone
patching file virt-convert
patching file virt-install
patching file virt-manager
patching file virt-xml
==> Downloading https://libvirt.org/sources/python/libvirt-python-1.3.5.tar.gz
Already downloaded: /Users/pavel/Library/Caches/Homebrew/virt-manager--libvirt-python-1.3.5.tar.gz
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cellar/virt-manager/1.4.0/libexec/vendor --single-version-externally-managed --record=installed.txt
Last 15 lines from /Users/pavel/Library/Logs/Homebrew/virt-manager/01.python:
--record=installed.txt

running install
running build
/usr/local/opt/pkg-config/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/2.0.0/share/libvirt/api/libvirt-api.xml
Found 413 functions in /usr/local/Cellar/libvirt/2.0.0/share/libvirt/api/libvirt-api.xml
Found 0 functions in libvirt-override-api.xml
Generated 343 wrapper functions
Missing type converters:
virTypedParameterPtr *:1
virConnectStoragePoolEventGenericCallback:1
ERROR: failed virConnectStoragePoolEventRegisterAny
ERROR: failed virDomainGetGuestVcpus
error: command '/usr/local/opt/python/bin/python2.7' failed with exit status 1

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
https://github.com/jeffreywildman/homebrew-virt-manager/issues

@jessiebryan
Copy link

I'm also having this issue today.

@pavelz
Copy link
Author

pavelz commented Jul 29, 2016

i have tried to use it with libvirt-python-2.0.0, it installs and runs but gives a cryptic message on trying to connect to qemu+ssh host.

@chrootlogin
Copy link

same error here.

@techdev5521
Copy link

Bump

@aussieade
Copy link

just encountered this too

@alexrett
Copy link

alexrett commented Aug 5, 2016

same error

@mgraff
Copy link

mgraff commented Aug 5, 2016

Same issue here

@Marzelpan
Copy link

Works for me with libvirt-python-2.1.0

@ghost
Copy link

ghost commented Aug 9, 2016

Same here

@shurilnik
Copy link

Marzelpan, could you please provide the way to use libvirt-python-2.1.0 ? As it forcibly downloads https://libvirt.org/sources/python/libvirt-python-1.3.5.tar.gz

@Marzelpan
Copy link

Marzelpan commented Aug 10, 2016

Hi! I patched virt-manager.rb just like leafi did in pull request #53.

@mgraff
Copy link

mgraff commented Aug 10, 2016

Until the pull request is accepted, you have to manually patch the file /usr/local/Library/Taps/jeffreywildman/homebrew-virt-manager/virt-manager.rb with the following diff, then brew install virt-manager

 -    url "https://libvirt.org/sources/python/libvirt-python-1.3.5.tar.gz"
 -    sha256 "a0508a57637fd18a3584fb9d2322fb172f65708c9db16e0438a70eb0f36fa5c2"
 +    url "https://libvirt.org/sources/python/libvirt-python-2.1.0.tar.gz"
 +    sha256 "74887fa1be60db2701e726da7e01e3bf18ecd3b8d1cfdf2f1f7480e1a1edbacb"

@shurilnik
Copy link

shurilnik commented Aug 10, 2016

Thank you! Got it! ;-)
However looks like ssh support is broken in libvirt2. It doesn't event try to open ssh socket connection... libssh2 is installed...
virsh returns:
error: failed to connect to the hypervisor
error: An error occurred, but the cause is unknown

With any debug level.

@jnix85
Copy link

jnix85 commented Aug 10, 2016

Could someone provide newb instructions for patching this? I am a recent linux convert

@jeffreywildman
Copy link
Owner

Closing as this was likely due to mismatch between libvirt-python and libvirt version. Updated virt-manager points to libvirt-4.0.0 to match latest libvirt in homebrew-core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests