Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 591874

Summary: x11-misc/redshift with dev-python/pygobject-3.20.1 - ImportError: cannot import name '_gi'
Product: Gentoo Linux Reporter: lekto
Component: Current packagesAssignee: Sebastian Pipping <sping>
Status: RESOLVED DUPLICATE    
Severity: normal CC: desktop-misc, lekto
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description lekto 2016-08-22 16:55:04 UTC
Created attachment 443868 [details]
emerge --info

After update to pygobject-3.20.1, redshift-gtk (from x11-misc/redshift) crash right after start.

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.4/redshift-gtk", line 26, in <module>
    from redshift_gtk.statusicon import run
  File "/usr/lib64/python3.4/site-packages/redshift_gtk/statusicon.py", line 32, in <module>
    import gi
  File "/usr/lib64/python3.4/site-packages/gi/__init__.py", line 42, in <module>
    from . import _gi
ImportError: cannot import name '_gi'
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2016-08-23 06:23:43 UTC
Is it just me or does that look like pybgobject is complaining and not redshift-gtk?
Comment 2 Sebastian Pipping gentoo-dev 2016-08-23 10:53:37 UTC
> Is it just me or does that look like pybgobject is complaining and not
> redshift-gtk?

Sounds right, yes.


Lekto, could you check if this is bug #570678 again?
                                  ^^^^^^^^^^^
If /not/:

 * Does this crash as well?: python3.4 -c 'import gi'

 * Do you have a file /usr/lib64/python3.4/site-packages/gi/_gi.cpython-34m.so ?

Best, Sebastian
Comment 3 lekto 2016-08-23 15:34:57 UTC
It works now, looks like redshift must be rebuilded after update of pygobject.
Comment 4 Sebastian Pipping gentoo-dev 2016-08-23 16:10:00 UTC
Thanks for the update!
Comment 5 Sebastian Pipping gentoo-dev 2016-08-23 16:11:01 UTC

*** This bug has been marked as a duplicate of bug 570678 ***