Cannot import cgi.py -- scripts broken

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • yazzoo

    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.c gi", 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
  • Paul Clinch

    #2
    Re: Cannot import cgi.py -- scripts broken

    yazzoo <yazzoo@null.ne t> wrote in message news:<rBUfc.326 39$aD.32463@edt nps89>...[color=blue]
    > 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.c gi", 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
    >[/color]

    looking for libssl.so.2,
    [color=blue]
    >
    > My ISP's tech support confirms that the file is still available on the
    > server in the directory /usr/local/ssl/lib/libssl.so
    >[/color]

    libssl.so not the same as libssl.so.2
    [color=blue]
    > any clue's?
    >
    > Thanks in advance,
    > Lester[/color]

    though functionaly they may be.

    Regards, Paul Clinch

    Comment

    Working...