11 Replies - 1934 Views - Last Post: 07 February 2011 - 07:27 AM Rate Topic: -----

#1 Guest_David M*


Reputation:

Py2exe with WxPython and Python?

Posted 03 February 2011 - 07:43 PM

Hi so I made a program that uses 'Pygame', 'WxPython', and also I required a module from PyGame website which helps make a menu easier in pygame. I am knew to Py2exe and heard its the best one out there to make your .EXE file. I heard there are problems with wxpython and py2exe and all these .DLL's you need to include and its very confusing. So how would I be able to make an .EXE file and also implement it so I can have my own icon which I already made. I'll be happy to answer any questions and I'm very new to this and programming in general! Thanks!

Is This A Good Question/Topic? 0

Replies To: Py2exe with WxPython and Python?

#2 atraub  Icon User is offline

  • Pythoneer
  • member icon

Reputation: 759
  • View blog
  • Posts: 2,010
  • Joined: 23-December 08

Re: Py2exe with WxPython and Python?

Posted 04 February 2011 - 07:15 AM

Try and see! :) Don't be afraid of running into problems, no amount of questions you ask us will prevent all of em.

What version of Python on you running?
Was This Post Helpful? 0
  • +
  • -

#3 Polofiesta  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 78
  • Joined: 15-December 10

Re: Py2exe with WxPython and Python?

Posted 04 February 2011 - 01:07 PM

Yes these people are very good aha :P

This post has been edited by Polofiesta: 04 February 2011 - 01:11 PM

Was This Post Helpful? 0
  • +
  • -

#4 Guest_David M*


Reputation:

Re: Py2exe with WxPython and Python?

Posted 04 February 2011 - 01:14 PM

Well I am using Python 2.7.1, I used "Windows x86 MSI Installer (2.7.1) (sig)" to install it. My WxPython is 2.8 win32. My py2exe is 0.6.9 win32. And my pygame is 1.9.2 win32.
Was This Post Helpful? 0

#5 Guest_David M*


Reputation:

Re: Py2exe with WxPython and Python?

Posted 04 February 2011 - 05:27 PM

Is there any way I can post a picture on here to show what is happening when I "Setup.py py2exe" in the command prompt etc.?
Was This Post Helpful? 0

#6 atraub  Icon User is offline

  • Pythoneer
  • member icon

Reputation: 759
  • View blog
  • Posts: 2,010
  • Joined: 23-December 08

Re: Py2exe with WxPython and Python?

Posted 04 February 2011 - 06:20 PM

We'd prefer you copy the text from the command prompt and paste that. :rolleyes:

If you need help, try googling Command Prompt redirection.

This post has been edited by atraub: 04 February 2011 - 06:23 PM

Was This Post Helpful? 0
  • +
  • -

#7 Guest_David M*


Reputation:

Re: Py2exe with WxPython and Python?

Posted 05 February 2011 - 10:49 PM

So here is what I do. I run command prompt then set the right path and run setup.py py2exe. Now when I go to my exe file it says "Microsoft Visual C++ Runtime Library. Runtime Error!. Program c:/Python27/Game/dist/TrafficRushWithCollision. This application has requested the Runtime to terminate it in an unusual way. Please contact the applications support team." What is going wrong?

C:/Python27/Game> setup.py py2exe


