freezing on OSX

Is it possible to use freeze to use a wxPython application on a MacOSX
box that doesn't have python installed? My attempt to do so resulted in
the following:

[freeze]
Warning: unknown modules remain: MacOS _locale binascii cStringIO macfs
math pcre pwd select strop termios time wxPython.wxc

[helloworld]
Traceback (most recent call last):
  File "../../../../helloworld.py", line 1, in ?
    from wxPython.wx import *
  File "/usr/local/lib/python2.2/site-packages/wxPython/__init__.py",
line 20, in ?
    import wxc
ImportError: No module named wxc

This is with wxMac 2.4.0, Python 2.2.2, and wxPython 2.4.0.2.

Thanks in advance!

···

--
Brian

Is it possible to use freeze to use a wxPython application on a MacOSX
box that doesn't have python installed? My attempt to do so resulted in
the following:

MacPython has it's own tools for building standalone applications, but Mac OS X versions are still in development. However, it is currently possible to build an application that uses Jaguar's built-in Python so the user doesn't need to install Python themselves.

To do this, you'll need MacPython 2.3a1, which you can download from the wxPython SF site. (It's at the bottom of the page.) The script you're looking for is "bundlebuilder.py", and it will be located at: /Library/Frameworks/Python.framework/Versions/2.3/lib/python-2.3/plat-mac/bundlebuilder.py. Eventually, it will allow you to build standalone apps, but for now you can configure it to use Jaguar's built-in python. Just copy in any modules (like wxPython) that do not come standard with Jaguar into the Resources folder of the bundle. You will still need to install the wxMac libraries on the user's system though. I'm not sure you can get around this, even with tools like bundlebuilder.

If you are running Jaguar and want to see an example of all this, I've created a ".app" bundle from a wxPython application I have been working on. To see it, go to http://www.eclass.net/download.html and click on the "for Mac" link. The installer installs the wxMac libraries and copies the EClass.Builder program to /Applications. It is totally transparent that the application was built in Python, and for most purposes, it looks and acts like a native Mac application. =) If you want, I can also send you the bundlebuilder script I use to package up this application, but I actually have to update it to work with Robin's 2.3a1 distribution.

Kevin

···

On Thursday, January 30, 2003, at 11:32 AM, Brian Victor wrote:

[freeze]
Warning: unknown modules remain: MacOS _locale binascii cStringIO macfs
math pcre pwd select strop termios time wxPython.wxc

[helloworld]
Traceback (most recent call last):
  File "../../../../helloworld.py", line 1, in ?
    from wxPython.wx import *
  File "/usr/local/lib/python2.2/site-packages/wxPython/__init__.py",
line 20, in ?
    import wxc
ImportError: No module named wxc

This is with wxMac 2.4.0, Python 2.2.2, and wxPython 2.4.0.2.

Thanks in advance!

--
Brian

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org