471,325 Members | 1,653 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 software developers and data experts.

Undefined Symbols while importing modules

Hi all,
I have been learning to write Python extension modules, and am quite
at a loss over a small glitch thats taking place. When I import my
module I get the following exception
>>import pygsmd
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/site-packages/pygsmd/__init__.py", line 9,
in <module>
import _pygsmd, network, voicecall, sms, phonebook
ImportError: /usr/lib/python2.5/site-packages/pygsmd/network.so:
undefined symbol: pygsmd_handler

But the pygsmd_handler function is defined in the source file that
produces _pygsmd.so. Also as you can see _pygsmd in imported first in
my __init__.py. Of course following the usual C rules, pygsmd_handler
is declared extern in a header that the other sources include. Is
there a way I could bring pygsmd_handler function in a more common
namespace?, so that other modules may use them. It seems that using
the build_clib feature creates only static libraries. Is there a way I
can create dynamic ones using distutils?

Thanks for the hints

Regards
Sudharshan S
Dec 4 '07 #1
0 925

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

47 posts views Thread by Pierre Barbier de Reuille | last post: by
1 post views Thread by wylbur via DotNetMonster.com | last post: by
reply views Thread by wASP | last post: by
7 posts views Thread by 2b|!2b==? | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.