Differences between revisions 60 and 67 (spanning 7 versions)
Revision 60 as of 2004-06-24 16:00:07
Size: 3455
Editor: 220
Comment:
Revision 67 as of 2004-07-17 11:05:48
Size: 4634
Editor: lsanca2-ar37-4-46-200-183
Comment:
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
 * RunningSetup A detailed explanation how to run the setup script  * RunningSetup How to run the setup script once you've written it
Line 26: Line 26:
 * WinBatch A shot Windows Batch File to fast provide the EXE File  * WinBatch A short Windows Batch File to fast provide the EXE File
Line 29: Line 29:
=== py2exe and wxPython ===
Having some trouble using py2exe (0.5.0) with wxPython (2.4.2.4). Without py2exe my program runs fine, and it compiles fine, but when I run the compiled executable it crashes with:

{{{
Traceback (most recent call last):
File "wxfoo.py", line 10, in ?
from wxPython.wx import *
File "wxPython\wx.pyc", line 4, in ?
File "wxPython\misc.pyc", line 15, in ?
File "wxPython\wx.pyc", line 6, in ?
File "wxPython\misc2.pyc", line 4, in ?
File "wxPython\windows.pyc", line 15, in ?
File "wxPython\wx.pyc", line 10, in ?
File "wxPython\gdi.pyc", line 15, in ?
File "wxPython\wx.pyc", line 12, in ?
File "wxPython\fonts.pyc", line 120, in ?
NameError: name 'wxObjectPtr' is not defined
}}}

All wxfoo.py contains is "from wxPython.wx import *" and this happens with every wxPython program I try. I've heard of people successfully py2exe'ing wxPython programs before so I wonder if doing something wrong. This is my setup.py:

{{{
#!python
from distutils.core import setup
import py2exe

setup(console=["wxfoo.py"])
}}}

I'm at wits end here... anyone have any ideas whats wrong? ''-jc''
Line 34: Line 65:
 * SetupLanguage How to localize the language with [http://www.bucuo.net py2exe] and [http://www.jrsoftware.org/isinfo.php InnoSetup]
 * QuickStartIcons How to add Startup-Links to the Quickstart-Bar & the Desktop using [http://www.xyzdown.com InnoSetup] together with Py2Exe
 * SetupLanguage How to localize the language with [http://starship.python.net/crew/theller/py2exe/ py2exe] and [http://www.jrsoftware.org/isinfo.php InnoSetup]
 * QuickStartIcons How to add Startup-Links to the Quickstart-Bar & the Desktop using [http://www.jrsoftware.org/isinfo.php InnoSetup] together with Py2Exe
Line 41: Line 72:
you can create a web application without IIS or Apache.  you can create a web application without IIS or Apache.

py2exe

Py2Exe is an additional command to DistUtils, that creates standalone distributions for Win32.

Its home is here [http://starship.python.net/crew/theller/py2exe/] and on Sourceforge [http://sourceforge.net/projects/py2exe/]

Learned things with py2exe 0.5

[http://prdownloads.sourceforge.net/py2exe/py2exe-0.5.0.win32-py2.3.exe py2exe0.5.0] is the release of py2exe 0.5 [http://groups.google.de/groups?dq=&hl=de&lr=&ie=UTF-8&oe=UTF-8&threadm=1ebr001fkuq85al2i8c26ejceu8qvedmdb%404ax.com&prev=/groups%3Fhl%3Dde%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26group%3Dcomp.lang.python announced] by Thomas Heller in January 2004

As nearly usual in Open Source space, prerelases and beta are of the same quality as .02 releases from some commercial software developing companies - rather full functional, with small obstacles.

I had to "upgrade" also my knowledge about workarounds from py2exe 0.4

Tips and Tricks

General

py2exe and wxPython

Having some trouble using py2exe (0.5.0) with wxPython (2.4.2.4). Without py2exe my program runs fine, and it compiles fine, but when I run the compiled executable it crashes with:

Traceback (most recent call last):
File "wxfoo.py", line 10, in ?
from wxPython.wx import *
File "wxPython\wx.pyc", line 4, in ?
File "wxPython\misc.pyc", line 15, in ?
File "wxPython\wx.pyc", line 6, in ?
File "wxPython\misc2.pyc", line 4, in ?
File "wxPython\windows.pyc", line 15, in ?
File "wxPython\wx.pyc", line 10, in ?
File "wxPython\gdi.pyc", line 15, in ?
File "wxPython\wx.pyc", line 12, in ?
File "wxPython\fonts.pyc", line 120, in ?
NameError: name 'wxObjectPtr' is not defined

All wxfoo.py contains is "from wxPython.wx import *" and this happens with every wxPython program I try. I've heard of people successfully py2exe'ing wxPython programs before so I wonder if doing something wrong. This is my setup.py:

   1 from distutils.core import setup
   2 import py2exe
   3 
   4 setup(console=["wxfoo.py"])

I'm at wits end here... anyone have any ideas whats wrong? -jc

py2exe and win32com

py2exe and Innosetup

py2exe and Biopython

py2exe and Quixote

Quixote is a pythonivc toolkit for webpages which allows one to execute ptl files using ihooks. You can distribute your web application with medusa or twisted and hence you can create a web application without IIS or Apache.

I like to distribute my application with py2exe but I can not make py2exe setup script to recognize that x.ptl is a valid python files. Any idea how to do this? - impossible: ["Quixote & py2exe"] HAM20040602

py2exe and MatPlotLib

  • MatPlotLib - Fixing and including configuration information for this plotting package.

the runtime enviroment

Fixes

Thoughts

Py2Exe (last edited 2008-07-08 11:27:43 by localhost)