Platform<=>version conflict or what?

Jorma Paavola Jorma.Paavola at Elisanet.fi
Thu May 17 07:34:41 PDT 2007


Hi Wener,

Werner F. Bruhin kirjoitti:
> Hi Jorma,
> 
> Jorma Paavola wrote:
>> Werner F. Bruhin kirjoitti:
>>> Hi Jorma,
>>>
>>> Jorma Paavola wrote:
>>>> Hi Werner,
>>>>
>>>> Hereby I submit my used GUItest.py and setup.py , which don´t 
>>>> 'compile' on Win2k (ANSI) the proper .exe-file to run in Win98 
>>>> environement(generates Traceback as sent before).
>>>>
>>>> Could you see any essential reason in my setup.py used or something 
>>>> else  ... ??
>>> Your p2e_test.py by standard should be called setup.py (nice things 
>>> happen then in e.g. Boa, I can just use File/Setup py2exe to run it 
>>> from within the IDE).
>>>
>>> What is the "ansi": 1 for?  Isn't this maybe the cause of your 
>>> problem for the encoding?
>>>
>>> BTW, I can run py2exe on it and it runs both on my Vista and my Win2K 
>>> machine (which has no development tools at all as it is my test machine.
>>>
>>> Werner
>> Hi Werner,
>>
>> Thanks for good advice for Boa, which looks nice and useful !
>> (My simple code-samples are made just by IDLE !)
>>
>> I used python "ansi"-version in this case - I have also 
>> Unicode-version installed - do you mean that I should try on it as well ?
> I don't know what this ansi switch/parameter does, and won't have time 
> to look it up for the moment (as 2.8.4 just got released I am trying to 
> put final touches/tests for my software which will keep me busy for a 
> few days.
>>
>> I ran my'setup' just from python command prompt(DOS) by (python 
>> p2e_test.py) - is that not OK ?
> Shouldn't be a problem, I just never use it as I just always work within 
> Boa.
>>
>> Did you use "ansi"- or "unicode"-version on Vista and Win2k?
> I just run your pe2_test.py (after having renamed it to setup.py) from 
> within Boa which on my development machine (Vista) uses the wxPython 
> ansi version.  Then I executed the generated .exe file on the Vista 
> machine and did not see any problems, then I copied the GUITest.exe, 
> MSVCR71.dll and w9xpopen.exe to the Win2K machine and executed the .exe 
> and again all worked without problems.
> 
> Werner

I had today some more time to study the problematics on Win98 using Boa 
on Win2k by generating various TestGUI´s(.exe-file) with py2exe :

The plain facts on win98 are:
- python ansi/unicode version has nothing to do with the problematics !
- lack of resources has nothing to do with the problematics !
- so GcCollect has neither no influence !

BUT I have found from win98-environment one depending factor: 
"bundle_files" option used in setup (in win2k) !

If "bundle_files" <= 2 in setup, py2exe generates 3-4 files on 
dist-folder. When try´ing to run generated .exe-file from dist-folder on 
win98 problems are coming ...

If "bundle_files" > 2 or don´t exist, py2exe generates more than 10 
files on dist-folder. Generated .exe-file runs from dist-folder on win98 
fully perfectly ! (even without GcCollect !!)

My intension is to "pack" everything necessary on one single executive 
whenever possible without using extra wrapping-sw´s !

Therefore I now suspect, that "packing" of files with  py2exe
obviously don´t fit for use on Win98 !!? - So Summa Summarum: There is 
possible a version conflict between py2xe and win98 !??

What is your opinion ?

Do you see, that "bundle_files"-argument should be avoided and just wrap 
the files together to allow them to run on all Win´s ?

Regards,

Jorma Paavola













More information about the wxpython-users mailing list