byte-compiling C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_windows.py t
o wx\_windows.pyc
byte-compiling C:\Python27\lib\socket.py to socket.pyc
byte-compiling C:\Python27\lib\sre.py to sre.pyc
byte-compiling C:\Python27\lib\sre_compile.py to sre_compile.pyc
byte-compiling C:\Python27\lib\sre_constants.py to sre_constants.pyc
byte-compiling C:\Python27\lib\sre_parse.py to sre_parse.pyc
byte-compiling C:\Python27\lib\ssl.py to ssl.pyc
byte-compiling C:\Python27\lib\stat.py to stat.pyc
byte-compiling C:\Python27\lib\string.py to string.pyc
byte-compiling C:\Python27\lib\stringprep.py to stringprep.pyc
byte-compiling C:\Python27\lib\struct.py to struct.pyc
byte-compiling C:\Python27\lib\subprocess.py to subprocess.pyc
byte-compiling C:\Python27\lib\tarfile.py to tarfile.pyc
byte-compiling C:\Python27\lib\tempfile.py to tempfile.pyc
byte-compiling C:\Python27\lib\textwrap.py to textwrap.pyc
byte-compiling C:\Python27\lib\threading.py to threading.pyc
byte-compiling C:\Python27\lib\token.py to token.pyc
byte-compiling C:\Python27\lib\tokenize.py to tokenize.pyc
byte-compiling C:\Python27\lib\traceback.py to traceback.pyc
byte-compiling C:\Python27\lib\types.py to types.pyc
byte-compiling C:\Python27\lib\unittest\__init__.py to unittest\__init__.pyc
creating c:\Python27\Game\build\bdist.win32\winexe\collect-2.7\unittest
byte-compiling C:\Python27\lib\unittest\case.py to unittest\case.pyc
byte-compiling C:\Python27\lib\unittest\loader.py to unittest\loader.pyc
byte-compiling C:\Python27\lib\unittest\main.py to unittest\main.pyc
byte-compiling C:\Python27\lib\unittest\result.py to unittest\result.pyc
byte-compiling C:\Python27\lib\unittest\runner.py to unittest\runner.pyc
byte-compiling C:\Python27\lib\unittest\signals.py to unittest\signals.pyc
byte-compiling C:\Python27\lib\unittest\suite.py to unittest\suite.pyc
byte-compiling C:\Python27\lib\unittest\util.py to unittest\util.pyc
byte-compiling C:\Python27\lib\urllib.py to urllib.pyc
byte-compiling C:\Python27\lib\urlparse.py to urlparse.pyc
byte-compiling C:\Python27\lib\uu.py to uu.pyc
byte-compiling C:\Python27\lib\warnings.py to warnings.pyc
byte-compiling C:\Python27\lib\weakref.py to weakref.pyc
byte-compiling C:\Python27\lib\xml\__init__.py to xml\__init__.pyc
creating c:\Python27\Game\build\bdist.win32\winexe\collect-2.7\xml
byte-compiling C:\Python27\lib\xml\parsers\__init__.py to xml\parsers\__init__.p
yc
creating c:\Python27\Game\build\bdist.win32\winexe\collect-2.7\xml\parsers
byte-compiling C:\Python27\lib\xml\parsers\expat.py to xml\parsers\expat.pyc
byte-compiling C:\Python27\lib\xmllib.py to xmllib.pyc
byte-compiling C:\Python27\lib\xmlrpclib.py to xmlrpclib.pyc
byte-compiling C:\Python27\lib\zipfile.py to zipfile.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\_ctypes.py to _cty
pes.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\_hashlib.py to _ha
shlib.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\_multiprocessing.p
y to _multiprocessing.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\_socket.py to _soc
ket.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\_ssl.py to _ssl.py
c
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\bz2.py to bz2.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pyexpat.py to pyex
pat.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame._arraysurfa
rray.py to pygame\_arraysurfarray.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame._numericsnd
array.py to pygame\_numericsndarray.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame._numericsur
farray.py to pygame\_numericsurfarray.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.base.py to
pygame\base.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.bufferproxy
.py to pygame\bufferproxy.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.cdrom.py to
 pygame\cdrom.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.color.py to
 pygame\color.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.constants.p
y to pygame\constants.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.display.py
to pygame\display.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.draw.py to
pygame\draw.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.event.py to
 pygame\event.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.fastevent.p
y to pygame\fastevent.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.font.py to
pygame\font.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.image.py to
 pygame\image.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.imageext.py
 to pygame\imageext.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.joystick.py
 to pygame\joystick.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.key.py to p
ygame\key.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.mask.py to
pygame\mask.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.math.py to
pygame\math.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.mixer.py to
 pygame\mixer.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.mixer_music
.py to pygame\mixer_music.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.mouse.py to
 pygame\mouse.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.movie.py to
 pygame\movie.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.overlay.py
to pygame\overlay.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.pixelarray.
py to pygame\pixelarray.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.rect.py to
pygame\rect.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.rwobject.py
 to pygame\rwobject.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.scrap.py to
 pygame\scrap.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.surface.py
to pygame\surface.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.surflock.py
 to pygame\surflock.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.time.py to
pygame\time.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\pygame.transform.p
y to pygame\transform.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\select.py to selec
t.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\unicodedata.py to
unicodedata.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\wx._controls_.py t
o wx\_controls_.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\wx._core_.py to wx
\_core_.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\wx._gdi_.py to wx\
_gdi_.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\wx._misc_.py to wx
\_misc_.pyc
byte-compiling c:\Python27\Game\build\bdist.win32\winexe\temp\wx._windows_.py to
 wx\_windows_.pyc
