Re: How does one get from "ImportError: DLL load failed:..." to a culprit .dll and symbol?

2009-02-24 Thread Chris Cormie
My reading of the Python 2.6.1 version of dynload_win.c tells me that: 1. It uses LoadLibraryEx() to attempt to load the pyd given its full pathname 2. If that fails, it gets the Windows error code using GetLastError() 3. It gets the Windows message text using FormatMessage() 4. It assembles

Re: How does one get from "ImportError: DLL load failed:..." to a culprit .dll and symbol?

2009-02-23 Thread John Machin
On Feb 24, 2:54 pm, Chris Cormie wrote: > Mark Hammond wrote: > > On 23/02/2009 11:41 PM, Chris Cormie wrote: > > >>> If that not-very-technical description [all I've ever needed] doesn't > >>> help, you'll need to read the DW help file (HTFF1K) or wait till > >>> someone who knows what they are d

Re: How does one get from "ImportError: DLL load failed:..." to a culprit .dll and symbol?

2009-02-23 Thread Chris Cormie
Mark Hammond wrote: On 23/02/2009 11:41 PM, Chris Cormie wrote: If that not-very-technical description [all I've ever needed] doesn't help, you'll need to read the DW help file (HTFF1K) or wait till someone who knows what they are doing comes along :-) LOL, I am that person :p LOL sounds r

Re: How does one get from "ImportError: DLL load failed:..." to a culprit .dll and symbol?

2009-02-23 Thread Chris Cormie
John Machin wrote: On Feb 23, 11:41 pm, Chris Cormie wrote: If that not-very-technical description [all I've ever needed] doesn't help, you'll need to read the DW help file (HTFF1K) or wait till someone who knows what they are doing comes along :-) LOL, I am that person :p It wasn't apparent

Re: How does one get from "ImportError: DLL load failed:..." to a culprit .dll and symbol?

2009-02-23 Thread Chris Cormie
Gabriel Genellina wrote: En Mon, 23 Feb 2009 10:41:20 -0200, Chris Cormie escribió: If that not-very-technical description [all I've ever needed] doesn't help, you'll need to read the DW help file (HTFF1K) or wait till someone who knows what they are doing comes along :-) LOL, I am that per

Re: How does one get from "ImportError: DLL load failed:..." to a culprit .dll and symbol?

2009-02-23 Thread Chris Cormie
Mark Hammond wrote: On 23/02/2009 11:41 PM, Chris Cormie wrote: If that not-very-technical description [all I've ever needed] doesn't help, you'll need to read the DW help file (HTFF1K) or wait till someone who knows what they are doing comes along :-) LOL, I am that person :p LOL sounds r

Re: How does one get from "ImportError: DLL load failed:..." to a culprit .dll and symbol?

2009-02-23 Thread Mark Hammond
On 23/02/2009 11:41 PM, Chris Cormie wrote: If that not-very-technical description [all I've ever needed] doesn't help, you'll need to read the DW help file (HTFF1K) or wait till someone who knows what they are doing comes along :-) LOL, I am that person :p LOL sounds right! How do you ge

Re: How does one get from "ImportError: DLL load failed:..." to a culprit .dll and symbol?

2009-02-23 Thread Gabriel Genellina
En Mon, 23 Feb 2009 10:41:20 -0200, Chris Cormie escribió: If that not-very-technical description [all I've ever needed] doesn't help, you'll need to read the DW help file (HTFF1K) or wait till someone who knows what they are doing comes along :-) LOL, I am that person :p Your technique wor

Re: How does one get from "ImportError: DLL load failed:..." to a culprit .dll and symbol?

2009-02-23 Thread John Machin
On Feb 23, 11:41 pm, Chris Cormie wrote: > > If that not-very-technical description [all I've ever needed] doesn't > > help, you'll need to read the DW help file (HTFF1K) or wait till > > someone who knows what they are doing comes along :-) > > LOL, I am that person :p It wasn't apparent, and st

Re: How does one get from "ImportError: DLL load failed:..." to a culprit .dll and symbol?

2009-02-23 Thread Chris Cormie
If that not-very-technical description [all I've ever needed] doesn't help, you'll need to read the DW help file (HTFF1K) or wait till someone who knows what they are doing comes along :-) LOL, I am that person :p Your technique works well and it does provide the information and it is a (roun

Re: How does one get from "ImportError: DLL load failed:..." to a culprit .dll and symbol?

2009-02-22 Thread John Machin
On Feb 23, 2:56 pm, Chris Cormie wrote: > Hi, > > I've been Googling around on a moderately common Windows Python problem: > a mismatch between the symbols a python extension thinks are available > and the contents of the associated DLL. Python users running into this > problem are greeted with: >

How does one get from "ImportError: DLL load failed:..." to a culprit .dll and symbol?

2009-02-22 Thread Chris Cormie
Hi, I've been Googling around on a moderately common Windows Python problem: a mismatch between the symbols a python extension thinks are available and the contents of the associated DLL. Python users running into this problem are greeted with: import "ImportError: DLL load failed: The spec