After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 660348 - Does not work with pygobject 3.0
Does not work with pygobject 3.0
Status: RESOLVED FIXED
Product: nautilus-python
Classification: Other
Component: general
1.0
Other Linux
: Normal normal
: ---
Assigned To: Adam Plumb
Adam Plumb
Depends on:
Blocks:
 
 
Reported: 2011-09-28 10:07 UTC by Vincent Untz
Modified: 2011-10-05 17:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Port to pygobject 3.0 (2.70 KB, patch)
2011-09-29 07:11 UTC, Vincent Untz
none Details | Review
Do not try to load python extensions if we failed to initiliaze (740 bytes, patch)
2011-09-29 07:12 UTC, Vincent Untz
none Details | Review
Fix various warnings (1.79 KB, patch)
2011-09-29 07:12 UTC, Vincent Untz
none Details | Review

Description Vincent Untz 2011-09-28 10:07:26 UTC
As mentioned in http://www.j5live.com/2011/08/14/announce-pygobject-2-90-1-released-3-0-pre-release/ :

import gobject must be ported as from gi.repository import GObject – this was the recommended way of importing GObject but some code may still have used import gobject.  Having both will cause applications to fail because it will load the older 2.28 bindings alongside the 3.0 bindings.
Comment 1 Vincent Untz 2011-09-28 10:33:15 UTC
Okay, it looks there's more work needed as with this change, nautilus now crashes :-)
Comment 2 Vincent Untz 2011-09-29 07:11:03 UTC
Created attachment 197727 [details] [review]
Port to pygobject 3.0

I didn't try to keep compatibility with 2.x.
Comment 3 Vincent Untz 2011-09-29 07:12:04 UTC
Created attachment 197728 [details] [review]
Do not try to load python extensions if we failed to initiliaze

Was hit by the issue while porting, so fix this.
Comment 4 Vincent Untz 2011-09-29 07:12:21 UTC
Created attachment 197729 [details] [review]
Fix various warnings
Comment 5 Vincent Untz 2011-09-29 07:12:57 UTC
The last two patches are obviously not strictly needed but those are issues I found while debugging things.
Comment 6 Adam Plumb 2011-10-05 17:38:39 UTC
Thanks for the patches.  Added to the nautilus-3.0 branch.