473,236 Members | 1,638 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,236 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 975

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Andreas Jung | last post by:
I am trying to embed Python within a C++ application (Linux, Python2.3.4). I am using the example from the example from the "Embeding and Extending" docs. This works fine importing a simple module...
1
by: glaserp | last post by:
Hi, I am developing a Windows application with C# in Visual Stuio .NET. My application references three assemblies that are developed in another project. I have added these assemblies as...
47
by: Pierre Barbier de Reuille | last post by:
Please, note that I am entirely open for every points on this proposal (which I do not dare yet to call PEP). Abstract ======== This proposal suggests to add symbols into Python. Symbols...
1
by: wylbur via DotNetMonster.com | last post by:
I'm having a problem with establishing breakpoints in DbgCLR Version 2.0. I've set breakpoints for statements in Page_Init, and they were never triggered when I loaded the webpage. In the code...
0
by: wASP | last post by:
Hi, I'm posting this again - I'm having some kind of a problem with my posts disappearing ... I'm having a problem with establishing breakpoints in DbgCLR Version 2.0. I've set...
0
by: wASP | last post by:
Hi, I'm having a problem with establishing breakpoints in DbgCLR Version 2.0. I've set breakpoints for statements in Page_Init, and they were never triggered when I loaded the webpage. I place...
3
by: trond.norbye | last post by:
Hi I am trying to compile a quite large software system with a new compiler. During that attempt I am facing problems during the link phase, and I have traced it down to the following construct:...
1
by: Justin Johnson | last post by:
Hello, I'm trying to build Python 2.5.0 on AIX 5.3 using IBM's compiler (VisualAge C++ Professional / C for AIX Compiler, Version 6). I run configure and make, but makes fails with undefined...
7
by: 2b|!2b==? | last post by:
I am attempting to manually load debug symbols for a module. I am doing it by carrying out the ff steps: i). Select the call stack window ii). right click and select 'Load Symbols' from...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.