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

libvirt-python install failure on Big Sur - "legacy-install-failure" #189

Open
nbrewster opened this issue Apr 3, 2022 · 3 comments
Open

Comments

@nbrewster
Copy link

MacOS Big Sur 11.6.5 (20G527) - install fails

xiaonao:~ nbrewster$ brew install virt-manager virt-viewer
Running `brew update --preinstall`...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 2 formulae.

==> Downloading https://libvirt.org/sources/python/libvirt-python-6.10.0.tar.gz
Already downloaded: /Users/nbrewster/Library/Caches/Homebrew/downloads/c0ea3dcb750aed089cfed8d3988e3aef79b70d635cfd42c87db147e860647de4--libvirt-python-6.10.0.tar.gz
==> Downloading https://pypi.io/packages/source/i/idna/idna-2.8.tar.gz
Already downloaded: /Users/nbrewster/Library/Caches/Homebrew/downloads/89cd3c9503f30cf4794067fbb3bb85881a04d4a79002cd52dd006617f4dee6d5--idna-2.8.tar.gz
==> Downloading https://pypi.io/packages/source/c/certifi/certifi-2019.11.28.tar.gz
Already downloaded: /Users/nbrewster/Library/Caches/Homebrew/downloads/d305888203f80870f04cbff5b615679be127a718ffeec3b3ce5db16bdc4abfa2--certifi-2019.11.28.tar.gz
==> Downloading https://pypi.io/packages/source/c/chardet/chardet-3.0.4.tar.gz
Already downloaded: /Users/nbrewster/Library/Caches/Homebrew/downloads/0b520e43abac95fdb4182899f49c1c7ced69c67c4bc132b3801691b993eb33f9--chardet-3.0.4.tar.gz
==> Downloading https://pypi.io/packages/source/u/urllib3/urllib3-1.25.7.tar.gz
Already downloaded: /Users/nbrewster/Library/Caches/Homebrew/downloads/04dc027e49125d42a130fd408cde60c9d9a87ce021683a3e49bf067a62316261--urllib3-1.25.7.tar.gz
==> Downloading https://pypi.io/packages/source/r/requests/requests-2.22.0.tar.gz
Already downloaded: /Users/nbrewster/Library/Caches/Homebrew/downloads/4253f7dff3c4f4a5a7fe142af689d95ed2e77979f696451a78d96412e90b0f94--requests-2.22.0.tar.gz
==> Downloading https://virt-manager.org/download/sources/virt-manager/virt-manager-2.2.1.tar.gz
Already downloaded: /Users/nbrewster/Library/Caches/Homebrew/downloads/77e22463a35b2e2bde8d02253c10129aabb1e5dfbfe2e6f33ef87bd35955dcf2--virt-manager-2.2.1.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/docbook/manifests/5.1_1
Already downloaded: /Users/nbrewster/Library/Caches/Homebrew/downloads/f535f42662e0d894361c489a448ac2f5462b01ecb12c3c54876cb43570da5558--docbook-5.1_1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/docbook/blobs/sha256:2c4e8398b5548cef2830169aadaf6221ac9ee7e6733547642ccee1ea81e07
Already downloaded: /Users/nbrewster/Library/Caches/Homebrew/downloads/6896c2041de1e1a652d1532f42ca265dcddd72588c012f85c2014b4cbbe8d1a9--docbook--5.1_1.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/docbook-xsl/manifests/1.79.2_1
Already downloaded: /Users/nbrewster/Library/Caches/Homebrew/downloads/33e485cb2c174d07962c3477b301084016b8cb7c2e6ea2ada01f4f0ea6ab1763--docbook-xsl-1.79.2_1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/docbook-xsl/blobs/sha256:cfdfee3ff9db24a542cd8afd72cd05e67dffd88105b6af3bb1aabd9d4
Already downloaded: /Users/nbrewster/Library/Caches/Homebrew/downloads/3e37ba9083ec0c06fd6b55f4355829c834714b7eb960dab6198786fcfd35f916--docbook-xsl--1.79.2_1.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/gnu-getopt/manifests/2.37.4
Already downloaded: /Users/nbrewster/Library/Caches/Homebrew/downloads/e5b592d4289254e47396bb4ca1699bf04ef8cbe23bc0c40ab9bbe3170ea2b83d--gnu-getopt-2.37.4.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/gnu-getopt/blobs/sha256:a9b13a5cf0ca461780e2f5a7866b00abea8884e663404489c870570451
Already downloaded: /Users/nbrewster/Library/Caches/Homebrew/downloads/df9879254434c69659d9ffa90cdc308aca4ff14f516e4c2d9d6ec56c2642f56b--gnu-getopt--2.37.4.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/xmlto/manifests/0.0.28-2
Already downloaded: /Users/nbrewster/Library/Caches/Homebrew/downloads/137dd60ce6bbbbc7ff1cc7a659cd433876b64d73a7f5ff8f6d272234cc2060c9--xmlto-0.0.28-2.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/xmlto/blobs/sha256:95502b71000319da58971ea17c0dab0f326d20ce4c09d074fe4c7fe89c66d00
Already downloaded: /Users/nbrewster/Library/Caches/Homebrew/downloads/672f89705e3081db53cefe85c5c16f4feecb0723078868f58c1bd449cce9a84f--xmlto--0.0.28.big_sur.bottle.2.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/shared-mime-info/manifests/2.1
Already downloaded: /Users/nbrewster/Library/Caches/Homebrew/downloads/c45d39fb55948a61cabc62bc4b9c3da5cc472f17feb07a1718da0603af4c869d--shared-mime-info-2.1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/shared-mime-info/blobs/sha256:4857d9f38c0f3cbf23984d60c4ec6280d84b457123d34b9c01e9
Already downloaded: /Users/nbrewster/Library/Caches/Homebrew/downloads/ab384acacaae72a08a80f914fe4fd0f845bc9a9aa0fce687b564996fb3805dbf--shared-mime-info--2.1.big_sur.bottle.tar.gz
==> Downloading https://virt-manager.org/download/sources/virt-viewer/virt-viewer-8.0.tar.gz
Already downloaded: /Users/nbrewster/Library/Caches/Homebrew/downloads/0daaa768f148a86e56367e58ce0e49c09df31344fa7aac0cbbd9446f4fb4be8c--virt-viewer-8.0.tar.gz
==> Installing virt-manager from jeffreywildman/virt-manager
==> Patching
==> python3 -m venv --system-site-packages /usr/local/Cellar/virt-manager/2.2.1_3/libexec
==> /usr/local/Cellar/virt-manager/2.2.1_3/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/v
Last 15 lines from /Users/nbrewster/Library/Logs/Homebrew/virt-manager/02.pip:
  else:
      filename = "<auto-generated setuptools caller>"
      setup_py_code = "from setuptools import setup; setup()"
  
  exec(compile(setup_py_code, filename, "exec"))
  '"'"''"'"''"'"' % ('"'"'/private/tmp/virt-manager--libvirt-python-20220403-67799-qbzgpk/libvirt-python-6.10.0/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' install --record /private/tmp/pip-record-1mrvoayn/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/virt-manager/2.2.1_3/libexec/include/site/python3.9/libvirt-python
  cwd: /private/tmp/virt-manager--libvirt-python-20220403-67799-qbzgpk/libvirt-python-6.10.0/
  Running setup.py install for libvirt-python: finished with status 'error'
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> libvirt-python

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

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 installation error https://github.com/jeffreywildman/homebrew-virt-manager/issues/184
bump virt-manager/view-viewer and deps https://github.com/jeffreywildman/homebrew-virt-manager/pull/166
Error installing virt-manager https://github.com/jeffreywildman/homebrew-virt-manager/issues/145
virt-manager: command not found https://github.com/jeffreywildman/homebrew-virt-manager/issues/177
virt-manager: command not found https://github.com/jeffreywildman/homebrew-virt-manager/issues/169
virt-manager crashed when opening a VM on remote host https://github.com/jeffreywildman/homebrew-virt-manager/issues/180
osx virt-manager console screen is black https://github.com/jeffreywildman/homebrew-virt-manager/issues/113
virt-manager broken on Big Sur after minor update https://github.com/jeffreywildman/homebrew-virt-manager/issues/170
Assertion Error When Running Virt-Manager on MacOS BigSur https://github.com/jeffreywildman/homebrew-virt-manager/issues/174
Virt-manager wont build. Update to libvirt-python https://github.com/jeffreywildman/homebrew-virt-manager/pull/171
cannot install virt-manager, error with python version despite having python 3.9 installed https://github.com/jeffreywildman/homebrew-virt-manager/issues/172
virt-manager crashing with Python quit unexpectedly while using the libgdk-3.0.dylib https://github.com/jeffreywildman/homebrew-virt-manager/issues/62
xiaonao:~ nbrewster$
@paisley
Copy link

paisley commented Apr 7, 2022

I'm on Monterey, but experienced the same error. I tried manually installing libvirt-python with python3 -m pip install libvirt-python==6.10.0 and it failed. When I manually installed the latest version 8.2.0 it worked. So I ran brew edit virt-manager and changed the line calling for libvirt-python from:

  resource "libvirt-python" do
    url "https://libvirt.org/sources/python/libvirt-python-6.10.0.tar.gz"
    sha256 "47a8e90d9f49bc0296d2817f6009e18dbb69844ce10b81c2a2672bccd6f49fd5"
  end

to the latest version...

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

I then ran brew reinstall virt-manager and it worked.

@WoZ
Copy link

WoZ commented Apr 9, 2022

@paisley I can confirm that your steps work on Catalina (10.15.7).
Thank you.

@alita-moore
Copy link

this should be updated in the source code here as well...

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

4 participants