473,327 Members | 1,920 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Cannot import cgi.py -- scripts broken

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
1 1579
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Manlio Perillo | last post by:
Hi. I'm a new user of Python but I have noted a little problem. Python is a very good language but it is evolving, in particular its library is evolving. This can be a problem when, ad example,...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
7
by: Kevin Newman | last post by:
I've been toying with a namespace manager, and wanted to get some input. So what do you think? if (typeof com == 'undefined') var com = {}; if (!com.unFocus) com.unFocus = {}; ...
0
by: anonymous | last post by:
Hey all, I sent this as a response to someone else's problem, but then I thought it might be useful to more people so I'm starting a new thread to share and discuss it. I found a great JavaScript...
2
by: Keith Chadwick | last post by:
I have been running some tests with regards to xsl:include and xsl:import with the same results on both and I am wondering if someone can explain this behavior to me! First off the xslt file is...
2
by: Jon | last post by:
It appears that (windows) python searches in the current working directory before looking in the local site-packages directory, or that '.' comes first in sys.path? The problem arises when I made...
49
by: Martin Unsal | last post by:
I'm using Python for what is becoming a sizeable project and I'm already running into problems organizing code and importing packages. I feel like the Python package system, in particular the...
12
by: Alan Isaac | last post by:
Are relative imports broken in 2.5? Directory ``temp`` contains:: __init__.py test1.py test2.py File contents: __init__.py and test2.py are empty test1.py contains a single line::
0
by: Alan Isaac | last post by:
This is really a repackaging of an earlier question, probably illustrating that I still do not understand relative imports. Suppose I have the package structure (taken from the example at...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.