newbie - script works in PythonWin - fails from Python
Thomas Heller
theller at python.net
Fri Feb 3 10:26:11 EST 2006
marcus.tettmar at gmail.com writes:
> Hi,
>
> This is all I get:
>
> error 250477278
> Traceback (most recent call last):
> File "script1.py", line 5, in ?
> Inst = lib.Initialize(0)
> WindowsError: exception code 0xeedfade
>
> I get this when running python.exe script1.py
>
> ** When run from inside PythonWin it runs beautifully and returns with
> no errors **
>
> Regardless of what the error actually is it *works* when run from
> PythonWin. It fails only when run from the command line. I'm trying
> to find out why there is a difference. Clearly both either run a
> different interpreter or with different switches. I was hoping someone
> knows what the difference is.
One difference is that PythonWin runs a messageloop. Does the
documentation of the library you call say something about the error code
you get?
Thomas
More information about the Python-list
mailing list