Cannot import cgi.py -- scripts broken

yazzoo yazzoo at null.net
Fri Apr 16 13:20:23 EDT 2004


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



More information about the Python-list mailing list