View previous topic :: View next topic |
Author |
Message |
charlton n00b
Joined: 11 Apr 2005 Posts: 47
|
Posted: Sat Jan 19, 2019 3:27 am Post subject: pygobject3 breaks virt-manager [SOLVED] |
|
|
Code: | >virt-manager
Traceback (most recent call last):
File "/usr/share/virt-manager/virt-manager", line 16, in <module>
import gi
ImportError: No module named 'gi'
|
Is there a way to fix this without backing out python-3?
I've read that perhaps updating dev-python/pygobject to 3.30+ might work, but it is not in the portage tree.
Last edited by charlton on Tue Jan 22, 2019 6:15 am; edited 2 times in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30911 Location: here
|
Posted: Sat Jan 19, 2019 7:17 am Post subject: |
|
|
What is the output of commands
Code: | # emerge -pvq dev-python/pygobject:3 |
and
Code: | # emerge -pvq app-emulation/virt-manager |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21631
|
Posted: Sat Jan 19, 2019 5:42 pm Post subject: |
|
|
Python modules are installed in version-specific directories. Your problem might be as simple as that you ran virt-manager with a version of Python for which you have not installed the module gi. The output requested above will show us that. If that is the problem, run virt-manager with a version of Python which has gi or reinstall the package that provides gi, after configuring it to support your default Python version. |
|
Back to top |
|
|
charlton n00b
Joined: 11 Apr 2005 Posts: 47
|
Posted: Sun Jan 20, 2019 3:31 am Post subject: |
|
|
fedeliallalinea wrote: | What is the output of commands
Code: | # emerge -pvq dev-python/pygobject:3 |
|
Code: | >emerge -pvq dev-python/pygobject:3
[ebuild R ] dev-python/pygobject-3.28.3-r1 USE="cairo -examples -test" PYTHON_TARGETS="python2_7 python3_6 -python3_4 -python3_5 -python3_7" |
Quote: | Code: | # emerge -pvq app-emulation/virt-manager |
|
Code: | >emerge -pvq app-emulation/virt-manager
[ebuild R ] app-emulation/virt-manager-2.0.0 USE="gtk (policykit) sasl -gnome-keyring" PYTHON_SINGLE_TARGET="python3_6 -python3_4 -python3_5 (-python3_7)" PYTHON_TARGETS="python3_6 -python3_4 -python3_5 (-python3_7)" |
Basically the latest portage image. I keyworded pygobject with ~amd64 just to see if it helped. It didn't. |
|
Back to top |
|
|
charlton n00b
Joined: 11 Apr 2005 Posts: 47
|
Posted: Sun Jan 20, 2019 3:34 am Post subject: |
|
|
Hu wrote: | Python modules are installed in version-specific directories. Your problem might be as simple as that you ran virt-manager with a version of Python for which you have not installed the module gi. The output requested above will show us that. If that is the problem, run virt-manager with a version of Python which has gi or reinstall the package that provides gi, after configuring it to support your default Python version. |
Again, I could back out python-3 but I don't want to have to. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30911 Location: here
|
Posted: Sun Jan 20, 2019 9:07 am Post subject: |
|
|
What version is select by default (eselect python list)?
If you run
Code: | $ python3
Python 3.6.5 (default, Sep 11 2018, 20:41:07)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi |
what happends? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21631
|
Posted: Sun Jan 20, 2019 4:59 pm Post subject: |
|
|
charlton wrote: | Again, I could back out python-3 but I don't want to have to. | You don't need to remove python-3 just to run a single program with an older Python version. From your output, it looks like it should work as-is. What is the output of equery files dev-python/pygobject? |
|
Back to top |
|
|
charlton n00b
Joined: 11 Apr 2005 Posts: 47
|
Posted: Sun Jan 20, 2019 6:50 pm Post subject: |
|
|
fedeliallalinea wrote: | What version is select by default (eselect python list)?
If you run
Code: | $ python3
Python 3.6.5 (default, Sep 11 2018, 20:41:07)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi |
what happends? |
Code: | >python3
Python 3.4.5 (default, Jan 4 2018, 15:12:25)
[GCC 4.9.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'gi'
>>> |
Maybe the virt-manager package needs to add the gi module as a dependency? |
|
Back to top |
|
|
charlton n00b
Joined: 11 Apr 2005 Posts: 47
|
Posted: Sun Jan 20, 2019 6:52 pm Post subject: |
|
|
Hu wrote: | charlton wrote: | Again, I could back out python-3 but I don't want to have to. | You don't need to remove python-3 just to run a single program with an older Python version. From your output, it looks like it should work as-is. What is the output of equery files dev-python/pygobject? |
Code: | >equery files dev-python/pygobject
* Searching for pygobject in dev-python ...
* Contents of dev-python/pygobject-2.28.6-r55:
/usr
/usr/bin
/usr/bin/pygobject-codegen-2.0 -> ../lib/python-exec/python-exec2
/usr/include
/usr/include/pygtk-2.0
/usr/include/pygtk-2.0/pyglib.h
/usr/include/pygtk-2.0/pygobject.h
/usr/lib
/usr/lib/python-exec
/usr/lib/python-exec/python2.7
/usr/lib/python-exec/python2.7/pygobject-codegen-2.0 -> /usr/lib64/python2.7/site-packages/gtk-2.0/codegen/codegen.py
/usr/lib64
/usr/lib64/libpyglib-2.0-python2.72.7.so -> libpyglib-2.0-python2.72.7.so.0.0.0
/usr/lib64/libpyglib-2.0-python2.72.7.so.0 -> libpyglib-2.0-python2.72.7.so.0.0.0
/usr/lib64/libpyglib-2.0-python2.72.7.so.0.0.0
/usr/lib64/pkgconfig
/usr/lib64/pkgconfig/pygobject-2.0.pc
/usr/lib64/python2.7
/usr/lib64/python2.7/site-packages
/usr/lib64/python2.7/site-packages/glib
/usr/lib64/python2.7/site-packages/glib/__init__.py
/usr/lib64/python2.7/site-packages/glib/__init__.pyc
/usr/lib64/python2.7/site-packages/glib/__init__.pyo
/usr/lib64/python2.7/site-packages/glib/_glib.so
/usr/lib64/python2.7/site-packages/glib/option.py
/usr/lib64/python2.7/site-packages/glib/option.pyc
/usr/lib64/python2.7/site-packages/glib/option.pyo
/usr/lib64/python2.7/site-packages/gobject
/usr/lib64/python2.7/site-packages/gobject/__init__.py
/usr/lib64/python2.7/site-packages/gobject/__init__.pyc
/usr/lib64/python2.7/site-packages/gobject/__init__.pyo
/usr/lib64/python2.7/site-packages/gobject/_gobject.so
/usr/lib64/python2.7/site-packages/gobject/constants.py
/usr/lib64/python2.7/site-packages/gobject/constants.pyc
/usr/lib64/python2.7/site-packages/gobject/constants.pyo
/usr/lib64/python2.7/site-packages/gobject/propertyhelper.py
/usr/lib64/python2.7/site-packages/gobject/propertyhelper.pyc
/usr/lib64/python2.7/site-packages/gobject/propertyhelper.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/__init__.py
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/__init__.pyc
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/__init__.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/argtypes.py
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/argtypes.pyc
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/argtypes.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/code-coverage.py
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/codegen.py
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/createdefs.py
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/definitions.py
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/definitions.pyc
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/definitions.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/defsconvert.py
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/defsgen.py
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/defsparser.py
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/defsparser.pyc
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/defsparser.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/docextract.py
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/docextract.pyc
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/docextract.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/docextract_to_xml.py
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/docgen.py
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/h2def.py
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/mergedefs.py
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/missingdefs.py
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/mkskel.py
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/override.py
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/override.pyc
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/override.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/reversewrapper.py
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/reversewrapper.pyc
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/reversewrapper.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/scanvirtuals.py
/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/scmexpr.py
/usr/lib64/python2.7/site-packages/gtk-2.0/dsextras.py
/usr/lib64/python2.7/site-packages/gtk-2.0/dsextras.pyc
/usr/lib64/python2.7/site-packages/gtk-2.0/dsextras.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0/gio
/usr/lib64/python2.7/site-packages/gtk-2.0/gio/__init__.py
/usr/lib64/python2.7/site-packages/gtk-2.0/gio/__init__.pyc
/usr/lib64/python2.7/site-packages/gtk-2.0/gio/__init__.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0/gio/_gio.so
/usr/lib64/python2.7/site-packages/gtk-2.0/gio/unix.so
/usr/lib64/python2.7/site-packages/pygtk.pth
/usr/lib64/python2.7/site-packages/pygtk.py
/usr/lib64/python2.7/site-packages/pygtk.pyc
/usr/lib64/python2.7/site-packages/pygtk.pyo
/usr/share
/usr/share/doc
/usr/share/doc/pygobject-2.28.6-r55
/usr/share/doc/pygobject-2.28.6-r55/AUTHORS.bz2
/usr/share/doc/pygobject-2.28.6-r55/ChangeLog.bz2
/usr/share/doc/pygobject-2.28.6-r55/ChangeLog.pre-2.18.bz2
/usr/share/doc/pygobject-2.28.6-r55/NEWS.bz2
/usr/share/doc/pygobject-2.28.6-r55/README.bz2
/usr/share/gtk-doc
/usr/share/gtk-doc/html
/usr/share/gtk-doc/html/pygobject
/usr/share/gtk-doc/html/pygobject/class-gioappinfo.html
/usr/share/gtk-doc/html/pygobject/class-gioapplaunchcontext.html
/usr/share/gtk-doc/html/pygobject/class-gioasyncresult.html
/usr/share/gtk-doc/html/pygobject/class-giobufferedinputstream.html
/usr/share/gtk-doc/html/pygobject/class-giobufferedoutputstream.html
/usr/share/gtk-doc/html/pygobject/class-giocancellable.html
/usr/share/gtk-doc/html/pygobject/class-giodatainputstream.html
/usr/share/gtk-doc/html/pygobject/class-giodataoutputstream.html
/usr/share/gtk-doc/html/pygobject/class-giodrive.html
/usr/share/gtk-doc/html/pygobject/class-gioemblem.html
/usr/share/gtk-doc/html/pygobject/class-gioemblemedicon.html
/usr/share/gtk-doc/html/pygobject/class-giofile.html
/usr/share/gtk-doc/html/pygobject/class-giofileattributeinfo.html
/usr/share/gtk-doc/html/pygobject/class-giofileenumerator.html
/usr/share/gtk-doc/html/pygobject/class-giofileicon.html
/usr/share/gtk-doc/html/pygobject/class-giofileinfo.html
/usr/share/gtk-doc/html/pygobject/class-giofileinputstream.html
/usr/share/gtk-doc/html/pygobject/class-giofilemonitor.html
/usr/share/gtk-doc/html/pygobject/class-giofileoutputstream.html
/usr/share/gtk-doc/html/pygobject/class-giofilterinputstream.html
/usr/share/gtk-doc/html/pygobject/class-giofilteroutputstream.html
/usr/share/gtk-doc/html/pygobject/class-gioicon.html
/usr/share/gtk-doc/html/pygobject/class-gioinputstream.html
/usr/share/gtk-doc/html/pygobject/class-gioloadableicon.html
/usr/share/gtk-doc/html/pygobject/class-giomemoryinputstream.html
/usr/share/gtk-doc/html/pygobject/class-giomemoryoutputstream.html
/usr/share/gtk-doc/html/pygobject/class-giomount.html
/usr/share/gtk-doc/html/pygobject/class-giomountoperation.html
/usr/share/gtk-doc/html/pygobject/class-giooutputstream.html
/usr/share/gtk-doc/html/pygobject/class-gioseekable.html
/usr/share/gtk-doc/html/pygobject/class-giosimpleasyncresult.html
/usr/share/gtk-doc/html/pygobject/class-giothemedicon.html
/usr/share/gtk-doc/html/pygobject/class-giounixinputstream.html
/usr/share/gtk-doc/html/pygobject/class-giounixoutputstream.html
/usr/share/gtk-doc/html/pygobject/class-giovolume.html
/usr/share/gtk-doc/html/pygobject/class-giovolumemonitor.html
/usr/share/gtk-doc/html/pygobject/class-glibmaincontext.html
/usr/share/gtk-doc/html/pygobject/class-glibmainloop.html
/usr/share/gtk-doc/html/pygobject/class-gobject.html
/usr/share/gtk-doc/html/pygobject/class-gobjectgboxed.html
/usr/share/gtk-doc/html/pygobject/class-gobjectginterface.html
/usr/share/gtk-doc/html/pygobject/class-gobjectgpointer.html
/usr/share/gtk-doc/html/pygobject/gio-class-reference.html
/usr/share/gtk-doc/html/pygobject/gio-constants.html
/usr/share/gtk-doc/html/pygobject/gio-functions.html
/usr/share/gtk-doc/html/pygobject/giounix-class-reference.html
/usr/share/gtk-doc/html/pygobject/glib-class-reference.html
/usr/share/gtk-doc/html/pygobject/glib-constants.html
/usr/share/gtk-doc/html/pygobject/glib-functions.html
/usr/share/gtk-doc/html/pygobject/gobject-class-reference.html
/usr/share/gtk-doc/html/pygobject/gobject-constants.html
/usr/share/gtk-doc/html/pygobject/gobject-functions.html
/usr/share/gtk-doc/html/pygobject/index.html
/usr/share/gtk-doc/html/pygobject/index.sgml
/usr/share/gtk-doc/html/pygobject/pygobject-introduction.html
/usr/share/gtk-doc/html/pygobject/pygobject.devhelp
/usr/share/gtk-doc/html/pygobject/style.css
/usr/share/pygobject
/usr/share/pygobject/2.0
/usr/share/pygobject/2.0/defs
/usr/share/pygobject/2.0/defs/gappinfo.override
/usr/share/pygobject/2.0/defs/gapplaunchcontext.override
/usr/share/pygobject/2.0/defs/gbufferedinputstream.override
/usr/share/pygobject/2.0/defs/gcancellable.override
/usr/share/pygobject/2.0/defs/gdatainputstream.override
/usr/share/pygobject/2.0/defs/gdrive.override
/usr/share/pygobject/2.0/defs/gfile.override
/usr/share/pygobject/2.0/defs/gfileattribute.override
/usr/share/pygobject/2.0/defs/gfileenumerator.override
/usr/share/pygobject/2.0/defs/gfileinfo.override
/usr/share/pygobject/2.0/defs/gfileinputstream.override
/usr/share/pygobject/2.0/defs/gfileiostream.override
/usr/share/pygobject/2.0/defs/gfileoutputstream.override
/usr/share/pygobject/2.0/defs/gicon.override
/usr/share/pygobject/2.0/defs/ginputstream.override
/usr/share/pygobject/2.0/defs/gio-types.defs
/usr/share/pygobject/2.0/defs/gio.defs
/usr/share/pygobject/2.0/defs/gio.override
/usr/share/pygobject/2.0/defs/giostream.override
/usr/share/pygobject/2.0/defs/gmemoryinputstream.override
/usr/share/pygobject/2.0/defs/gmemoryoutputstream.override
/usr/share/pygobject/2.0/defs/gmount.override
/usr/share/pygobject/2.0/defs/goutputstream.override
/usr/share/pygobject/2.0/defs/gresolver.override
/usr/share/pygobject/2.0/defs/gsocket.override
/usr/share/pygobject/2.0/defs/gvolume.override
/usr/share/pygobject/2.0/defs/gvolumemonitor.override
/usr/share/pygobject/2.0/defs/unix-types.defs
/usr/share/pygobject/2.0/defs/unix.defs
/usr/share/pygobject/2.0/defs/unix.override
/usr/share/pygobject/xsl
/usr/share/pygobject/xsl/common.xsl
/usr/share/pygobject/xsl/devhelp.xsl
/usr/share/pygobject/xsl/fixxref.py
/usr/share/pygobject/xsl/html.xsl
/usr/share/pygobject/xsl/pdf-style.xsl
/usr/share/pygobject/xsl/pdf.xsl
/usr/share/pygobject/xsl/ref-html-style.xsl
* Contents of dev-python/pygobject-3.28.3-r1:
/usr
/usr/include
/usr/include/pygobject-3.0
/usr/include/pygobject-3.0/pygobject.h
/usr/lib64
/usr/lib64/pkgconfig
/usr/lib64/pkgconfig/pygobject-3.0.pc
/usr/lib64/python2.7
/usr/lib64/python2.7/site-packages
/usr/lib64/python2.7/site-packages/gi
/usr/lib64/python2.7/site-packages/gi/__init__.py
/usr/lib64/python2.7/site-packages/gi/__init__.pyc
/usr/lib64/python2.7/site-packages/gi/__init__.pyo
/usr/lib64/python2.7/site-packages/gi/_constants.py
/usr/lib64/python2.7/site-packages/gi/_constants.pyc
/usr/lib64/python2.7/site-packages/gi/_constants.pyo
/usr/lib64/python2.7/site-packages/gi/_error.py
/usr/lib64/python2.7/site-packages/gi/_error.pyc
/usr/lib64/python2.7/site-packages/gi/_error.pyo
/usr/lib64/python2.7/site-packages/gi/_gi.so
/usr/lib64/python2.7/site-packages/gi/_gi_cairo.so
/usr/lib64/python2.7/site-packages/gi/_option.py
/usr/lib64/python2.7/site-packages/gi/_option.pyc
/usr/lib64/python2.7/site-packages/gi/_option.pyo
/usr/lib64/python2.7/site-packages/gi/_ossighelper.py
/usr/lib64/python2.7/site-packages/gi/_ossighelper.pyc
/usr/lib64/python2.7/site-packages/gi/_ossighelper.pyo
/usr/lib64/python2.7/site-packages/gi/_propertyhelper.py
/usr/lib64/python2.7/site-packages/gi/_propertyhelper.pyc
/usr/lib64/python2.7/site-packages/gi/_propertyhelper.pyo
/usr/lib64/python2.7/site-packages/gi/_signalhelper.py
/usr/lib64/python2.7/site-packages/gi/_signalhelper.pyc
/usr/lib64/python2.7/site-packages/gi/_signalhelper.pyo
/usr/lib64/python2.7/site-packages/gi/docstring.py
/usr/lib64/python2.7/site-packages/gi/docstring.pyc
/usr/lib64/python2.7/site-packages/gi/docstring.pyo
/usr/lib64/python2.7/site-packages/gi/importer.py
/usr/lib64/python2.7/site-packages/gi/importer.pyc
/usr/lib64/python2.7/site-packages/gi/importer.pyo
/usr/lib64/python2.7/site-packages/gi/module.py
/usr/lib64/python2.7/site-packages/gi/module.pyc
/usr/lib64/python2.7/site-packages/gi/module.pyo
/usr/lib64/python2.7/site-packages/gi/overrides
/usr/lib64/python2.7/site-packages/gi/overrides/GIMarshallingTests.py
/usr/lib64/python2.7/site-packages/gi/overrides/GIMarshallingTests.pyc
/usr/lib64/python2.7/site-packages/gi/overrides/GIMarshallingTests.pyo
/usr/lib64/python2.7/site-packages/gi/overrides/GLib.py
/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyc
/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyo
/usr/lib64/python2.7/site-packages/gi/overrides/GObject.py
/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyc
/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyo
/usr/lib64/python2.7/site-packages/gi/overrides/Gdk.py
/usr/lib64/python2.7/site-packages/gi/overrides/Gdk.pyc
/usr/lib64/python2.7/site-packages/gi/overrides/Gdk.pyo
/usr/lib64/python2.7/site-packages/gi/overrides/Gio.py
/usr/lib64/python2.7/site-packages/gi/overrides/Gio.pyc
/usr/lib64/python2.7/site-packages/gi/overrides/Gio.pyo
/usr/lib64/python2.7/site-packages/gi/overrides/Gtk.py
/usr/lib64/python2.7/site-packages/gi/overrides/Gtk.pyc
/usr/lib64/python2.7/site-packages/gi/overrides/Gtk.pyo
/usr/lib64/python2.7/site-packages/gi/overrides/Pango.py
/usr/lib64/python2.7/site-packages/gi/overrides/Pango.pyc
/usr/lib64/python2.7/site-packages/gi/overrides/Pango.pyo
/usr/lib64/python2.7/site-packages/gi/overrides/__init__.py
/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pyc
/usr/lib64/python2.7/site-packages/gi/overrides/__init__.pyo
/usr/lib64/python2.7/site-packages/gi/overrides/keysyms.py
/usr/lib64/python2.7/site-packages/gi/overrides/keysyms.pyc
/usr/lib64/python2.7/site-packages/gi/overrides/keysyms.pyo
/usr/lib64/python2.7/site-packages/gi/pygtkcompat.py
/usr/lib64/python2.7/site-packages/gi/pygtkcompat.pyc
/usr/lib64/python2.7/site-packages/gi/pygtkcompat.pyo
/usr/lib64/python2.7/site-packages/gi/repository
/usr/lib64/python2.7/site-packages/gi/repository/__init__.py
/usr/lib64/python2.7/site-packages/gi/repository/__init__.pyc
/usr/lib64/python2.7/site-packages/gi/repository/__init__.pyo
/usr/lib64/python2.7/site-packages/gi/types.py
/usr/lib64/python2.7/site-packages/gi/types.pyc
/usr/lib64/python2.7/site-packages/gi/types.pyo
/usr/lib64/python2.7/site-packages/pygobject-3.28.3-py2.7.egg-info
/usr/lib64/python2.7/site-packages/pygtkcompat
/usr/lib64/python2.7/site-packages/pygtkcompat/__init__.py
/usr/lib64/python2.7/site-packages/pygtkcompat/__init__.pyc
/usr/lib64/python2.7/site-packages/pygtkcompat/__init__.pyo
/usr/lib64/python2.7/site-packages/pygtkcompat/generictreemodel.py
/usr/lib64/python2.7/site-packages/pygtkcompat/generictreemodel.pyc
/usr/lib64/python2.7/site-packages/pygtkcompat/generictreemodel.pyo
/usr/lib64/python2.7/site-packages/pygtkcompat/pygtkcompat.py
/usr/lib64/python2.7/site-packages/pygtkcompat/pygtkcompat.pyc
/usr/lib64/python2.7/site-packages/pygtkcompat/pygtkcompat.pyo
/usr/lib64/python3.6
/usr/lib64/python3.6/site-packages
/usr/lib64/python3.6/site-packages/gi
/usr/lib64/python3.6/site-packages/gi/__init__.py
/usr/lib64/python3.6/site-packages/gi/__pycache__
/usr/lib64/python3.6/site-packages/gi/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gi/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gi/__pycache__/_constants.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gi/__pycache__/_constants.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gi/__pycache__/_error.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gi/__pycache__/_error.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gi/__pycache__/_option.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gi/__pycache__/_option.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gi/__pycache__/_ossighelper.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gi/__pycache__/_ossighelper.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gi/__pycache__/_propertyhelper.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gi/__pycache__/_propertyhelper.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gi/__pycache__/_signalhelper.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gi/__pycache__/_signalhelper.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gi/__pycache__/docstring.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gi/__pycache__/docstring.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gi/__pycache__/importer.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gi/__pycache__/importer.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gi/__pycache__/module.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gi/__pycache__/module.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gi/__pycache__/pygtkcompat.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gi/__pycache__/pygtkcompat.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gi/__pycache__/types.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gi/__pycache__/types.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gi/_constants.py
/usr/lib64/python3.6/site-packages/gi/_error.py
/usr/lib64/python3.6/site-packages/gi/_gi.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/gi/_gi_cairo.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/gi/_option.py
/usr/lib64/python3.6/site-packages/gi/_ossighelper.py
/usr/lib64/python3.6/site-packages/gi/_propertyhelper.py
/usr/lib64/python3.6/site-packages/gi/_signalhelper.py
/usr/lib64/python3.6/site-packages/gi/docstring.py
/usr/lib64/python3.6/site-packages/gi/importer.py
/usr/lib64/python3.6/site-packages/gi/module.py
/usr/lib64/python3.6/site-packages/gi/overrides
/usr/lib64/python3.6/site-packages/gi/overrides/GIMarshallingTests.py
/usr/lib64/python3.6/site-packages/gi/overrides/GLib.py
/usr/lib64/python3.6/site-packages/gi/overrides/GObject.py
/usr/lib64/python3.6/site-packages/gi/overrides/Gdk.py
/usr/lib64/python3.6/site-packages/gi/overrides/Gio.py
/usr/lib64/python3.6/site-packages/gi/overrides/Gtk.py
/usr/lib64/python3.6/site-packages/gi/overrides/Pango.py
/usr/lib64/python3.6/site-packages/gi/overrides/__init__.py
/usr/lib64/python3.6/site-packages/gi/overrides/__pycache__
/usr/lib64/python3.6/site-packages/gi/overrides/__pycache__/GIMarshallingTests.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gi/overrides/__pycache__/GIMarshallingTests.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gi/overrides/__pycache__/GLib.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gi/overrides/__pycache__/GLib.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gi/overrides/__pycache__/GObject.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gi/overrides/__pycache__/GObject.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gi/overrides/__pycache__/Gdk.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gi/overrides/__pycache__/Gdk.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gi/overrides/__pycache__/Gio.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gi/overrides/__pycache__/Gio.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gi/overrides/__pycache__/Gtk.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gi/overrides/__pycache__/Gtk.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gi/overrides/__pycache__/Pango.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gi/overrides/__pycache__/Pango.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gi/overrides/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gi/overrides/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gi/overrides/__pycache__/keysyms.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gi/overrides/__pycache__/keysyms.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gi/overrides/keysyms.py
/usr/lib64/python3.6/site-packages/gi/pygtkcompat.py
/usr/lib64/python3.6/site-packages/gi/repository
/usr/lib64/python3.6/site-packages/gi/repository/__init__.py
/usr/lib64/python3.6/site-packages/gi/repository/__pycache__
/usr/lib64/python3.6/site-packages/gi/repository/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gi/repository/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gi/types.py
/usr/lib64/python3.6/site-packages/pygobject-3.28.3-py3.6.egg-info
/usr/lib64/python3.6/site-packages/pygtkcompat
/usr/lib64/python3.6/site-packages/pygtkcompat/__init__.py
/usr/lib64/python3.6/site-packages/pygtkcompat/__pycache__
/usr/lib64/python3.6/site-packages/pygtkcompat/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/pygtkcompat/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/pygtkcompat/__pycache__/generictreemodel.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/pygtkcompat/__pycache__/generictreemodel.cpython-36.pyc
/usr/lib64/python3.6/site-packages/pygtkcompat/__pycache__/pygtkcompat.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/pygtkcompat/__pycache__/pygtkcompat.cpython-36.pyc
/usr/lib64/python3.6/site-packages/pygtkcompat/generictreemodel.py
/usr/lib64/python3.6/site-packages/pygtkcompat/pygtkcompat.py
/usr/share
/usr/share/doc
/usr/share/doc/pygobject-3.28.3-r1
/usr/share/doc/pygobject-3.28.3-r1/ChangeLog.bz2
/usr/share/doc/pygobject-3.28.3-r1/NEWS.bz2
/usr/share/doc/pygobject-3.28.3-r1/README.rst.bz2 |
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30911 Location: here
|
Posted: Mon Jan 21, 2019 6:42 am Post subject: |
|
|
charlton wrote: | fedeliallalinea wrote: | What version is select by default (eselect python list)?
If you run
Code: | $ python3
Python 3.6.5 (default, Sep 11 2018, 20:41:07)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi |
what happends? |
Code: | >python3
Python 3.4.5 (default, Jan 4 2018, 15:12:25)
[GCC 4.9.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'gi'
>>> |
Maybe the virt-manager package needs to add the gi module as a dependency? |
Change python version to 3.6 with eselect python. You try to import pi in python3.4 (not longer in python targets) but dev-python/pygobject has no python3_4 enabled
Code: | [ebuild R ] dev-python/pygobject-3.28.3-r1 USE="cairo -examples -test" PYTHON_TARGETS="python2_7 python3_6 -python3_4 -python3_5 -python3_7" |
depclean does not propose to delete python3.4? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
charlton n00b
Joined: 11 Apr 2005 Posts: 47
|
Posted: Tue Jan 22, 2019 6:14 am Post subject: |
|
|
fedeliallalinea wrote: | Change python version to 3.6 with eselect python. You try to import pi in python3.4 (not longer in python targets) but dev-python/pygobject has no python3_4 enabled |
Thanks, that fixed it!
I didn't realize it should have been updated to 3.6 as the 3.6 option was listed as [fallback].
Quote: | Code: | [ebuild R ] dev-python/pygobject-3.28.3-r1 USE="cairo -examples -test" PYTHON_TARGETS="python2_7 python3_6 -python3_4 -python3_5 -python3_7" |
depclean does not propose to delete python3.4? |
Well in my case I manually depclean packages because I have many non-portage packages installed it wants to try to remove. |
|
Back to top |
|
|
gordonp Tux's lil' helper
Joined: 23 May 2005 Posts: 102
|
Posted: Wed Jan 30, 2019 2:21 pm Post subject: Helped me too! Eselect python set <#> |
|
|
Thanks - this thread helped me get my busted virt-manager working too! |
|
Back to top |
|
|
Leio Developer
Joined: 27 Feb 2003 Posts: 494 Location: Estonia
|
Posted: Wed Feb 27, 2019 6:10 pm Post subject: |
|
|
Things should be working independency of "eselect python" choice. If they don't, then that's worth a bug and fixing. It's a matter of having virt-manager python executables have a proper python shebang that matches what was chosen by user via PYTHON_SINGLE_TARGET.
Read: this issue is not solved, just solved on a particular system. _________________ GNOME team lead; GStreamer; MIPS/ARM64 |
|
Back to top |
|
|
|