Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Standalone program using py2exe don't run om machine without wx installed
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  13 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
uap12  
View profile  
 More options Dec 21 2009, 10:00 am
From: uap12 <anders.u.pers...@gmail.com>
Date: Mon, 21 Dec 2009 07:00:46 -0800 (PST)
Local: Mon, Dec 21 2009 10:00 am
Subject: Standalone program using py2exe don't run om machine without wx installed
Hi!
I have looked around, but if someone already asked, i am sorry but i
can't find it.

i use to write fix and small utilsprogram, but like to write them
using Python,
this works but now i need to have some user-interaction and therefore
i need
GUI, so i looked at wx, and it works nice.

But on the user machine i can't install anything so i looked at py2exe
to
make a single exe-file (this is under Windows), i works fine, but not
on
the user machine, the program just do not start, and i can't find
the problem, becurse i don't get any error, it just not start

is i missing anything build the package or,,

// Anders


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Driscoll  
View profile  
 More options Dec 21 2009, 12:01 pm
From: Mike Driscoll <kyoso...@gmail.com>
Date: Mon, 21 Dec 2009 09:01:42 -0800 (PST)
Local: Mon, Dec 21 2009 12:01 pm
Subject: Re: Standalone program using py2exe don't run om machine without wx installed
Hi,

On Dec 21, 9:00 am, uap12 <anders.u.pers...@gmail.com> wrote:

I build my wxPython programs using py2exe via GUI2Exe and it works for
the most part. I do not recommend using the Bundle Files = 1 option as
it's more trouble than it's worth. I usually use the following
settings instead:

Optimize = 2
Compressed = 2
Bundle Files= 3

Then I use Inno Setup to bundle everything up into a nice installer. I
wrote a tutorial about the whole process here:

http://www.blog.pythonlibrary.org/2008/08/27/packaging-wxpymail-for-d...

Have fun!

-------------------
Mike Driscoll

Blog:   http://blog.pythonlibrary.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Standalone program using py2exe don't run om machine without wx installed" by werner
werner  
View profile  
 More options Dec 21 2009, 12:04 pm
From: werner <wbru...@free.fr>
Date: Mon, 21 Dec 2009 18:04:26 +0100
Local: Mon, Dec 21 2009 12:04 pm
Subject: Re: [wxPython-users] Standalone program using py2exe don't run om machine without wx installed

On the following wiki page is a small sample.

http://wiki.wxpython.org/Deployment

Hope it helps
Werner


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Standalone program using py2exe don't run om machine without wx installed" by cappy2112
cappy2112  
View profile  
 More options Dec 21 2009, 1:30 pm
