Python 3.5, wxPython Phoenix and py2exe

179 views
Skip to first unread message

Boštjan Mejak

unread,
Nov 19, 2016, 8:39:38 PM11/19/16
to wxpytho...@googlegroups.com
I am running Windows 10 (64 bit), Python 3.5, latest wxPython Phoenix snapshot build (2016-10-27 04:19) for my version of Python and OS, and the latest version of py2exe (version 0.9.2.2).

I've made a wxPython Phoenix app a while ago. The app was coded running Python 3.3 and the appropriate wxPython Phoenix snapshot build for it.

Back then, I've made an executable distribution of the app using py2exe.

Now I upgraded my Python version to 3.5, wxPython Phoenix's snapshot build accordingly, and py2exe as well (can't recall which version of py2exe I had back then). I am now no longer able to create the same executable distribution of the app. Please note that the code of the app was not modified in any means, it's the very same as it was.

I left my project to rest for quite a while and kind of forget about it, but now I want to expand it (yay, more features!). Just for a test, I tried to create an executable distribution of my app with this latest and greatest tools (Python, wxPython Phoenix, and py2exe) and it turns out I can't.

py2exe runs, but the 'dist' folder contains only a ZIP file with copies of the app's modules, no EXE file is there and nothing really to actually distribute.

What on Earth have they done to the tools that don't work as they used to?


What should I do to make this baby work again?


***
The contents of my setup.py script for this app are:
***

from setuptools import setup
import py2exe

setup(name="Test",
      version="1.0",
      author="Boštjan Mejak",
      author_email="bostjan...@gmail.com",
      license="GPLv3")

Chris Barker

unread,
Nov 21, 2016, 11:58:00 AM11/21/16
to wxpython-users
This is really a question for the Py2exe folks, but a note or two:

Python3.5 is built with MSVS 14 (VS 2015, I think -- the version numbers / names are maddening!)


THis is a new an different approach to bundling the run time libs and stuff, so I'm not the least surprised that a py2exe setup for py3.3 would not work right.

Can't say I have any suggestions, though -- but start with looking for folks using py2exe with py3.5 (or maybe check out pyinstaller instead)

-CHB


      author_email="bostjan.xperia@gmail.com",
      license="GPLv3")

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris....@noaa.gov

Umar Yusuf

unread,
Nov 21, 2016, 1:41:01 PM11/21/16
to wxpytho...@googlegroups.com
Try to look at other alternatives to Py2Exe such as PyInstaller, cx_Freeze, bbfreeze, or py2app (on Mac).

Hope this helps.

**************************************

*Wouldn't you rather do Business with us?  *   
This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you have
received it in error, please notify the sender immediately and delete the
original. Any use of the email by you is prohibited. If you have received
this communication in error, please notify the author by replying to this
e-mail immediately.

**************************************

www.BintaSMS.com <http://www.bintasms.com/>
www.BintaComputers.net <http://www.bintacomputers.net/>


Boštjan Mejak

unread,
Nov 21, 2016, 9:34:03 PM11/21/16
to wxpytho...@googlegroups.com
PyInstaller, got it. Thanks. 😉
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-user...@googlegroups.com.

Umar Yusuf

unread,
Nov 22, 2016, 12:32:13 AM11/22/16
to wxpytho...@googlegroups.com
Good to hear.

Cheers 
Reply all
Reply to author
Forward
0 new messages