I've tested and confirmed, with the attached and the original posting scripts, that it needs to be either bundle_files=3 or optimize=0 in order to get the GUI to correctly draw in Windows XP. I'd like to be able to have bundle_files=1 and optimize=2 if at all possible. Is there a way to work around this? Any help would be greatly appreciated.

Kyle Owens
kyle@decagon.com

On Wed, May 12, 2010 at 5:06 AM, <py2exe-users-request@lists.sourceforge.net> wrote:
Send Py2exe-users mailing list submissions to
       py2exe-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
       https://lists.sourceforge.net/lists/listinfo/py2exe-users
or, via email, send a message with subject or body 'help' to
       py2exe-users-request@lists.sourceforge.net

You can reach the person managing the list at
       py2exe-users-owner@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Py2exe-users digest..."

Today's Topics:

  1. Re: Executable produced on XP fails on Win 7 (cool-RR)
  2. Re: Executable produced on XP fails on Win 7 (Mark Hammond)
  3. Re: Optimization Flags (Werner F. Bruhin)
  4. Re: Executable produced on XP fails on Win 7 (cool-RR)


---------- Forwarded message ----------
From: cool-RR <cool-rr@cool-rr.com>
To: David Escobar <davidescobar1976@gmail.com>, py2exe-users <py2exe-users@lists.sourceforge.net>
Date: Wed, 12 May 2010 04:51:38 +0200
Subject: Re: [Py2exe-users] Executable produced on XP fails on Win 7
On Wed, May 12, 2010 at 3:31 AM, David Escobar <davidescobar1976@gmail.com> wrote:
This may or may not solve this particular problem, but one of the gotchas I ran into when making an .exe in Windows 7 was the POWRPROF.dll. I needed to add that dll to the "dll_excludes" list:

"dll_excludes": [ ..., "POWRPROF.dll", ... ]

Excluding that .dll has no effect on Windows XP builds, so you can use the same setup.py for both operating systems.


On Tue, May 11, 2010 at 8:20 AM, cool-RR <cool-rr@cool-rr.com> wrote:
Hello,

I'm developing a wxPython application. I've produced an executable of it on an XP VM. It works well in there. But when I move it to a Win 7 VM, it fails in a few separate points in the program.

In one of these points, (Trying to load a simulation from file,) it just exits the program with no message. In another point, (Creating a new simulation,) it gives a Windows error dialog saying the program must be closed, with these details:

"""
Problem signature:
  Problem Event Name: APPCRASH
  Application Name: GarlicSim.exe
  Application Version: 0.4.0.0
  Application Timestamp: 4918019c
  Fault Module Name: COMCTL32.dll
  Fault Module Version: 6.10.7600.16385
  Fault Module Timestamp: 4a5bd976
  Exception Code: c0000005
  Exception Offset: 00006a71
  OS Version: 6.1.7600.2.0.0.256.1
  Locale ID: 1033
  Additional Information 1: 0a9e
  Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
  Additional Information 3: 0a9e
  Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
"""

If you need any more details, let me know.

Does anyone have a clue what to do here?

(Please `cc` any replies to me personally.)

Thanks,
Ram Rachum.


Thanks for the advice David. I tried it now but it didn't help.

Ram. 



---------- Forwarded message ----------
From: Mark Hammond <skippy.hammond@gmail.com>
To: cool-RR <cool-rr@cool-rr.com>
Date: Wed, 12 May 2010 13:01:12 +1000
Subject: Re: [Py2exe-users] Executable produced on XP fails on Win 7
On 12/05/2010 12:51 PM, cool-RR wrote:
On Wed, May 12, 2010 at 3:31 AM, David Escobar
<davidescobar1976@gmail.com <mailto:davidescobar1976@gmail.com>> wrote:

   This may or may not solve this particular problem, but one of the
   gotchas I ran into when making an .exe in Windows 7 was the
   POWRPROF.dll. I needed to add that dll to the "dll_excludes" list:

   "dll_excludes": [ ..., "POWRPROF.dll", ... ]

...

Thanks for the advice David. I tried it now but it didn't help.

Check powrprof.dll isn't already in the py2exe dist directory - adding that setup option will stop it being copied in future runs, but will not delete existing ones.

If that doesn't work, then carefully check the dist directory for any other DLLs you don't recognize and aren't part of your app - eg, if somehow you ended up with comctl32.dll in that dir you would wind up with a similar crash.

Mark




---------- Forwarded message ----------
From: "Werner F. Bruhin" <werner.bruhin@free.fr>
To: py2exe-users@lists.sourceforge.net
Date: Wed, 12 May 2010 13:33:51 +0200
Subject: Re: [Py2exe-users] Optimization Flags
Kyle,

On 11/05/2010 23:22, Kyle Owens wrote:
To Whom It May Concern:

I'm trying to get Python 2.6.5 and wxPython 2.8.10.1 Unicode to work
with py2exe 0.6.9. I've encountered a problem and have built a small
application to demonstrate the odd behavior. I'll post both the script
source and the setup.py script below.
I see the same problem with your script, however if I use the attached then things work correctly - even so I use compress=2?!

I can't figure out what is done in your script which causes the problem, first thought was that it is due to not having a wx.Panel but that made no difference, tried some other things but without any change.

Can you test the attached and see if that works for you too.

Werner


---------- Forwarded message ----------
From: cool-RR <cool-rr@cool-rr.com>
To: mhammond <mhammond@skippinet.com.au>, py2exe-users <py2exe-users@lists.sourceforge.net>
Date: Wed, 12 May 2010 14:06:48 +0200
Subject: Re: [Py2exe-users] Executable produced on XP fails on Win 7
On Wed, May 12, 2010 at 5:01 AM, Mark Hammond <skippy.hammond@gmail.com> wrote:
On 12/05/2010 12:51 PM, cool-RR wrote:
On Wed, May 12, 2010 at 3:31 AM, David Escobar
<davidescobar1976@gmail.com <mailto:davidescobar1976@gmail.com>> wrote:

   This may or may not solve this particular problem, but one of the
   gotchas I ran into when making an .exe in Windows 7 was the
   POWRPROF.dll. I needed to add that dll to the "dll_excludes" list:

   "dll_excludes": [ ..., "POWRPROF.dll", ... ]

...


Thanks for the advice David. I tried it now but it didn't help.

Check powrprof.dll isn't already in the py2exe dist directory - adding that setup option will stop it being copied in future runs, but will not delete existing ones.

If that doesn't work, then carefully check the dist directory for any other DLLs you don't recognize and aren't part of your app - eg, if somehow you ended up with comctl32.dll in that dir you would wind up with a similar crash.

Mark

I already confirmed powrprof isn't there.

To your second suggestion: I am not intimately familiar with which DLLs are normal to be included and which not. How could I tell between them?

Ram.

------------------------------------------------------------------------------


_______________________________________________
Py2exe-users mailing list
Py2exe-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/py2exe-users