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

missing module gi #76

Closed
MoritzFago opened this issue Jul 28, 2017 · 4 comments
Closed

missing module gi #76

MoritzFago opened this issue Jul 28, 2017 · 4 comments

Comments

@MoritzFago
Copy link

Traceback (most recent call last): File "/usr/local/Cellar/virt-manager/1.4.1/libexec/share/virt-manager/virt-manager", line 29, in <module> import gi ImportError: No module named gi
#23 helps, after the install, you have to add the site-package path to the python path in /usr/local/bin/virt-manager so it looks like this:

#!/bin/bash
PYTHONPATH="/usr/local/opt/libxml2/lib/python2.7/site-packages:/usr/local/Cellar/virt-manager/1.4.1/libexec/vendor/lib/python2.7/site-packages:/usr/local/lib/python2.7/site-packages" exec "/usr/local/Cellar/virt-manager/1.4.1/libexec/bin/virt-manager" "$@"
@Nethe
Copy link

Nethe commented Jan 3, 2018

Hi, just tried this workaround, but it does not work for me:
Still getting below:
Traceback (most recent call last): File "/usr/local/Cellar/virt-manager/1.4.1/libexec/share/virt-manager/virt-manager", line 30, in <module> gi.require_version('LibvirtGLib', '1.0') AttributeError: 'module' object has no attribute 'require_version'

In my /usr/local/bin/virt-manager
#!/bin/bash PYTHONPATH="/usr/local/opt/libxml2/lib/python2.7/site-packages:/usr/local/Cellar/virt-manager/1.4.1/libexec/vendor/lib/python2.7/site-packages:/usr/local/lib/python2.7/site-packages" exec "/usr/local/Cellar/virt-manager/1.4.1/libexec/bin/virt-manager" "$@"

I'm using Homebrew python:
/usr/local/opt/python/libexec/bin/python

Any other ideas please?

@jeffreywildman
Copy link
Owner

virt-manager and its Python module dependencies are now all installed and run from a virtualenv environment. This should include module gi from pygobject3. Closing the issue, but please reopen if it recurs.

@KTamas
Copy link

KTamas commented Mar 22, 2018

@jeffreywildman I have the same issue.

@groverz
Copy link

groverz commented Mar 24, 2018

 ~/ python3 -c "import gi"
 ~/ python2 -c "import gi"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named gi
 ~/

Work only python3 ;(.

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

5 participants