[Python-Dev] Importing DLLs on Windows
M.-A. Lemburg
mal@lemburg.com
Mon, 23 Apr 2001 10:48:17 +0200
Tim Peters wrote:
>
> [MAL]
> > Oh, sorry that I wasn't clear enough.
>
> Me neither (see below).
>
> > Referring to the mxNumber package, I am seeing this situation:
> >
> > # This works... (note the start directory)
> >
> > C:\WINDOWS>python
> > Python 2.1 (#15, Apr 16 2001, 18:25:49) [MSC 32 bit (Intel)] on win32
> > Type "copyright", "credits" or "license" for more information.
> > >>> import mx.Number
> > >>> print mx.Number.Float(3.141)
> > 3.14100000000000001421e+0
> > >>>
> >
> > # This doesn't.... (from the Python install directory)
> >
> > D:\Python21>python
> > Python 2.1 (#15, Apr 16 2001, 18:25:49) [MSC 32 bit (Intel)] on win32
> > Type "copyright", "credits" or "license" for more information.
> > >>> import mx.Number
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in ?
> > File "d:\python21\mx\Number\__init__.py", line 9, in ?
> > from Number import *
> > File "d:\python21\mx\Number\Number.py", line 11, in ?
> > from mxNumber import *
> > File "d:\python21\mx\Number\mxNumber\__init__.py", line 21, in ?
> > from mxNumber import *
> > ImportError: DLL load failed: Ein der fnr die Ausfnhrung dieser
> > Anwendung notwen dige Bibliothekdateien kann nicht gefunden werden.
> > >>>
>
> Well, there's your problem: looks some German hackers got into your machine
> and screwed up the OS <wink>.
Could be...
> Now let me clarify what I wrote before: when I said I couldn't provoke a
> problem, I meant ANY problem. It didn't matter whether I used the
> __init__.py you shipped, or used the two-liner I posted, and it didn't matter
> whether I started Python 2.1 from the install directory or from C:\Code
> (etc). Nothing failed no matter what I tried.
OK. I tried the same on a Win98 box with a fresh Python and
mxNumber install -- and found no problems either; which leaves
me rather clueless about where the failures on my Win95 box
originate.
Could someone else with a Win95 box perhaps test this ?
Thanks anyway for hanging on,
--
Marc-Andre Lemburg
______________________________________________________________________
Company & Consulting: http://www.egenix.com/
Python Pages: http://www.lemburg.com/python/