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

Error in installing virt-manager on Monterey #4

Closed
odoo-mastercore opened this issue Mar 26, 2022 · 9 comments
Closed

Error in installing virt-manager on Monterey #4

odoo-mastercore opened this issue Mar 26, 2022 · 9 comments

Comments

@odoo-mastercore
Copy link

odoo-mastercore commented Mar 26, 2022

Hi, I encountered the problem in jeffreywildman#184 and find your post jeffreywildman#184 (comment). I untapped jeffreywildman's repository and uses yours. Then I run brew install virt-manager --HEAD and get this

==> Cloning https://github.com/virt-manager/virt-manager.git
Cloning into '/Users/far/Library/Caches/Homebrew/virt-manager--git'...
==> Checking out branch main
Already on 'main'
Your branch is up to date with 'origin/main'.
==> Installing virt-manager from damenly/virt-manager
==> Patching
==> python3 -m venv --system-site-packages /opt/homebrew/Cellar/virt-manager/HEAD-d12be94_7/libexec
==> python3 -m venv --upgrade-deps /opt/homebrew/Cellar/virt-manager/HEAD-d12be94_7/libexec
==> /opt/homebrew/Cellar/virt-manager/HEAD-d12be94_7/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-insta
==> /opt/homebrew/Cellar/virt-manager/HEAD-d12be94_7/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-insta
==> /opt/homebrew/Cellar/virt-manager/HEAD-d12be94_7/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-insta
==> /opt/homebrew/Cellar/virt-manager/HEAD-d12be94_7/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-insta
==> /opt/homebrew/Cellar/virt-manager/HEAD-d12be94_7/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-insta
==> /opt/homebrew/Cellar/virt-manager/HEAD-d12be94_7/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-insta
==> /opt/homebrew/Cellar/virt-manager/HEAD-d12be94_7/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-insta
==> /opt/homebrew/Cellar/virt-manager/HEAD-d12be94_7/libexec/bin/python setup.py configure --prefix=/opt/homebrew/Cellar/v
Last 15 lines from /Users/far/Library/Logs/Homebrew/virt-manager/10.python:

error: Multiple top-level packages discovered in a flat-layout: ['ui', 'po', 'man', 'data', 'virtinst', 'virtManager'].

To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.

If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:

  1. set up custom discovery (find directive with include or exclude)
  2. use a src-layout
  3. explicitly set py_modules or packages with a list of names

To find more information, look for "package discovery" on setuptools docs.

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

Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels.

@Damenly
Copy link
Owner

Damenly commented Mar 28, 2022

Thanks for your report!
However, I'm far away from my daily-use computer. It's about 7 days left back to my laptop.
And since it looks like a python bug from jeffreywildman#184 (comment).
Would you try to modify your local file?

@yadvlz
Copy link

yadvlz commented Apr 6, 2022

@Damenly hi,
Did you get to the laptop?

@Damenly
Copy link
Owner

Damenly commented Apr 7, 2022

@odoo-mastercore @yadvlz Fixde in master. Please try brew update and reinstall.
It blames the broken behavior of setup tools and fixed in Damenly/virt-manager@4dbfdd1

@yadvlz
Copy link

yadvlz commented Apr 7, 2022

@Damenly It works. Thanks.

@odoo-mastercore
Copy link
Author

Hi! @Damenly thanks for your work. I try but error still appears...

My commands...:

$ brew untap Damenly/homebrew-virt-manager
..
$ brew cleanup -n
..
$ brew tap Damenly/homebrew-virt-manager
..
$ brew install virt-manager --HEAD
..
..
==> Checking out branch main
Already on 'main'
Your branch is up to date with 'origin/main'.
HEAD is now at 4dbfdd1d setuptools: Disable auto discovery
==> Installing virt-manager from damenly/virt-manager
==> Patching
==> python3 -m venv --system-site-packages /opt/homebrew/Cellar/virt-manager/HEAD-4dbfdd1_7/libexec
==> python3 -m venv --upgrade-deps /opt/homebrew/Cellar/virt-manager/HEAD-4dbfdd1_7/libexec
==> /opt/homebrew/Cellar/virt-manager/HEAD-4dbfdd1_7/libexec/bin/pip install -v --no-deps --no-binary :all: --ignor
==> /opt/homebrew/Cellar/virt-manager/HEAD-4dbfdd1_7/libexec/bin/pip install -v --no-deps --no-binary :all: --ignor
==> /opt/homebrew/Cellar/virt-manager/HEAD-4dbfdd1_7/libexec/bin/pip install -v --no-deps --no-binary :all: --ignor
==> /opt/homebrew/Cellar/virt-manager/HEAD-4dbfdd1_7/libexec/bin/pip install -v --no-deps --no-binary :all: --ignor
Last 15 lines from /Users/far/Library/Logs/Homebrew/virt-manager/06.pip:
else:
filename = ""
setup_py_code = "from setuptools import setup; setup()"

exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/private/tmp/virt-manager--libvirt-python-20220410-345-5u4s2g/libvirt-python-8.1.0/setup.py'"'"',), "", "exec"))' install --record /private/tmp/pip-record-2t0ub3ra/install-record.txt --single-version-externally-managed --compile --install-headers /opt/homebrew/Cellar/virt-manager/HEAD-4dbfdd1_7/libexec/include/site/python3.9/libvirt-python
cwd: /private/tmp/virt-manager--libvirt-python-20220410-345-5u4s2g/libvirt-python-8.1.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

..
..
$

Thank you!

Damenly pushed a commit that referenced this issue Apr 11, 2022
Issue: #4
Signed-off-by: Su Yue <[email protected]>
@Damenly
Copy link
Owner

Damenly commented Apr 11, 2022

@odoo-mastercore I reproduced it! It's about libvirt-python and bumping to new 8.2 should fix it.
Would you give it a try?

@brddd
Copy link

brddd commented Apr 12, 2022

Worked for me on a M1 Monterey mac

@odoo-mastercore
Copy link
Author

Hi! @Damenly now it's works

Same on M1 Monterey

Thanks!

@Damenly Damenly closed this as completed Apr 15, 2022
@odoo-mastercore
Copy link
Author

Hi @brddd can you run Windows with Qemu on M1 Monterrey?

Thanks

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