Platform<=>version conflict or what?

Jorma Paavola Jorma.Paavola at Elisanet.fi
Mon May 14 08:45:07 PDT 2007


Hi Werner !

> 
> I assume you changed this:
> 
> if runningPlatform[0] == 6: # Testaa onko Windows 9x
> to something like this:
> if runningPlatform[0] < 4: # Testaa onko Windows 9x
You are right:
- with Win98 I changed runningPlatform[0] == 4:,
which according to my knowledge: major == 4 and minor == 10; and 
therefore  should be OK ! (Ansi-version used !)
> 
> I am not sure what the version number for WinMe and/or 9x, but I think 
> if you use " <4" you should catch anything before Win NT.
>>
>> 3) Original TestSW (without GcCollect) generates Tracebacks:
>> on 'clean' WinMe PC:
>>> Traceback (most recent call last):
>>>   
>>> ImportError: MemoryLoadLibrary failed loading wx\_core_.pyd
> See above, make sure that you use a version which includes ME, so 
> gc.collect is run.
Pls. Note: For testing Me I used my "original" TestSw (without GcCollect 
& platformtest) Unicode-version

>> and on 'clean' WinXp PC:
>>> UnicodeDecodeError: 'ascii' codec can't decode byte 0xf6 in position 
>>> 33: ordinal not in range(128)
> This is a totally different problem.   I think this could be fixed by 
> changing your default encoding to something other then ascii.
Pls. Note: For testing Xp I used my "original" TestSw (without GcCollect 
& platformtest) Unicode-version
> 
> I do this in my wx.App module:
> if hasattr(sys, "frozen"):  #Py2Exe does not run Site.py
>    sys.setdefaultencoding('iso-8859-1')
>    del sys.setdefaultencoding  
- I'll try that as well - should I test first this working (on 
win2k)-ANSI version (with GcCollect) on WinMe and WinXp, or do you 
think, that Unicode/Ansi has no influence to the problem ?
>>
>> Should we consider these annoying results stating, that 
>> (Py2exe)-'compiled' .exe-files cannot run in any other PC´s if 
>> Python-Sw´s are not pre-installed ?? (ie. platform/OS/version - conflict)

> I don't think this is the case.  Otherwise why even bother having py2exe 
> - BTW, which version of py2exe are you using?
Py2exe 0.6.6
>>
>> or
>>
>> Are there still error somewhere ?
> Yeap, this is more like it:)
> 
> If you still have problems I suggest that you create a small sample 
> application which shows the problem and post it here together with your 
> setup.py.
I´ll do so after seen your answer first
> 
> Werner

Thanks & regards,

Jorma





More information about the wxpython-users mailing list