ImportError: Unresolved symbol

Nikolas Kauer kauer at pheno.physics.wisc.edu
Wed Jul 21 02:17:26 EDT 1999


When I run a Python CGI script (first line #!/patjh/bin/python), I get the 
following error in the Apache error log:

[Tue Jul 20 16:58:55 1999] [error] [client ...] Premature end of script headers: /usr/share/test/apache_1.3.6/cgi-bin/db_
driver.cgi
Traceback (innermost last):
  File "/usr/share/test/apache_1.3.6/cgi-bin/db_driver.cgi", line 24, in ?
    from cgi_namespace import *
  File "/usr/share/test/python/lib/python1.5/lib-dynload/cgi_namespace.py", line 8, in ?
    from cgi_state import State
  File "/usr/share/test/python/lib/python1.5/lib-dynload/cgi_state.py", line 1, in ?
    import types, DateTime, string
  File "/usr/share/test/python/lib/python1.5/lib-dynload/DateTime.py", line 8, in ?
    from mxDateTime import *
ImportError: Unresolved symbol in /usr/share/test/python/lib/python1.5/lib-dynload/mxDateTime.so: timegm

When I start an interactive Python session, and do "import DateTime", or execute the Python script on 
the command line (like tcsh> ./db_driver.cgi) no error messages appear, everything seems to work fine.  
The Web server runs on Digital Unix 4.0E.

The only solution I can currently think of would be to try to statically link mxDateTime.so ...

Any hints, anybody?

Thanks!




More information about the Python-list mailing list