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

Crashing on install at /usr/local/Cellar/virt-manager/1.5.1/libexec/bin/pip install #98

Closed
HowellBP opened this issue Jun 7, 2018 · 8 comments

Comments

@HowellBP
Copy link

HowellBP commented Jun 7, 2018

Command "/usr/local/Cellar/virt-manager/1.5.1/libexec/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-req-build-8W9lkV/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/tmp/pip-record-l8GEld/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/virt-manager/1.5.1/libexec/bin/../include/site/python2.7/libvirt-python" failed with error code 1 in /private/tmp/pip-req-build-8W9lkV/

Here's the whole error and install log. I already had some of the dependencies installed.
https://pastebin.com/EGZ3Qq15

I'm not sure exactly where the problem is. Is this a python conflict? Should I try uninstalling all of my homebrew python versions?

@HowellBP
Copy link
Author

HowellBP commented Jun 7, 2018

Side note, I tried going to the location of the code in question, but since brew does cleanup, the /usr/local/Cellar/virt-manager directory gets deleted after things blow up.

Here's the actual error in the log file:

Installing collected packages: libvirt-python
  Created temporary directory: /private/tmp/pip-record-l8GEld
  Running setup.py install for libvirt-python: started
    Running command /usr/local/Cellar/virt-manager/1.5.1/libexec/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-req-build-8W9lkV/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/tmp/pip-record-l8GEld/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/virt-manager/1.5.1/libexec/bin/../include/site/python2.7/libvirt-python
    running install
    running build
    /usr/local/opt/pkg-config/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt
    /usr/local/Cellar/virt-manager/1.5.1/libexec/bin/python2.7 generator.py libvirt /usr/local/Cellar/libvirt/4.4.0/share/libvirt/api/libvirt-api.xml
    Found 433 functions in /usr/local/Cellar/libvirt/4.4.0/share/libvirt/api/libvirt-api.xml
    Found 0 functions in libvirt-override-api.xml
    Generated 353 wrapper functions
    Missing type converters:
    char **:1
    ERROR: failed virConnectBaselineHypervisorCPU
    error: command '/usr/local/Cellar/virt-manager/1.5.1/libexec/bin/python2.7' failed with exit status 1
    Running setup.py install for libvirt-python: finished with status 'error'

I thought it might be related to #90 but it doesn't appear to be, it's not an unsigned long long, it's a "char **". No idea what that is, and can't find anything useful on Google.

@HowellBP
Copy link
Author

HowellBP commented Jun 8, 2018

Confirmed that updating libvirt-python to 4.4.0 solves the issue. I modified virt-manager.rb with the new versionand SHA256 and the install worked properly.

@RoniLevin
Copy link

I have the issue with char**, but for some reason the the libvirt being downloaded is 4.2.0 instead of 4.4.0.

==> python -c import setuptools... --no-user-cfg install --prefix=/tmp/virt-manager--homebrew-virtualenv-20180610-78181-q6nwrl/target --single-version-externally-managed --record=installed.txt
==> python -s /tmp/virt-manager--homebrew-virtualenv-20180610-78181-q6nwrl/target/bin/virtualenv -p python /usr/local/Cellar/virt-manager/1.5.1/libexec
==> Downloading https://libvirt.org/sources/python/libvirt-python-4.2.0.tar.gz

any idea why?

@sandalle
Copy link

I just installed this tap today and still have this issue, with the same note as @RoniLevin that it's still installing libvirt-python 4.2.0 instead of 4.4.0 as mentioned in https://github.com/renegaderyu/homebrew-virt-manager/commit/623e775e19de99d00e6c76bcde894fff8f5697e2 .

==> Downloading https://libvirt.org/sources/python/libvirt-python-4.2.0.tar.gz
Already downloaded: /Users/sandalle/Library/Caches/Homebrew/virt-manager--libvirt-python-4.2.0.tar.gz
==> /usr/local/Cellar/virt-manager/1.5.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /p
Last 15 lines from /Users/sandalle/Library/Logs/Homebrew/virt-manager/03.pip:
  Removing source in /private/tmp/pip-req-build-mGlmrE
Command "/usr/local/Cellar/virt-manager/1.5.1/libexec/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-req-build-mGlmrE/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/tmp/pip-record-FPBHpQ/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/virt-manager/1.5.1/libexec/bin/../include/site/python2.7/libvirt-python" failed with error code 1 in /private/tmp/pip-req-build-mGlmrE/
Exception information:
Traceback (most recent call last):
  File "/usr/local/Cellar/virt-manager/1.5.1/libexec/lib/python2.7/site-packages/pip/_internal/basecommand.py", line 228, in main
    status = self.run(options, args)
  File "/usr/local/Cellar/virt-manager/1.5.1/libexec/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 335, in run
    use_user_site=options.use_user_site,
  File "/usr/local/Cellar/virt-manager/1.5.1/libexec/lib/python2.7/site-packages/pip/_internal/req/__init__.py", line 49, in install_given_reqs
    **kwargs
  File "/usr/local/Cellar/virt-manager/1.5.1/libexec/lib/python2.7/site-packages/pip/_internal/req/req_install.py", line 779, in install
    spinner=spinner,
  File "/usr/local/Cellar/virt-manager/1.5.1/libexec/lib/python2.7/site-packages/pip/_internal/utils/misc.py", line 698, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command "/usr/local/Cellar/virt-manager/1.5.1/libexec/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-req-build-mGlmrE/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/tmp/pip-record-FPBHpQ/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/virt-manager/1.5.1/libexec/bin/../include/site/python2.7/libvirt-python" failed with error code 1 in /private/tmp/pip-req-build-mGlmrE/

When I check my local clone (cloned today) of https://github.com/jeffreywildman/homebrew-virt-manager , virt-manager.rb is only up to commit d35810c for refreshing to 4.2.0. If I run brew edit virt-manager and manually make the changes from https://github.com/renegaderyu/homebrew-virt-manager/commit/623e775e19de99d00e6c76bcde894fff8f5697e2 , installation works. :)

@RoniLevin
Copy link

I can confirm @sandalle solution fixed the problem. Thanks!

@odyssey4me
Copy link

Agreed, works like a charm! Thanks!

@falfaro
Copy link

falfaro commented Jun 27, 2018

Works like a charm for me too. Can we please merge renegaderyu/homebrew-virt-manager into master?

@jeffreywildman
Copy link
Owner

Merged, 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

6 participants