Cannot import cgi.py -- scripts broken

Y

yazzoo

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


My ISP's tech support confirms that the file is still available on the
server in the directory /usr/local/ssl/lib/libssl.so

any clue's?

Thanks in advance,
Lester
 
P

Paul Clinch

yazzoo said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top