*** copy extensions ***
copying C:\Python27\DLLs\_hashlib.pyd -> c:\Python27\Game\dist
copying C:\Python27\DLLs\_multiprocessing.pyd -> c:\Python27\Game\dist
copying C:\Python27\DLLs\_socket.pyd -> c:\Python27\Game\dist
copying C:\Python27\DLLs\_ssl.pyd -> c:\Python27\Game\dist
copying C:\Python27\DLLs\bz2.pyd -> c:\Python27\Game\dist
copying C:\Python27\DLLs\pyexpat.pyd -> c:\Python27\Game\dist
copying C:\Python27\DLLs\select.pyd -> c:\Python27\Game\dist
copying C:\Python27\DLLs\unicodedata.pyd -> c:\Python27\Game\dist
copying C:\Python27\Game\_ctypes.pyd -> c:\Python27\Game\dist
copying C:\Python27\lib\site-packages\pygame\_arraysurfarray.pyd -> c:\Python27\
Game\dist\pygame._arraysurfarray.pyd
copying C:\Python27\lib\site-packages\pygame\_numericsndarray.pyd -> c:\Python27
\Game\dist\pygame._numericsndarray.pyd
copying C:\Python27\lib\site-packages\pygame\_numericsurfarray.pyd -> c:\Python2
7\Game\dist\pygame._numericsurfarray.pyd
copying C:\Python27\lib\site-packages\pygame\base.pyd -> c:\Python27\Game\dist\p
ygame.base.pyd
copying C:\Python27\lib\site-packages\pygame\bufferproxy.pyd -> c:\Python27\Game
\dist\pygame.bufferproxy.pyd
copying C:\Python27\lib\site-packages\pygame\cdrom.pyd -> c:\Python27\Game\dist\
pygame.cdrom.pyd
copying C:\Python27\lib\site-packages\pygame\color.pyd -> c:\Python27\Game\dist\
pygame.color.pyd
copying C:\Python27\lib\site-packages\pygame\constants.pyd -> c:\Python27\Game\d
ist\pygame.constants.pyd
copying C:\Python27\lib\site-packages\pygame\display.pyd -> c:\Python27\Game\dis
t\pygame.display.pyd
copying C:\Python27\lib\site-packages\pygame\draw.pyd -> c:\Python27\Game\dist\p
ygame.draw.pyd
copying C:\Python27\lib\site-packages\pygame\event.pyd -> c:\Python27\Game\dist\
pygame.event.pyd
copying C:\Python27\lib\site-packages\pygame\fastevent.pyd -> c:\Python27\Game\d
ist\pygame.fastevent.pyd
copying C:\Python27\lib\site-packages\pygame\font.pyd -> c:\Python27\Game\dist\p
ygame.font.pyd
copying C:\Python27\lib\site-packages\pygame\image.pyd -> c:\Python27\Game\dist\
pygame.image.pyd
copying C:\Python27\lib\site-packages\pygame\imageext.pyd -> c:\Python27\Game\di
st\pygame.imageext.pyd
copying C:\Python27\lib\site-packages\pygame\joystick.pyd -> c:\Python27\Game\di
st\pygame.joystick.pyd
copying C:\Python27\lib\site-packages\pygame\key.pyd -> c:\Python27\Game\dist\py
game.key.pyd
copying C:\Python27\lib\site-packages\pygame\mask.pyd -> c:\Python27\Game\dist\p
ygame.mask.pyd
copying C:\Python27\lib\site-packages\pygame\math.pyd -> c:\Python27\Game\dist\p
ygame.math.pyd
copying C:\Python27\lib\site-packages\pygame\mixer.pyd -> c:\Python27\Game\dist\
pygame.mixer.pyd
copying C:\Python27\lib\site-packages\pygame\mixer_music.pyd -> c:\Python27\Game
\dist\pygame.mixer_music.pyd
copying C:\Python27\lib\site-packages\pygame\mouse.pyd -> c:\Python27\Game\dist\
pygame.mouse.pyd
copying C:\Python27\lib\site-packages\pygame\movie.pyd -> c:\Python27\Game\dist\
pygame.movie.pyd
copying C:\Python27\lib\site-packages\pygame\overlay.pyd -> c:\Python27\Game\dis
t\pygame.overlay.pyd
copying C:\Python27\lib\site-packages\pygame\pixelarray.pyd -> c:\Python27\Game\
dist\pygame.pixelarray.pyd
copying C:\Python27\lib\site-packages\pygame\rect.pyd -> c:\Python27\Game\dist\p
ygame.rect.pyd
copying C:\Python27\lib\site-packages\pygame\rwobject.pyd -> c:\Python27\Game\di
st\pygame.rwobject.pyd
copying C:\Python27\lib\site-packages\pygame\scrap.pyd -> c:\Python27\Game\dist\
pygame.scrap.pyd
copying C:\Python27\lib\site-packages\pygame\surface.pyd -> c:\Python27\Game\dis
t\pygame.surface.pyd
copying C:\Python27\lib\site-packages\pygame\surflock.pyd -> c:\Python27\Game\di
st\pygame.surflock.pyd
copying C:\Python27\lib\site-packages\pygame\time.pyd -> c:\Python27\Game\dist\p
ygame.time.pyd
copying C:\Python27\lib\site-packages\pygame\transform.pyd -> c:\Python27\Game\d
ist\pygame.transform.pyd
copying C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_controls_.pyd -> c:
\Python27\Game\dist\wx._controls_.pyd
copying C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_core_.pyd -> c:\Pyt
hon27\Game\dist\wx._core_.pyd
copying C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_gdi_.pyd -> c:\Pyth
on27\Game\dist\wx._gdi_.pyd
copying C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_misc_.pyd -> c:\Pyt
hon27\Game\dist\wx._misc_.pyd
copying C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_windows_.pyd -> c:\
Python27\Game\dist\wx._windows_.pyd
*** copy dlls ***
copying C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\wxmsw28uh_html_vc.dl
l -> c:\Python27\Game\dist
copying C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\wxmsw28uh_core_vc.dl
l -> c:\Python27\Game\dist
copying C:\Python27\lib\site-packages\pygame\SDL_mixer.dll -> c:\Python27\Game\d
ist
copying C:\Windows\system32\python27.dll -> c:\Python27\Game\dist
setting sys.winver for 'c:\Python27\Game\dist\python27.dll' to 'py2exe'
copying C:\Python27\lib\site-packages\pygame\SDL_image.dll -> c:\Python27\Game\d
ist
copying C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\wxbase28uh_vc.dll ->
 c:\Python27\Game\dist
