473,386 Members | 1,786 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,386 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 2232
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.