Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

Python 3.1 cx_Oracle 5.0.2 "ImportError: DLL load failed: The specified module could not be found."

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


andrethehunter at gmail

Nov 19, 2009, 12:02 AM

Post #1 of 4 (1066 views)
Permalink
Python 3.1 cx_Oracle 5.0.2 "ImportError: DLL load failed: The specified module could not be found."

Hello,

I'm trying to get Python 3.1 and cx_Oracle 5.02
(cx_Oracle-5.0.2-10g.win32-py3.0.msi) to connect to an Oracle
11.1.0.7.0 database via OraClient10g 10.2.0.3.0 with Pydev
1.5.1.1258496115 in Eclipse 20090920-1017 on Windows XP SP 3 v2002.
The import cx_Oracle line appears as an unresolved import and when I
run the application I get the following error to console:
Traceback (most recent call last):
File "FILEPATHHERE", line 1, in <module>
import cx_Oracle
ImportError: DLL load failed: The specified module could not be found.

Apparently the error is caused by cx_Oracle not being able to find the
Oracle client DLLs (oci.dll and others). The client home path and the
client home path bin directory are in the PATH System Variable and
oci.dll is there.

I tried getting the Oracle Instant Client (instantclient-basic-
win32-11.1.0.7.0.zip from http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html)
and installing it as directed. I added the instant client path to the
PATH System Variable but that didn't work either.

I have scoured the internet and have not found a solution.

Please help!
--
http://mail.python.org/mailman/listinfo/python-list


nyamatongwe+thunder at gmail

Nov 19, 2009, 12:57 AM

Post #2 of 4 (1030 views)
Permalink
Re: Python 3.1 cx_Oracle 5.0.2 "ImportError: DLL load failed: The specified module could not be found." [In reply to]

André:

> Apparently the error is caused by cx_Oracle not being able to find the
> Oracle client DLLs (oci.dll and others). The client home path and the
> client home path bin directory are in the PATH System Variable and
> oci.dll is there.

Open the cx_Oracle extension with Dependency Walker
(http://www.dependencywalker.com/) to get a better idea about what the
problem is in more detail.

Neil
--
http://mail.python.org/mailman/listinfo/python-list


andrethehunter at gmail

Nov 25, 2009, 4:32 PM

Post #3 of 4 (1015 views)
Permalink
Re: Python 3.1 cx_Oracle 5.0.2 "ImportError: DLL load failed: The specified module could not be found." [In reply to]

On Nov 19, 6:57 pm, Neil Hodgson <nyamatongwe+thun...@gmail.com>
wrote:
> André:
>
> > Apparently the error is caused by cx_Oracle not being able to find the
> > Oracle client DLLs (oci.dll and others). The client home path and the
> > client home path bin directory are in the PATH System Variable and
> > oci.dll is there.
>
>    Open the cx_Oracle extension with Dependency Walker
> (http://www.dependencywalker.com/) to get a better idea about what the
> problem is in more detail.
>
>    Neil

Thanks Neil. I used Dependency Walker and discovered cx_Oracle was
looking for python30.dll. I seems to be a known issue with Python 3.1
http://bugs.python.org/issue4091. I'm now used Python 2.6.4 and the
corresponding cx_Oracle version with no problems.

Thanks for the help
--
http://mail.python.org/mailman/listinfo/python-list


jim at lsfdev

Jan 24, 2011, 11:42 AM

Post #4 of 4 (641 views)
Permalink
Re: Python 3.1 cx_Oracle 5.0.2 "ImportError: DLL load failed: The specified module could not be found." [In reply to]

I'm having similar issue but everything seems to be installed in correct
places.

Loaded "CX_ORACLE.PYD" at address 0x6BD80000. Successfully hooked module.
Loaded "OCI.DLL" at address 0x10000000. Successfully hooked module.
Unloaded "CX_ORACLE.PYD" at address 0x6BD80000.
Unloaded "OCI.DLL" at address 0x10000000.
LoadLibraryExA("C:\JSTData\Python27\lib\site-packages\cx_Oracle.pyd",
0x00000000, LOAD_WITH_ALTERED_SEARCH_PATH) returned NULL. Error: The
specified procedure could not be found (127).

Why is cx_Oracle not found after it has been hooked?

Thanks to anyone that can shed some light on this.
--
View this message in context: http://old.nabble.com/Python-3.1-cx_Oracle-5.0.2-%22ImportError%3A-DLL-load-failed%3A-The--specified-module-could-not-be-found.%22-tp26422168p30748079.html
Sent from the Python - python-list mailing list archive at Nabble.com.

--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.