copying C:\Python27\lib\site-packages\pygame\SDL_ttf.dll -> c:\Python27\Game\dis
t
copying C:\Python27\lib\site-packages\pygame\smpeg.dll -> c:\Python27\Game\dist
copying C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\wxbase28uh_net_vc.dl
l -> c:\Python27\Game\dist
copying C:\Python27\lib\site-packages\pygame\SDL.dll -> c:\Python27\Game\dist
copying C:\Python27\w9xpopen.exe -> c:\Python27\Game\dist
copying C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\wxmsw28uh_adv_vc.dll
 -> c:\Python27\Game\dist
*** copy data files ***
copying FreeSansBold.ttf -> c:\Python27\Game\dist\.
copying Audio.png -> c:\Python27\Game\dist\.
copying Audio-mute.png -> c:\Python27\Game\dist\.
copying Car.jpg -> c:\Python27\Game\dist\.
copying Car2.jpg -> c:\Python27\Game\dist\.
copying CarDown.jpg -> c:\Python27\Game\dist\.
copying CarDown2.jpg -> c:\Python27\Game\dist\.
copying CarLeft.jpg -> c:\Python27\Game\dist\.
copying CarLeft2.jpg -> c:\Python27\Game\dist\.
copying CarRight.jpg -> c:\Python27\Game\dist\.
copying CarRight2.jpg -> c:\Python27\Game\dist\.
copying Audioblack.png -> c:\Python27\Game\dist\.
copying Audio-mute-black.png -> c:\Python27\Game\dist\.
copying Help.png -> c:\Python27\Game\dist\.
copying Lives.jpg -> c:\Python27\Game\dist\.
copying Road.png -> c:\Python27\Game\dist\.
copying stop.png -> c:\Python27\Game\dist\.
copying 1234_Rock_it.wav -> c:\Python27\Game\dist\.
copying Foogies.wav -> c:\Python27\Game\dist\.
copying lightFeel.mp3 -> c:\Python27\Game\dist\.
copying redAlert.mp3 -> c:\Python27\Game\dist\.
copying Ching.wav -> c:\Python27\Game\dist\.
copying Start Engines.wav -> c:\Python27\Game\dist\.
copying cars crash.ogg -> c:\Python27\Game\dist\.
copying Speed_Kills_2.wav -> c:\Python27\Game\dist\.
copying C:\Python27\lib\site-packages\py2exe\run_w.exe -> c:\Python27\Game\dist\
TrafficRushWithCollision.exe
The following modules appear to be missing
['AppKit', 'Foundation', 'Numeric', 'OpenGL.GL', '_scproxy', 'copyreg', 'dummy.P
rocess', 'numpy', 'pkg_resources', 'queue', 'winreg', 'pygame.sdlmain_osx']

*** binary dependencies ***
Your executable(s) also depend on these dlls which are not included,
you may or may not need to distribute them.

Make sure you have the license if you distribute any of them, and
make sure you don't distribute files belonging to the operating system.

   OLEAUT32.dll - C:\Windows\system32\OLEAUT32.dll
   USER32.dll - C:\Windows\system32\USER32.dll
   SHELL32.dll - C:\Windows\system32\SHELL32.dll
   KERNEL32.dll - C:\Windows\system32\KERNEL32.dll
   COMDLG32.dll - C:\Windows\system32\COMDLG32.dll
   WINMM.dll - C:\Windows\system32\WINMM.dll
   COMCTL32.dll - C:\Windows\system32\COMCTL32.dll
   ADVAPI32.dll - C:\Windows\system32\ADVAPI32.dll
   WS2_32.dll - C:\Windows\system32\WS2_32.dll
   WINSPOOL.DRV - C:\Windows\system32\WINSPOOL.DRV
   GDI32.dll - C:\Windows\system32\GDI32.dll
   MSVCP90.dll - C:\Python27\DLLs\MSVCP90.dll
   gdiplus.dll - C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\gdiplus.dll

   ole32.dll - C:\Windows\system32\ole32.dll
   WSOCK32.dll - C:\Windows\system32\WSOCK32.dll
   RPCRT4.dll - C:\Windows\system32\RPCRT4.dll

c:\Python27\Game>


Here is my setup file:
from distutils.core import setup
import py2exe
setup(
    windows=[{"script":'TrafficRushWithCollision.py'}],
    data_files = [ (".", ['FreeSansBold.ttf','Audio.png','Audio-mute.png','Car.jpg','Car2.jpg','CarDown.jpg','CarDown2.jpg','CarLeft.jpg','CarLeft2.jpg','CarRight.jpg','CarRight2.jpg','Audioblack.png','Audio-mute-black.png','Help.png','Lives.jpg','Road.png','stop.png','1234_Rock_it.wav','Foogies.wav','lightFeel.mp3','redAlert.mp3','Ching.wav','Start Engines.wav','cars crash.ogg','Speed_Kills_2.wav'])]
    )


Was This Post Helpful? 0

#8 atraub  Icon User is offline

  • Pythoneer
  • member icon

Reputation: 759
  • View blog
  • Posts: 2,010
  • Joined: 23-December 08

Re: Py2exe with WxPython and Python?

Posted 06 February 2011 - 08:32 AM

I remember when I was working with Py2exe a few years ago. I tried to use Python 2.6 but found out that while it did work sometimes, it didn't work as well as it did with Python 2.5. One idea is to try downgrading your version of Python to 2.5 (everyone feel free to gasp), and seeing if that works. Remember that WxPython IS version specific, so that'll need to be downgraded as well. I wouldn't be surprised if Pygame needs to be downgraded too. This is kind of a sucky way to do it though.

May I ask, why you want to use Py2exe? Why not just distribute your program using portable Python?
Was This Post Helpful? 0
  • +
  • -

#9 Guest_David M*


Reputation:

Re: Py2exe with WxPython and Python?

Posted 06 February 2011 - 11:46 AM

If all else fails then I guess I would have to try that option. But I have never heard of PortablePython. Would you mind explaining what it is? And does it work for many OS? Because isn't py2exe especially for windows? Thanks man!
Was This Post Helpful? 0

#10 Guest_David M*


Reputation:

Re: Py2exe with WxPython and Python?

Posted 06 February 2011 - 11:47 AM

And sorry is it also avaliable for Python 2.7.1 and will work with all these modules?
Was This Post Helpful? 0

#11 Guest_David M*


Reputation:

Re: Py2exe with WxPython and Python?

Posted 06 February 2011 - 11:52 AM

I went on the website and it says download for Python 2.5.4 and 2.6.1 and 3.0.1? Do i have to downgrade my python? Also the packages included show:
* Django-1.0.2-final
* IPython-0.9.1
* PIL-1.1.6
* Py2exe-0.6.9
* PyGame-1.8.1
* PyReadline-1.5
* PyScripter v1.9.9.6
* PyWin32-212
* Rpyc-2.60
* SPE-0.8.4.c
* wxPython-unicode-2.8.9.1
Does this mean those packages are going to be installed automatically with Portable Python. Thanks really appreciate it.
Was This Post Helpful? 0

#12 atraub  Icon User is offline

  • Pythoneer
  • member icon

Reputation: 759
  • View blog
  • Posts: 2,010
  • Joined: 23-December 08

Re: Py2exe with WxPython and Python?

Posted 07 February 2011 - 07:27 AM

Portable Python is what it sounds like. You distribute it along with your program and it allows the user to run your program without first installing Python.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1