Cannot import cgi.py -- scripts broken
Paul Clinch
pclinch at internet-glue.co.uk
Sun Apr 18 10:49:41 EDT 2004
yazzoo <yazzoo at null.net> wrote in message news:<rBUfc.32639$aD.32463 at edtnps89>...
> I've been banging my head over a long running script that has suddenly
> stopped working when my ISP upgraded Apache and Suexec. They didn't
> specify what they did, but I presume it was the latest updates.
>
> My problem is that any script that tries to import cgi.py breaks.
>
> For example, the following script:
>
> #!/usr/bin/python
> print """Content-type: text/html\n\n"""
> import cgi, sys, string, os
> print """<html>hi</html>"""
>
> fails with the following message in apache's error log.
>
> Traceback (innermost last):
> File "hello.py.cgi", line 3, in ?
> import cgi, sys, string, os
> File "/usr/lib/python1.5/cgi.py", line 422, in ?
> import urllib
> File "/usr/lib/python1.5/urllib.py", line 25, in ?
> import socket
> ImportError: libssl.so.2: cannot open shared object file: No such file
> or directory
>
looking for libssl.so.2,
>
> My ISP's tech support confirms that the file is still available on the
> server in the directory /usr/local/ssl/lib/libssl.so
>
libssl.so not the same as libssl.so.2
> any clue's?
>
> Thanks in advance,
> Lester
though functionaly they may be.
Regards, Paul Clinch
More information about the Python-list
mailing list