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 647736 - doesn't handle some imports doesn't handle some imports
Product: pygobject
Classification: Bindings
Component: general
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Reported: 2011-04-14 03:00 UTC by Jean-François Fortin Tam
Modified: 2011-04-15 14:18 UTC
See Also:
GNOME target: ---
GNOME version: ---

Description Jean-François Fortin Tam 2011-04-14 03:00:04 UTC
I have a piece of code like this:

import gobject

However, pygi-convert does not change the import line, and thus I get:

Traceback (most recent call last):
  • File "<stdin>", line 1 in <module>
NameError: name 'GObject' is not defined

Comment 1 Sebastian Pölsterl 2011-04-15 14:18:02 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.