ImportError: Unresolved symbol

Fredrik Lundh fredrik at pythonware.com
Wed Jul 21 12:37:28 EDT 1999


Nikolas Kauer <kauer at pheno.physics.wisc.edu> wrote:
> 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?

looks like mxDateTime requires library function
named "timegm".  afaik, there's no such function
in the Digital Unix standard libraries (there's an
"gmtime" in there, but no "timegm"...)

check the mxDateTime build instructions (there's
gotta be some way to do without that function),
and rebuild.

</F>





More information about the Python-list mailing list