-
Notifications
You must be signed in to change notification settings - Fork 266
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
virt-manager broken on Big Sur after minor update #170
Comments
Same here on Big sur..even with a clean Big Sur, Python3 and Homebrew install the problem persists. I Try first install |
same problem on big sur |
same problem on big sur, first install on mac |
Not familiar with python, but looking at the print out and python version installed, seems part of the package require python >2.7 and < 3.x:
While some part require python > 3.6:
However currently brew only carry python 3.7, 3.8 and 3.9. Moreover, even previously working virt-manager stop working with following error:
Maybe the source need to be updated to virt-manager 3.2? |
same here. please update. |
Me either, on 10.15.7 |
I fixed it by updating libvirt-python to 7.2.0 . |
Only updating libvirt-python to 7.2.0 didn't work for me.
I end up doing following:
Then
Following is my current working formula, use at your own risk: class VirtManager < Formula
include Language::Python::Virtualenv
desc "App for managing virtual machines"
homepage "https://virt-manager.org/"
url "https://virt-manager.org/download/sources/virt-manager/virt-manager-3.2.0.tar.gz"
sha256 "2b6fe3d90d89e1130227e4b05c51e6642d89c839d3ea063e0e29475fd9bf7b86"
revision 3
depends_on "intltool" => :build
depends_on "pkg-config" => :build
depends_on "adwaita-icon-theme"
depends_on "docutils"
depends_on "gtk+3"
depends_on "gtk-vnc"
depends_on "gtksourceview4"
depends_on "hicolor-icon-theme"
depends_on "libosinfo"
depends_on "libvirt"
depends_on "libvirt-glib"
depends_on "libxml2" # need python3 bindings
depends_on "osinfo-db"
depends_on "py3cairo"
depends_on "pygobject3"
depends_on "python"
depends_on "spice-gtk"
depends_on "vte3"
resource "libvirt-python" do
url "https://libvirt.org/sources/python/libvirt-python-7.2.0.tar.gz"
sha256 "c0c3bac54c55622e17927b09cd9843869600d71842fb072c99491fe2608dcee7"
end
resource "idna" do
url "https://pypi.io/packages/source/i/idna/idna-2.8.tar.gz"
sha256 "c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407"
end
resource "certifi" do
url "https://pypi.io/packages/source/c/certifi/certifi-2019.11.28.tar.gz"
sha256 "25b64c7da4cd7479594d035c08c2d809eb4aab3a26e5a990ea98cc450c320f1f"
end
resource "chardet" do
url "https://pypi.io/packages/source/c/chardet/chardet-3.0.4.tar.gz"
sha256 "84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae"
end
resource "urllib3" do
url "https://pypi.io/packages/source/u/urllib3/urllib3-1.25.7.tar.gz"
sha256 "f3c5fd51747d450d4dcf6f923c81f78f811aab8205fda64b0aba34a4e48b0745"
end
resource "requests" do
url "https://pypi.io/packages/source/r/requests/requests-2.22.0.tar.gz"
sha256 "11e007a8a2aa0323f5a921e9e6a2d7e4e67d9877e85773fba9ba6419025cbeb4"
end
# virt-manager doesn't prompt for password on macOS unless --no-fork flag is provided
#patch :DATA
def install
venv = virtualenv_create(libexec, "python3")
venv.pip_install resources
# virt-manager uses distutils, doesn't like --single-version-externally-managed
system "#{libexec}/bin/python3", "setup.py",
"configure",
"--prefix=#{libexec}"
system "#{libexec}/bin/python3", "setup.py",
"--no-user-cfg",
"--no-update-icon-cache",
"--no-compile-schemas",
"install"
# install virt-manager commands with PATH set to Python virtualenv environment
bin.install Dir[libexec/"bin/virt-*"]
bin.env_script_all_files(libexec/"bin", :PATH => "#{libexec}/bin:$PATH")
share.install Dir[libexec/"share/man"]
share.install Dir[libexec/"share/glib-2.0"]
share.install Dir[libexec/"share/icons"]
end
def post_install
# manual schema compile step
system "#{Formula["glib"].opt_bin}/glib-compile-schemas", "#{HOMEBREW_PREFIX}/share/glib-2.0/schemas"
# manual icon cache update step
system "#{Formula["gtk+3"].opt_bin}/gtk3-update-icon-cache", "#{HOMEBREW_PREFIX}/share/icons/hicolor"
end
test do
system "#{bin}/virt-manager", "--version"
end
end
__END__
diff --git a/virt-manager b/virt-manager
index 15d5109..8ee305a 100755
--- a/virt-manager
+++ b/virt-manager
@@ -151,7 +151,8 @@ def parse_commandline():
help="Print debug output to stdout (implies --no-fork)",
default=False)
parser.add_argument("--no-fork", action="store_true",
- help="Don't fork into background on startup")
+ help="Don't fork into background on startup",
+ default=True)
parser.add_argument("--show-domain-creator", action="store_true",
help="Show 'New VM' wizard") |
This solution worked for me! Thank you so much! |
@J-Siu - Thank you! it's working! PS. If anyone got this error: Check that - pango was installed over brew (brew install pango) |
@J-Siu Thank you, that worked for me! |
@J-Siu " Comment out the patch line as it doesn't apply for 3.2.0. (I setup ssh key for my target box.)" ,what's mean? I don't how to do ,please help! |
@waltlillyman last part : " Comment out the patch line as it doesn't apply for 3.2.0. (I setup ssh key for my target box.)" ,what's mean? I don't how to do ,please help me! |
@ljgzts |
Thank you @J-Siu! Using your instructions I am able to run virt-manager on mij MacBook Air M1, your solution works. Thanks again! |
Worked for me as well. Thank you, good sir. |
I attempted to solve this error by adding the line to my .zshrc, but still receive the following when running virt-manager.
|
@austinben /usr/local/lib/libpango-1.0.0.dylib
/usr/local/lib/libpango-1.0.a
/usr/local/lib/libpango-1.0.dylib
/usr/local/lib/libpangocairo-1.0.0.dylib
/usr/local/lib/libpangocairo-1.0.a
/usr/local/lib/libpangocairo-1.0.dylib
/usr/local/lib/libpangoft2-1.0.0.dylib
/usr/local/lib/libpangoft2-1.0.a
/usr/local/lib/libpangoft2-1.0.dylib |
I do not see these on my machine under |
What about In theory the I am a bit surprise you don’t have
The first 2 lines will bring your
|
Nothing. Created the directory and changed the ownership. Did a re-install of homebrew, pango (through homebrew) and virt-manager. Same error appears. I am on an M1 mini for reference. |
Double check the location of pango library: cd /usr/local/lib
ln -s /usr/local/Cellar/pango/1.48.4/lib/lib* . |
The pango libraries were in I appreciate the effort, thank you. |
@austinben Try the brew forum, people there are very knowledgeable, https://github.com/homebrew/discussions/discussions |
Hey @J-Siu, I'm having the same problem as @austinben because (I'm almost sure) we are using M1 Macs with Big Sur. Homebrew installs differently on M1s. It goes to /opt/homebrew/ and maybe has different inner mechanics as to linking libs. Also on M1s/Big Sur there's no /usr/local/lib. Also I'm using bash instead of zsh... I changed my default shell as soon as I started using my new Mac. Can that also present a different set of problems adding to those of libs? Is it possible that M1s with Big Sur need a different solution? |
Did some search and found out that Brew setup is different on M1. M1 brew prefix is
zsh uses
I think the issue so far is related to library search path. |
I confirm that.
Still same error... I have no more ideas... |
I ran the export line in the terminal (I'm still using bash) and I still get the error. Do I need to reinstall virt-manager as well? |
@ssurfertuga Sorry, I ran out of idea. |
@phirestalker Are you using the one I post? I assume you are not on M1, right? |
Sorry forgot to read all the posts after.
|
@phirestalker Since you are on M1, the export should be:
Check:
|
that did not work. I do have the files in /opt/homebrew/lib though. |
@phirestalker ok, seems DYLD_FALLBACK_LIBRARY_PATH is not working as intended in M1. Try following:
|
no dice. I get the same error |
I am having the same problem as @phirestalker and tried all steps as well. I am on a M1 Mac. |
The virt-manager installed worked well on MacOS BigSur(M1) with steps provided by @J-Siu, thank you very much! |
@J-Siu's solution at https://github.com/jeffreywildman/homebrew-virt-manager/issues/170#issuecomment-822341574 worked for me too! I'm now successfully running virt-manager on Mojave Mac OSX 10.14.6. Thank you so much! :) |
After hours spent and installing half of homebrew + xCode + Commandline Tools, your solution worked great for me! |
the command "brew edit virt-manager" does not work |
Hi all,
I'm not able to get virt-manager working again on macOS Big Sur since last minor update.
Reinstalling (
brew reinstall virt-manager virt-viewer
) gives this:Before reinstalling the Python Module gi was not found. Looks like it is part of python3-gobject.
Ideas for that?
Best Regards
The text was updated successfully, but these errors were encountered: