ich habe mir eine .cgi gebaut mit der ich über das Modul cx_Oracle von einer OracleDB eine kleine Tabelle ausgebe.
Diese funktioniert wunderbar wen ich Sie über die Konsole aufrufe.
Aber sobald ich über den Webserver apache2 gehe wird mir eine solche Fehlermeldung angezeigt.
Wen ich die Zeile: "import cx_Oracle" auskommentiere sehe ich ein Ergebniss und kein Fehler.
Code: Alles auswählen
<type 'exceptions.ImportError'> Python 2.6.5: /usr/bin/python
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/usr/lib/cgi-bin/Testdatei.cgi in ()
3 import sqlite3
4 import cgitb; cgitb.enable()
[b] 5 import cx_Oracle[/b]
6 # Dokument-Typ
7 print("Content-type: text/html;charset=utf-8\n")
cx_Oracle undefined
<type 'exceptions.ImportError'>: libclntsh.so.10.1: cannot open shared object file: No such file or directory
args = ('libclntsh.so.10.1: cannot open shared object file: No such file or directory',)
message = 'libclntsh.so.10.1: cannot open shared object file: No such file or directory'
Ich arbeite auf Ubuntu mit apache2 und python.
Wäre über Hilfe sehr erfreut.
Danke im Vorraus.