By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,767 Members | 1,228 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,767 IT Pros & Developers. It's quick & easy.

Cannot import cgi.py -- scripts broken

P: n/a
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
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
yazzoo <ya****@null.net> wrote in message news:<rBUfc.32639$aD.32463@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
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.