Freezing problem with shared libraries in python2.0 under RedHatLinux 7.1

Rich Parker rparker at lynx.dac.neu.edu
Fri Jun 8 07:16:59 EDT 2001


Hello all,
I am new to python but I have a simple program hello.py

include cPickle
print "hello world"

And if i try to freeze it under RedHat Linux 7.1, it will
create the source files, which compile after running
make, leaving the executable 'hello'
however, when i run hello i get the following error
Traceback (most recent call last):
file "hello.py", line 1, in ?
ImportError: /usr/local/lib/python2.0/lib/lib-dynload/cPickle.so: undefined
symbol:
PyExec_IOError
........................
(/usr/local/lib/python2.0/lib/lib-dynload/cPickle.so exists on the hard
drive)
This will be the same for other programs,  just other files, for emple
ImportError:/usr/local/lib/python2.0/lib/lib-dynload/arrayumodule.so and
what not.

I looked in the FAQ, and saw 3.34: I cant load shared libraries under Python
1.52, Solaris7, and gcc 2.95.2
answer configure should make the following variable in the Makefile created
by freezing
LINKFORSHARED=-Xlinker -export-dynamic
but wasnt for version 1.52, but when i checked in my Makefile, that variable
IS there.

Can anyone help me?
Thank you very much
RichP






More information about the Python-list mailing list