[python-win32] import cx_Oracle in ASP

Tibor Arpas tibor.arpas at infinit.sk
Tue Jun 24 17:46:44 CEST 2008


Hi,

I'm trying to connect to database from ASP. I reduced my source to the
following snippet:

<%@ LANGUAGE = Python%>
<HTML>
<head></head>
<body>

<%

import sys

for s in sys.path:
    Response.Write(s)
    Response.Write("<br>")

import cx_Oracle

%>
</body>
</html>

After invoking the asp page I get the following result:

C:\ActivePython25\lib\site-packages\setuptools-0.6c8-py2.5.egg
C:\ActivePython25\lib\site-packages\cx_oracle-4.3.3-py2.5-win32.egg
C:\ActivePython25\lib\site-packages\owslib-0.3-py2.5.egg
C:\ActivePython25\lib\site-packages\tilecache-2.02-py2.5.egg
C:\ActivePython25\lib\site-packages\paste-1.6-py2.5.egg
C:\ActivePython25\lib\site-packages\pysqlite-2.4.1-py2.5-win32.egg
C:\ActivePython25\lib\site-packages\pil-1.1.6-py2.5-win32.egg
C:\WINDOWS\system32\python25.zip
C:\ActivePython25\Lib
C:\ActivePython25\DLLs
C:\ActivePython25\Lib\lib-tk
c:\windows\system32\inetsrv
C:\ActivePython25
C:\ActivePython25\lib\site-packages
C:\ActivePython25\lib\site-packages\win32
C:\ActivePython25\lib\site-packages\win32\lib
C:\ActivePython25\lib\site-packages\Pythonwin

Python ActiveX Scripting Engine error '80020009'

Traceback (most recent call last): File "<Script Block >", line 7, in
<module> import cx_Oracle ImportError: No module named cx_Oracle

/pyasp/a.asp, line 15

import cx_Oracle


-------------------------

Can anybody advice please how to fix this?

Tibor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20080624/90d0d2cc/attachment.htm>


More information about the python-win32 mailing list