[Pythonmac-SIG] py2app and ipython

Christopher Barker Chris.Barker at noaa.gov
Thu Apr 30 19:30:20 CEST 2009


Thomas Robitaille wrote:
> Hi,
> 
> I am trying to use py2app to make a simple MacOS X application that 
> launches an ipython shell.

How do you expect to use this? It appears to need a terminal window -- 
Py2app is usually for GUI apps, so it will dump output to Console.app, 
but not give you a terminal.

> However, when I try launching the resulting executable, I get a dialog 
> with "ImportError: No module named ipy_profile_none"

where does that usually live?

For more diagnostics you can look into the build app bundle by right 
clicking on the bundle. Poke around in there, and you can see what's 
getting included.


You may need to explicitly include the IPython pacakge, so you'll get 
eveything. See a recent thread: py2app and mysqldb

> What am I missing?
> 
> Not sure if this is important, but when running setup.py py2app, I get 
> the following warning:
> 
> /usr/bin/strip: the __LINKEDIT segment does not cover the end of the 
> file (can't be processed) in: 
> /Users/tom/Code/python/experimental/ipython/test/dist/aplpy.app/Contents/Frameworks/libgcc_s.1.dylib 
> (for architecture i386)

You may need the latest macholib:

easy_install macholib==dev


-Chris



-- 
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.Barker at noaa.gov


More information about the Pythonmac-SIG mailing list