Platform<=>version conflict or what?
Jorma Paavola
Jorma.Paavola at Elisanet.fi
Mon May 14 12:55:57 PDT 2007
Werner F. Bruhin kirjoitti:
> 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.
For testing 98 I used the version with gc.collect Ansi-version with
runningPlatform(test) == 4 as already described above <=> in despite of
that I got "Traceback":'
> in 'clean' Win 98 - PC (no python sw´s installed) ==> Unfortunately generates Traceback:
>> Traceback (most recent call last):
>> File "Morow.py", line 49, in <module>
>> File "Morow.py", line 15, in create
>> File "Morow.py", line 25, in __init__
>> File "Morow.py", line 41, in MyGcCollect
>> File "wx\_windows.pyo", line 2928, in __init__
>> wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed at ..\..\src\msw\control.cpp(159) in wxControl::MSWCreateControl(): CreateWindowEx("msctls_progress32", flags=52000000, ex=00000200) failed
which I cannot understand - I see only two possibilities for that:
- Py2exe don´t create a common, complete Win-based 'compilation' on
Win2k and/or my used setup.py is not complete enough ??
>>
>>>> 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.
This is really strange - even more strange when I tell, that when I ran
it on Xp with Me- or 98 Emulation Mode my "original" Testsw worked
perfectly again !?
- I got Traceback on Xp only when running on normal mode and Win2k
emulation mode !!?
>>
>>>
>>> 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
I´ll send my Test.py and my setup.py to morrow to you.
Jorma
More information about the wxpython-users
mailing list