[Geany-devel] Attempted python plugin

Jason Oster jason.oster at xxxxx
Wed Nov 10 22:49:20 UTC 2010

On 11/10/2010 02:44 PM, Oliver Marks wrote:
> This is the error i get when launching the plugin in geany
> Loading the test Python module.
> Traceback (most recent call last):
>    File "<string>", line 1, in<module>
>    File "/usr/lib/pymodules/python2.6/gtk-2.0/gtk/__init__.py", line 30,
> in<module>
>      import gobject as _gobject
>    File "/usr/lib/pymodules/python2.6/gtk-2.0/gobject/__init__.py", line
> 26, in<module>
>      from glib import spawn_async, idle_add, timeout_add,
> timeout_add_seconds, \
>    File "/usr/lib/pymodules/python2.6/gtk-2.0/glib/__init__.py", line 22,
> in<module>
>      from glib._glib import *
> ImportError: /usr/lib/libpyglib-2.0-python2.6.so.0: undefined symbol:
> PyExc_ImportError
> Any one able to help, me or suggest some things i can try ??

I'd say it's a dynamic linking problem.  After a little digging in 
Google (by the way, most search results are related to your(?) 
unanswered question on stackoverflow. meh...) I've found a few things 
which may be related:

* http://mail.python.org/pipermail/cplusplus-sig/2005-February/008216.html
* http://mail.python.org/pipermail/python-dev/2002-May/023923.html

The first link provides a good suggestion that should catch undefined 
symbols at link-time. Although you'll be using -lpython2.6 these days!

The second and third links refer to dlopen() and the RTLD_GLOBAL flag, 
which Py_Initialize() should be taking care of. Not sure about the state 
of this,; both list threads are old.

But, I'm no Python expert; just trying to help out!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jason_oster.vcf
Type: text/x-vcard
Size: 303 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20101110/a918c957/attachment.vcf>

More information about the Devel mailing list