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

installation failure for virt-manager #72

Closed
jonathangilpin opened this issue Jun 20, 2017 · 11 comments
Closed

installation failure for virt-manager #72

jonathangilpin opened this issue Jun 20, 2017 · 11 comments

Comments

@jonathangilpin
Copy link

$ brew install virt-manager virt-viewer
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (caskroom/cask).
No changes to formulae.

==> Installing virt-manager from jeffreywildman/virt-manager
==> Downloading https://virt-manager.org/download/sources/virt-manager/virt-manager-1.4.1.tar.gz
Already downloaded: /Users/jonathangilpin/Library/Caches/Homebrew/virt-manager-1.4.1.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-3.0.0.tar.gz
Already downloaded: /Users/jonathangilpin/Library/Caches/Homebrew/virt-manager--libvirt-python-3.0.0.tar.gz
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cellar/virt-manager/1.4.1/libexec/vendor --single-version-externally-managed --record=installed.txt
Last 15 lines from /Users/jonathangilpin/Library/Logs/Homebrew/virt-manager/01.python:
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/3.4.0/share/libvirt/api/libvirt-api.xml
Found 425 functions in /usr/local/Cellar/libvirt/3.4.0/share/libvirt/api/libvirt-api.xml
Found 0 functions in libvirt-override-api.xml
Generated 348 wrapper functions
Missing type converters:
virStreamSinkFunc:1
long long *:1
virStreamSourceFunc:1
ERROR: failed virStreamRecvHole
ERROR: failed virStreamSparseRecvAll
ERROR: failed virStreamSparseSendAll
error: command '/usr/local/opt/python/bin/python2.7' failed with exit status 1

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/jeffreywildman/homebrew-virt-manager/issues

These open issues may also help:
brew install virt-manager issue #58
virt-manager crashing with Python quit unexpectedly while using the libgdk-3.0.dylib #62

@rygjones
Copy link

Same issue. Sierra 10.12.4.

@jonathangilpin
Copy link
Author

jonathangilpin commented Jun 21, 2017

@ vi /usr/local/Homebrew/Library/Taps/jeffreywildman/homebrew-virt-manager/virt-manager.rb

change:
url "https://libvirt.org/sources/python/libvirt-python-3.0.0.tar.gz"
to
url "https://libvirt.org/sources/python/libvirt-python-3.4.0.tar.gz"

and
sha256 "94a7c1c57a643afad43f9068c70774e1146ed051ecfca0280d5127011c5e44c1"
to
sha256 "afa77781f518988f164dd5f99d1844034ca807a8e731e07cbae18474d250b511"

and it will then install however it will crash when you run it, unless you run with the argument --debug

@opless
Copy link

opless commented Jun 27, 2017

--debug works, as it implies --no-fork as it spews debugging info to stdout.

@veetow
Copy link

veetow commented Feb 13, 2018

My copy of the file /usr/local/Homebrew/Library/Taps/jeffreywildman/homebrew-virt-manager/virt-manager.rb already has the updated version, and it still did not install.

  resource "libvirt-python" do
    url "https://libvirt.org/sources/python/libvirt-python-3.4.0.tar.gz"
    sha256 "afa77781f518988f164dd5f99d1844034ca807a8e731e07cbae18474d250b511"
  end
==> Installing jeffreywildman/virt-manager/virt-manager
==> Downloading https://virt-manager.org/download/sources/virt-manager/virt-manager-1.4.1.tar.gz
==> Downloading from https://releases.pagure.org/virt-manager/virt-manager-1.4.1.tar.gz
######################################################################## 100.0%
==> 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-3.4.0.tar.gz
######################################################################## 100.0%
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cellar/virt-manager/1.4.1/libexec/vendor --single-version-externally-managed --record=installed.txt
Last 15 lines from /Users/vlaurenza/Library/Logs/Homebrew/virt-manager/01.python:
--prefix=/usr/local/Cellar/virt-manager/1.4.1/libexec/vendor
--single-version-externally-managed
--record=installed.txt

running install
running build
/usr/local/opt/pkg-config/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt
/usr/bin/python generator.py libvirt /usr/local/Cellar/libvirt/4.0.0/share/libvirt/api/libvirt-api.xml
Found 429 functions in /usr/local/Cellar/libvirt/4.0.0/share/libvirt/api/libvirt-api.xml
Found 0 functions in libvirt-override-api.xml
Generated 349 wrapper functions
Missing type converters:
unsigned long long *:1
ERROR: failed virDomainMigrateGetMaxDowntime
error: command '/usr/bin/python' failed with exit status 1

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/jeffreywildman/homebrew-virt-manager/issues

These open issues may also help:
brew install virt-manager issue https://github.com/jeffreywildman/homebrew-virt-manager/issues/58
installation failure for virt-manager https://github.com/jeffreywildman/homebrew-virt-manager/issues/72
virt-manager silently quits at launch https://github.com/jeffreywildman/homebrew-virt-manager/issues/78
virt-manager crashing with Python quit unexpectedly while using the libgdk-3.0.dylib https://github.com/jeffreywildman/homebrew-virt-manager/issues/62
Error: jeffreywildman/virt-manager/libvirt-glib 1.0.0 did not build https://github.com/jeffreywildman/homebrew-virt-manager/issues/79

@veetow
Copy link

veetow commented Feb 13, 2018

I should add:
High Sierra 10.13.2
Python 2.7.10

@knewter
Copy link

knewter commented Feb 13, 2018

@veetow what good timing, I just ran into this bug as well :)

(now i want to know what you're using it for)

@dvj
Copy link

dvj commented Feb 13, 2018

I've tried updating to virt-manager-1.5.0.tar.gz and libvirt-python-4.0.0.tar.gz, which gets different results, but I haven't gotten everything to work after poking around for a few minutes.

@veetow
Copy link

veetow commented Feb 13, 2018

I think the real issue here is that the the install should NOT be using /usr/bin/python in the first place, but should be using the homebrew python install at /usr/local/bin/python2.

@veetow
Copy link

veetow commented Feb 13, 2018

FYI, this fixed it for me: #85

@veetow
Copy link

veetow commented Feb 13, 2018

Also, this after installing: #73

@jeffreywildman
Copy link
Owner

Looks like a duplicate of #90 caused by mismatch of libvirt-python and libvirt versions. Should be addressed by pull request #83 and updates in master which now match versions at 4.0.0. Closing for now, but please open a new issue if it persists.

@veetow FYI, homebrew conventions prefer using system Python over a homebrewed Python. The updated virt-manager formula in master now uses a virtualenv to better keep the version used to build and run virt-manager separate from the Python version in the user's path. Also, the libvirt formula is provided by homebrew-core but it doesn't appear to provide the associated Python bindings, which necessitates the libvirt-python dependency embedded within the virt-manager formula. When the libvirt version gets updated in homebrew, we have to play catch up and update the associated module in virt-manager. A proper fix would probably involve incorporating the python bindings to be built/installed with the libvirt formula.

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

7 participants