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

brew install virt-manager issue #58

Closed
arowley0 opened this issue Sep 14, 2016 · 14 comments
Closed

brew install virt-manager issue #58

arowley0 opened this issue Sep 14, 2016 · 14 comments

Comments

@arowley0
Copy link

arowley0 commented Sep 14, 2016

It seems similar to issue#43

I updated xcode and brew and still I cannot install virt manager.

/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.2.0/share/libvirt/api/libvirt-api.xml
Found 415 functions in /usr/local/Cellar/libvirt/2.2.0/share/libvirt/api/libvirt-api.xml
Found 0 functions in libvirt-override-api.xml
Generated 344 wrapper functions
Missing type converters:
virConnectNodeDeviceEventGenericCallback:1
ERROR: failed virConnectNodeDeviceEventRegisterAny
error: command '/usr/local/opt/python/bin/python2.7' failed with exit status 1

@barnumbirr
Copy link

@arowley0 have a look at #57, the workaround seems to fix the issue.

@ki-media
Copy link

Same here. BTW the workaround in #57 is not working (anymore). A working solution is recommended.

@fkpwolf
Copy link

fkpwolf commented Sep 22, 2016

same issue here, after upgrade to macOS Sierra.

@Ryuchen
Copy link

Ryuchen commented Sep 22, 2016

Change the file of virt-manager.rb, as follow:

resource "libvirt-python" do
url "https://libvirt.org/sources/python/libvirt-python-2.2.0.tar.gz"
sha256 "ba6b2eb3f018275e9720498d7b771959c2d51ebd54f6e956de5055f912afea76"
end

@ki-media
Copy link

It installs correct. But now when I try to start libgdk-3.0.dylib crashes... Already tried to completly rebuild with no success...

@danifunker
Copy link

I have the same issue as you @ki-media, but weird enough virt-manager --debug works fine.

@danifunker
Copy link

Ended up creating an AppleScript "application" in my /Applications folder, here is the contents if anybody wants...

do shell script "/usr/local/bin/virt-manager --debug > /dev/null 2>&1 &"

Now it works and I have an icon. Yay for me

@ki-media
Copy link

This did the trick! Weird but works! Many thanks @danifunker

@hit0wnzzz
Copy link

@Ryuchen that worked for me, location of the file for me was:

/usr/local/Homebrew/Library/Taps/jeffreywildman/

@66Ton99
Copy link
Contributor

66Ton99 commented Oct 6, 2016

nano +26 /usr/local/Homebrew/Library/Taps/jeffreywildman/homebrew-virt-manager/virt-manager.rb

Change to:

 resource "libvirt-python" do
    url "https://libvirt.org/sources/python/libvirt-python-2.3.0.tar.gz"
    sha256 "ad25a98c2508a6c81d65cc8bc5f3e0b4c506247cf544a7d54c41526a99caef48"
  end

66Ton99 added a commit to 66Ton99/homebrew-virt-manager that referenced this issue Oct 6, 2016
@Nethe
Copy link

Nethe commented Nov 1, 2016

Worked! Virt-manager has been installed successfully! Thanks!

@kode54
Copy link

kode54 commented Nov 5, 2016

And now, it also works with libvirt-python-2.4.0.

@efij
Copy link

efij commented Sep 5, 2017

using macOS Sierra.
still getting an error while trying to run:

brew install virt-manager virt-viewer

This is the output:

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-mana
Already downloaded: /Users/efij/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-2.3.0.tar.gz
######################################################################## 100.0%
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cel
Last 15 lines from /Users/efij/Library/Logs/Homebrew/virt-manager/01.python:
Generated 350 wrapper functions
Missing type converters:
virConnectSecretEventGenericCallback:1
virStreamSourceFunc:1
virStreamSinkFunc:1
unsigned long long *:1
virStorageVolInfoPtr:1
long long *:1
ERROR: failed virConnectSecretEventRegisterAny
ERROR: failed virDomainMigrateGetMaxDowntime
ERROR: failed virStorageVolGetInfoFlags
ERROR: failed virStreamRecvHole
ERROR: failed virStreamSparseRecvAll
ERROR: failed virStreamSparseSendAll
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:
virt-manager silently quits at launch #78
installation failure for virt-manager #72
Error: jeffreywildman/virt-manager/libvirt-glib 1.0.0 did not build #79
brew install virt-manager issue #58
virt-manager crashing with Python quit unexpectedly while using the libgdk-3.0.dylib #62
Add necessary quotes #75
ERROR: failed virDomainMigrateGetMaxDowntime error: command '/usr/bin/python' failed with exit status 1 #81
Installation fails: Missing type converters: unsigned long long *:1 ERROR: failed virDomainMigrateGetMaxDowntime #80
missing module gi #76
gi has no attribute 'require_version' #74
Installation fails: Missing type converters #71
Unable to paste from host to client. Copying from client to host works. #35
Unable to connect to libvirt #63
libvirt-glib wont build - OSError: [Errno 1] Operation not permitted: g-ir-scanner/ #82
libvirt connection URI ?socket string #61
Can't install libvirt-python on El Capitan #50
Install error: failed virConnectNodeDeviceEventRegisterAny #57
Create new virtual machine OS types missing #64
Error: configure: error: libjpeg not found #49
after brew update , the same error #55
Crash on re-open VNC console #44
Install error: [LibvirtGLib-1.0.gir] Error 1 #77
Fresh install on 10.11.1: fatal error: 'glib/gi18n-lib.h' file not found #30
Unable to install due to missing six python module. #68
Python quit unexpectedly every time I try and select a drop down box. #45
Docs update about remote connections #42
Error installing spice-gtk: No package 'spice-client-glib-2.0' found #56

@jeffreywildman
Copy link
Owner

Closing as this was likely due to a mismatch between libvirt and libvirt-python versions, now match at 4.0.0 in latest virt-manager and libvirt formulae.

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