[wxPython-users] Re: Platform<=>version conflict or what?
Werner F. Bruhin
werner.bruhin at free.fr
Mon May 14 09:54:56 PDT 2007
Hi Jorma,
Jorma Paavola wrote:
> 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
I think 98 and ME (this one is probably even worse) have the same kind
of problems, so you should use the version with gc.collect.
>
>>> 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
If you used the Unicode version for this one, then I don't understand
that you get a decode error. I didn't think it would use ascii as the
default, but I can't remember.
>
>>
>> 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
>
Werner
More information about the wxpython-users
mailing list