473,288 Members | 1,743 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,288 software developers and data experts.

ImportError on _socketmodule.so when running a frozen program

I'm getting the following when I run my executable:

File "/usr/lib/python2.2/socket.py", line 41, in ?
from _socket import *
ImportError: /usr/lib/python2.2/lib-dynload/_socketmodule.so:
undefined symbol: PyInt_FromLong

However, if I run 'nm' on the executable, I get the following output:

0807cf90 T PyInt_FromLong

doesn't this mean that PyInt_FromLong() is staticly linked into the
executable (got it when it staticly linked in
/usr/lib/python2.2/config/libpython2.2.a )?

Any ideas as to why it doesn't think this symbol is defined?

-Scott
Jul 18 '05 #1
1 2224
Hmm, I just ran objdump and it definitely looks like the
PyInt_FromLong definition is statically linked into the executable.
Any ideas as to why loading a shared library would fail saying
PyInt_FromLong is an undefined symbol?

0807cf90 <PyInt_FromLong>:
807cf90: 55 push %ebp
807cf91: 89 e5 mov %esp,%ebp
807cf93: 83 ec 18 sub $0x18,%esp
807cf96: 89 75 f8 mov %esi,0xfffffff8(%ebp)
807cf99: 8b 75 08 mov 0x8(%ebp),%esi
..
..
..

si********@hotmail.com (Scott Silliman) wrote in message news:<1c*************************@posting.google.c om>...
I'm getting the following when I run my executable:

File "/usr/lib/python2.2/socket.py", line 41, in ?
from _socket import *
ImportError: /usr/lib/python2.2/lib-dynload/_socketmodule.so:
undefined symbol: PyInt_FromLong

However, if I run 'nm' on the executable, I get the following output:

0807cf90 T PyInt_FromLong

doesn't this mean that PyInt_FromLong() is staticly linked into the
executable (got it when it staticly linked in
/usr/lib/python2.2/config/libpython2.2.a )?

Any ideas as to why it doesn't think this symbol is defined?

-Scott

Jul 18 '05 #2

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

Similar topics

6
by: o'seally | last post by:
solaris/linux admins/rookie_developers that battle with this error are probably all frustrated when it happens. i bet you're also somehow frustrated by this seemingly unsolvable error :-) ...take...
1
by: flupke | last post by:
Hi, i am in search of a cddb module for Python on windows. I stumbled upon http://sourceforge.net/projects/cddb-py but couldn't use it since the mci.dll is compiled against Python2.0. So i'm...
1
by: Laszlo Zsolt Nagy | last post by:
Hi All! I have a running service (a small web server) implemented in python, running as a win32 service. I wrote another program that is very similar to the web server but I cannot start the...
15
by: Brady Love | last post by:
I am currently working an an app that will post and edit blogs on blogger. Right now I have it so I can recive a list of the blogs and the content of those blogs using Atomizer. This is my first...
3
by: gmax2006 | last post by:
Hi, I am using RedHat Linux 4. and I developed an oracle 10g based application by using cx_Oracle (cx_Oracle-4.1-10g-py23-1.i386.rpm) and Python 2.3.4. When I run the application through...
2
by: Adam Blinkinsop | last post by:
I'm writing a set of modules to monitor remote system services, and I'm having a problem running my test scripts. When I pass the scripts into python, like so: -- $ PYTHONPATH="${TARGET_DIR}"...
10
by: morangolds | last post by:
Hi, I've been having a problem with C++ Windows Forms apps not "ending" when you close the form window. I've searched about this problem all over the place and most searches have lead me to...
4
by: prashant | last post by:
I am running a python script which has the line import getopt, sys, os, re, string And i get the error ImportError: No module named getopt Could you please point out a possible solution...
0
by: Andrew MacIntyre | last post by:
Tony May wrote: The DLL that's actually being imported by your script is not a Python extension module, as the modules initialisation function can't be found. Use the -v option on the Python...
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:
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:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.