[python-win32] Re: PythonWin won't start the second time

Roger Upole rwupole at msn.com
Sun Jul 1 20:33:01 CEST 2007


"Zeev B" wrote:
> This is the comparison of the two files (starting at offset 0):
>
> -----------------------------------------------------
> L0 B3 F2 0D 0A 94 BF 29 42 63 00 00 00 00 00 00 00  ³ò.."¿)Bc.......
> R0 B3 F2 0D 0A A4 CD 29 42 63 00 00 00 00 00 00 00  ³ò..¤Í)Bc.......
>
> L - the working version
> R - the crashing version
>
> The bytes that differ are the 5th and 6th. Any idea?
>
> Roger, Thanks for your patients.
>
> Ze'ev

I'm just about out of ideas here.
After looking at the code in import.c, it looks like those 2 bytes
are part of the timestamp that python uses to check if the module
has been modified since it was last compiled to pyc.

Does it crash if you import intpyapp from the python console ?
If you run python in verbose mode, it should tell you where it got
the module from and why it's recompiling it.

python.exe -vv
>>> from pywin.framework import intpyapp

         Roger



More information about the Python-win32 mailing list