Missing symbols for PyGTK when not using the distutils

Guido Soranzio guido.soranzio at gmail.com
Thu Dec 6 00:08:30 PST 2007


On Leopard/PPC I can run successfully  the examples of py25-cairo
when compiling it manually by using the distutils or by adding
the option "PortGroup python25 1.0" to the portfile.

Otherwise, this is the error message reported by MacPorts:

ImportError: dlopen(/opt/local/lib/python2.5/site-packages/cairo/ 
_cairo.so, 2): Symbol not found: _PycairoContext_FromContext
   Referenced from: /opt/local/lib/python2.5/site-packages/cairo/ 
_cairo.so
   Expected in: flat namespace

Similar errors regarding missing symbols occur when trying to run
the pygtk-demo from the py25-gtk port:

ImportError: dlopen(/opt/local/lib/python2.5/site-packages/gtk-2.0/ 
gobject/_gobject.so, 2): Symbol not found: _PyGBoxed_Type
   Referenced from: /opt/local/lib/python2.5/site-packages/gtk-2.0/ 
gobject/_gobject.so
   Expected in: flat namespace

Again, by compiling manually PyGObject you get a .so library with all  
the
symbols, but the author suggests not to compile PyGTK by using the
distutils... ;/



More information about the macports-users mailing list