Damenly / homebrew-virt-manager

A set of homebrew formulae to install virt-viewer on MacOS
40 stars 2 forks source link

Error in installing virt-manager on Monterey #3

Closed Forsworns closed 2 years ago

Forsworns commented 2 years ago

Hi, I encountered the problem in jeffreywildman/homebrew-virt-manager#166 and find your branch. I untapped jeffreywildman's repository and uses yours. Then I run brew install virt-manager --HEAD and get this:

Last 15 lines from /Users/xxx/Library/Logs/Homebrew/virt-manager/06.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-20220313-2696-1pbpof4/libvirt-python-7.8.0/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' install --record /private/tmp/pip-record-0otfbsvo/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/virt-manager/HEAD-d12be94_7/libexec/include/site/python3.9/libvirt-python
  cwd: /private/tmp/virt-manager--libvirt-python-20220313-2696-1pbpof4/libvirt-python-7.8.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

Do you have any ideas? Thank :)

Damenly commented 2 years ago

Thanks for your report! It should be fixed by https://github.com/Damenly/homebrew-virt-manager/commit/ffb9de9d60ddd8fc2dccc5e6511e70d7305bee76

Try brew update and install again.