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 396432 - pygimp codegen fails in codegen.py
pygimp codegen fails in codegen.py
Status: RESOLVED DUPLICATE of bug 381389
Product: pygobject
Classification: Bindings
Component: codegen
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2007-01-14 13:44 UTC by Hans Breuer
Modified: 2008-07-16 10:13 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description Hans Breuer 2007-01-14 13:44:30 UTC
on Gentoo, dev-python/pygtk-2.10.3  USE="doc opengl" 0 kB 

If there is a way to work around it in the gimpui.override file this should probably be reassigned to gimp/pygimp.

 /usr/bin/pygtk-codegen-2.0 \
    --override gimpui.override \
    --register /usr/share/pygtk/2.0/defs/gdk-types.defs \
    --register /usr/share/pygtk/2.0/defs/gtk-types.defs \
    --register ./gimpcolor-types.defs \
    --register ./gimpenums-types.defs \
    --prefix gimpui gimpui.defs) > gen-gimpui.c \
 && cp gen-gimpui.c gimpui.c \
 && rm -f gen-gimpui.c

[...]
Could not write method GimpZoomPreview.get_drawable: No ArgType for GimpDrawable*
Traceback (most recent call last):
  • File "/usr/share/pygtk/2.0/codegen/codegen.py", line 1707 in ?
    sys.exit(main(sys.argv))
  • File "/usr/share/pygtk/2.0/codegen/codegen.py", line 1698 in main
    sw.write(py_ssize_t_clean)
  • File "/usr/share/pygtk/2.0/codegen/codegen.py", line 1340 in write
    self.write_classes()
  • File "/usr/share/pygtk/2.0/codegen/codegen.py", line 1437 in write_classes
    instance.write_class()
  • File "/usr/share/pygtk/2.0/codegen/codegen.py", line 283 in write_class
    substdict['tp_methods'] = self.write_methods()
  • File "/usr/share/pygtk/2.0/codegen/codegen.py", line 519 in write_methods
    methods.append(self.methdef_tmpl %
UnboundLocalError: local variable 'meth' referenced before assignment
make[4]: *** [gimpui.c] Error 1
make[4]: Leaving directory `/mnt/Home/from-svn/gimp/plug-ins/pygimp'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/mnt/Home/from-svn/gimp/plug-ins/pygimp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/Home/from-svn/gimp/plug-ins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/Home/from-svn/gimp'
make: *** [all] Error 2
Comment 1 Manish Singh 2007-01-15 00:42:53 UTC

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