[Pythonmac-SIG] py2app and ipython

Thomas Robitaille thomas.robitaille at gmail.com
Thu Apr 30 16:55:51 CEST 2009


Hi,

I am trying to use py2app to make a simple MacOS X application that  
launches an ipython shell. At the moment, I have the following python  
script:

---

from IPython.Shell import IPShellEmbed

args = ['-pi1','In <\\#>:','-pi2','   .\\D.:','-po','Out<\\#>:','- 
nosep']

ipshell = IPShellEmbed(args,
                        banner = 'Dropping into IPython',
                        exit_msg = 'Leaving Interpreter, back to  
program.')

ipshell()

---

and the following setup.py file:

---

from setuptools import setup
setup(
     app=["test.py"],
     setup_requires=["py2app"],
)

---

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

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)
stripping saved 2585112 bytes (45897079 / 48482191)

Thanks in advance for any advice,

Thomas


More information about the Pythonmac-SIG mailing list