Bug#649861: import gobject isn't working anymore

Andrea Veri and at debian.org
Thu Nov 24 11:42:22 UTC 2011


Package: python-gobject
Severity: grave

Hi,

while checking a nautilus extension I maintain I got stuck seeing it 
being suddenly unusable after rebooting my machine after the 
20/11.

I checked around and the running nautilus with the --no-desktop flag 
took in the several problem:

:/usr/share/nautilus-python/extensions$ nautilus --no-desktop
Traceback (most recent call last):
 File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 23, in <module>
   from ._gi import _API, Repository
ImportError: could not import gobject (error was: ImportError('When 
using gi.repository you must not import static modules like "gobject". 
Please change all occurrences of "import gobject" to "from 
gi.repository import GObject".',))

After a brief talk with Joss, we came up that the 'import gobject' 
isn't working anymore, while for years the python-gobject made that 
possible. 

It has been recommended for some time to do the following 
'from gi.repository import foo', while 'import gobject' was still 
possible, now that possibility isn't working anymore.

cheers,

Andrea

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20111124/f545d5cd/attachment.pgp>


More information about the pkg-gnome-maintainers mailing list