freeze problem, undefined symbol

STB spngh at rhythm.cx
Sun Oct 26 17:33:27 EST 2003


Hi. I'm trying to freeze a test program that uses curses. This test 
program consists of nothing more than an 'import curses' statement. This 
program runs fine if I just have the interpreter run it.

Freeze runs correctly except for the following warning (which according 
to the README for freeze will not prevent the program from running on 
the machine that is doing the compiling):

     Warning: unknown modules remain: _curses _socket _tkinter binascii
     cStringIO math pcre pwd select strop termios time

The resulting C source compiles fine. However when I try to run the binary:

     Traceback (most recent call last):
       File "test.py", line 1, in ?
         import curses
       File "/usr/local/lib/python2.2/curses/__init__.py", line 15, in ?
         from _curses import *
     ImportError: /usr/local/lib/python2.2/lib-dynload/_curses.so:
     undefined symbol: _Py_TrueStruct

Does anyone know how I can fix this?

Python: 2.2.3, compiled from source
OS: RedHat Linux 7.2 i386





More information about the Python-list mailing list