From: cappy2112 <cappy2...@gmail.com>
Date: Mon, 21 Dec 2009 10:30:51 -0800 (PST)
Local: Mon, Dec 21 2009 1:30 pm
Subject: Re: Standalone program using py2exe don't run om machine without wx installed
Inno should not be needed.
When I use py2exe for wx programs, you end up with a huge exe
(shoulnd't really matter) that contains
all the necessary Python & wx modules.

On Dec 21, 9:01 am, Mike Driscoll <kyoso...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Standalone program using py2exe don't run om machine without wx installed" by Steven Sproat
Steven Sproat  
View profile  
 More options Dec 21 2009, 2:02 pm
From: Steven Sproat <spro...@gmail.com>
Date: Mon, 21 Dec 2009 19:02:42 +0000
Local: Mon, Dec 21 2009 2:02 pm
Subject: Re: [wxPython-users] Re: Standalone program using py2exe don't run om machine without wx installed

Take a look at GUI2EXE (http://code.google.com/p/gui2exe/) by Andrea and
check the "build" folder that's created after compilation. If you go
through the DLL and .pyd files there you can generally find a lot that
your program won't use . You can then "exclude" these modules to
minimise the file size.

Also UPX (http://upx.sourceforge.net/) can help knock off a MB or more
from your EXE.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Standalone program using py2exe don't run om machine without wx installed" by Mike Driscoll
Mike Driscoll  
View profile  
 More options Dec 21 2009, 2:30 pm
From: Mike Driscoll <kyoso...@gmail.com>
Date: Mon, 21 Dec 2009 11:30:25 -0800 (PST)
Local: Mon, Dec 21 2009 2:30 pm
Subject: Re: Standalone program using py2exe don't run om machine without wx installed
Hi,

On Dec 21, 12:30 pm, cappy2112 <cappy2...@gmail.com> wrote:

> Inno should not be needed.
> When I use py2exe for wx programs, you end up with a huge exe
> (shoulnd't really matter) that contains
> all the necessary Python & wx modules.

Inno isn't needed, but it's a convenience as you can use it to install
anything extra that you need and it provides an uninstaller. Besides
that, I've tried bundling everything into one executable and had
issues with PCs from time-to-time. Most of the time, it worked for me,
but I had 2 or 3 users where it would not run that way.

-------------------
Mike Driscoll

Blog:   http://blog.pythonlibrary.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
cappy2112  
View profile  
 More options Dec 21 2009, 6:36 pm
From: cappy2112 <cappy2...@gmail.com>
Date: Mon, 21 Dec 2009 15:36:34 -0800 (PST)
Local: Mon, Dec 21 2009 6:36 pm
Subject: Re: Standalone program using py2exe don't run om machine without wx installed
I almost always have a problem getting wx-based programs working with
py2exe.
I've used the exclude and exclude_dll options, but those dlls still
get included.
I haven't tried gui2exe though.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stef Mientki  
View profile  
 More options Dec 21 2009, 7:26 pm
From: Stef Mientki <stef.mien...@gmail.com>
Date: Tue, 22 Dec 2009 01:26:18 +0100
Local: Mon, Dec 21 2009 7:26 pm
Subject: Re: [wxPython-users] Standalone program using py2exe don't run om machine without wx installed

Py2exe has a problem with a lot of libraries.
I simply use a dummy file, which I add to the execute list.
For wxPython, I use the following part in the dummy file:

import wx
import wx.aui
import wx.grid                 as gridlib
import wx.html                 as  html
from wx.lib.art import flagart, img2pyartprov
import wx.lib.buttons          as  buttons
import wx.lib.delayedresult    as delayedresult
import wx.lib.flatnotebook     as fnb
import wx.gizmos
import wx.lib.iewin            as iewin
from   wx.lib.expando import ExpandoTextCtrl, EVT_ETC_LAYOUT_NEEDED
import wx.lib.mixins.listctrl  as  listmix
import wx.lib.newevent
import wx.lib.plot             as plot
import wx.lib.wordwrap
import wx.lib.wxpTag
from   wx.lib.splitter import MultiSplitterWindow
#GEEFT PROBLEMEN OP UMCN:
#from   wx.lib.pdfwin   import PDFWindow
import   wx.lib.pdfwin
import wx.lib.hyperlink       as hl
import wx.py
import wx.richtext
import wx.stc                  as  stc
# aren't copied ??
#import wx.webview

cheers,
Stef


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrea Gavana  
View profile  
 More options Dec 22 2009, 3:14 am
From: Andrea Gavana <andrea.gav...@gmail.com>
Date: Tue, 22 Dec 2009 08:14:41 +0000
Local: Tues, Dec 22 2009 3:14 am
Subject: Re: [wxPython-users] Re: Standalone program using py2exe don't run om machine without wx installed
Hi,

2009/12/21 cappy2112:

> I almost always have a problem getting wx-based programs working with
> py2exe.
> I've used the exclude and exclude_dll options, but those dlls still
> get included.

You must be doing something strange then. I have never seen py2exe
including something I explicitely excluded, except when (by mistake) I
added a module both in the include and the exclude lists. The Includes
option is stronger than the Excludes one. So, if a module is present
in both Includes and Excludes, it will be included in your final
distribution.

> I haven't tried gui2exe though.

Give it a try and let me know :-D

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
http://thedoomedcity.blogspot.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrea Gavana  
View profile  
 More options Dec 22 2009, 3:16 am
From: Andrea Gavana <andrea.gav...@gmail.com>
Date: Tue, 22 Dec 2009 08:16:41 +0000
Local: Tues, Dec 22 2009 3:16 am
Subject: Re: [wxPython-users] Standalone program using py2exe don't run om machine without wx installed
Hi,

2009/12/22 Stef Mientki:

All these imports in a dummy file are not needed with py2exe. Whatever
application I have thrown at it (and some of them are hugely complex),
py2exe has always found all the modules needed by it (with few obscure
exceptions, but not wx-related).

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
http://thedoomedcity.blogspot.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stef Mientki  
View profile  
 More options Dec 22 2009, 5:16 am
From: Stef Mientki <stef.mien...@gmail.com>
Date: Tue, 22 Dec 2009 11:16:07 +0100
Local: Tues, Dec 22 2009 5:16 am
Subject: Re: [wxPython-users] Standalone program using py2exe don't run om machine without wx installed
hi Andrea,

So I guess I always make a mess of my imports,
and probably that's the reason, why I never could get GUI2exe working ;-)

The following packages gave me problems with py2exe (in the past):
wx, win32, Matplotlib, VPython.
And not only with py2exe, but also with autocompletion in PyScripter.
I think wx is better now,
because autocompletion (although not perfect) works better with the
latest versions.
Py2exe has it weakness, until I updated to the latest version (past week),
I always had to run twice, because it couldn't find some files in my root !!

cheers,
Stef


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
werner  
View profile  
 More options Dec 22 2009, 5:17 am
From: werner <wbru...@free.fr>
Date: Tue, 22 Dec 2009 11:17:51 +0100
Local: Tues, Dec 22 2009 5:17 am
Subject: Re: [wxPython-users] Standalone program using py2exe don't run om machine without wx installed

Same here.

Where I have had problems with py2exe is using the bundle options 1 and
2, I just stick with 3 and use InnoSetup to create a single file installer.

Werner


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
werner  
View profile  
 More options Dec 22 2009, 7:12 am
From: werner <wbru...@free.fr>
Date: Tue, 22 Dec 2009 13:12:23 +0100
Local: Tues, Dec 22 2009 7:12 am
Subject: Re: [wxPython-users] Standalone program using py2exe don't run om machine without wx installed

What was the issue with win32, I use it a little bit and didn't run into
any problem.

These are my "problems": packages = ['email', 'Ft', 'kinterbasdb',
'pytz', 'setuptools', 'sqlalchemy']

The last three are because they are unzipped egg's, and the others are
doing some dynamic imports which the module finder py2exe uses doesn't
deal with.

IIRC the module finder in py2exe was updated in one of the later
releases which improved things.

Matplotlib isn't a problem anymore, at least for me and I use the
following version.

matplotlib.__version__
'0.99.1'

Except you need to do the following for the data files in your setup.py.
import matplotlib as mpl
data_files += mpl.get_py2exe_datafiles()

IIRC I also had an issue with PIL until I did this in the module I use
it in:
import PIL.PngImagePlugin
import PIL.GifImagePlugin
import PIL.JpegImagePlugin
import PIL.BmpImagePlugin
Image._initialized=2

I think a lot of this stuff is mentioned on the py2exe wiki but there is
also a lot of outdated stuff on there which can be confusing.

Werner


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »