Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #60388 > unrolled thread

cx_Oracle throws: ImportError: DLL load failed: This application has failed to start ...

Started byRuben van den Berg <rubenvandenberg1978@gmail.com>
First post2013-11-24 09:12 -0800
Last post2013-11-24 18:17 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  cx_Oracle throws: ImportError: DLL load failed: This application has failed to start ... Ruben van den Berg <rubenvandenberg1978@gmail.com> - 2013-11-24 09:12 -0800
    Re: cx_Oracle throws: ImportError: DLL load failed: This application has failed to start ... Chris Angelico <rosuav@gmail.com> - 2013-11-25 04:18 +1100
    Re: cx_Oracle throws: ImportError: DLL load failed: This application has failed to start ... MRAB <python@mrabarnett.plus.com> - 2013-11-24 18:17 +0000

#60388 — cx_Oracle throws: ImportError: DLL load failed: This application has failed to start ...

FromRuben van den Berg <rubenvandenberg1978@gmail.com>
Date2013-11-24 09:12 -0800
Subjectcx_Oracle throws: ImportError: DLL load failed: This application has failed to start ...
Message-ID<a08e80bf-db00-4570-96f1-620a33912846@googlegroups.com>
I'm on Windows XP SP3, Python 2.7.1. On running

import cx_Oracle

I got the error

ImportError: DLL load failed: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

I then ran Dependency Walker on cx_Oracle.pyd. Its first complaint was about msvcr80.dll. However, this file is present in C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.91_x-ww_0de56c07. (I believe it's part of the MS Visual Studio C++ 2008 package which I installed.)

I obviously uninstalled and reinstalled the cx_Oracle a couple of times but so far to no avail.

Does anybody have a clue what to try next?

For a screenshot of Dependency Walker, please see: https://dl.dropboxusercontent.com/u/116120595/dep_walker_orac.jpg

[toc] | [next] | [standalone]


#60389

FromChris Angelico <rosuav@gmail.com>
Date2013-11-25 04:18 +1100
Message-ID<mailman.3144.1385313499.18130.python-list@python.org>
In reply to#60388
On Mon, Nov 25, 2013 at 4:12 AM, Ruben van den Berg
<rubenvandenberg1978@gmail.com> wrote:
> ImportError: DLL load failed: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
>
> I then ran Dependency Walker on cx_Oracle.pyd. Its first complaint was about msvcr80.dll. However, this file is present in C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.91_x-ww_0de56c07. (I believe it's part of the MS Visual Studio C++ 2008 package which I installed.)

Welcome to DLL hell...

There is one thing I would suggest: Check to see if you've matched the
word size (32-bit vs 64-bit) for Python and all the DLLs. You can't
(normally) load a 64-bit DLL into a 32-bit process or vice versa.

ChrisA

[toc] | [prev] | [next] | [standalone]


#60391

FromMRAB <python@mrabarnett.plus.com>
Date2013-11-24 18:17 +0000
Message-ID<mailman.3146.1385317053.18130.python-list@python.org>
In reply to#60388
On 24/11/2013 17:12, Ruben van den Berg wrote:
> I'm on Windows XP SP3, Python 2.7.1. On running
>
> import cx_Oracle
>
> I got the error
>
> ImportError: DLL load failed: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
>
> I then ran Dependency Walker on cx_Oracle.pyd. Its first complaint was about msvcr80.dll. However, this file is present in C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.91_x-ww_0de56c07. (I believe it's part of the MS Visual Studio C++ 2008 package which I installed.)
>
> I obviously uninstalled and reinstalled the cx_Oracle a couple of times but so far to no avail.
>
> Does anybody have a clue what to try next?
>
> For a screenshot of Dependency Walker, please see: https://dl.dropboxusercontent.com/u/116120595/dep_walker_orac.jpg
>
It looks like it's a path issue.

You say that msvcr80.dll is in 
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.91_x-ww_0de56c07, 
but is that folder listed as part of the search path?

Have a look at the Windows' PATH environment variable.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web