[IPython-User] Self-contained Mac app distribution for IPython Notebook
Tue Mar 12 18:32:45 CDT 2013
the app runs sandboxed, and I suspect there's an issue with that. Please check in your Console.app if there is a "sandbox violation" message. If there is, there should be a paperclip icon at the right end of that log line. If you click that you should get a sandbox violation report with a stack trace. E-mail me that and I'll take a look.
There are likely quite a few restrictions put on the code because it runs in the sandbox. I haven't had any issues with the examples I tried, but you definitely need to explicitly give it file system access to locations that your code wants to access. You can do that in the Preferences or just drop folders onto the app's dock icon.
About the build, send me the build failure messages and I'll see if it's something I recognize, but unfortunately I don't have time to support you with getting the project built, you are definitely on your own there. There are quite a few dependencies (such as the fortran compiler) and most of it is automated with the build scripts, but it's by no means bullet proof or easily buildable.
On Mar 12, 2013, at 4:24 PM, epi <firstname.lastname@example.org> wrote:
> testing the app bundle, i got errors truing to run system commands :
> In :
> In :
> In :
> ExceptionPexpect Traceback (most recent call last)
> <ipython-input-21-b9614390ce83> in <module>()
> ----> 1 get_ipython().system(u'ls')
> /Users/epi/Desktop/IPython Notebook.app/Contents/Resources/virtualenv/lib/python2.7/site-packages/IPython/core/interactiveshell.py in system_piped(self, cmd)
> 2185 # a non-None value would trigger :func:`sys.displayhook` calls.
> 2186 # Instead, we store the exit_code in user_ns.
> -> 2187 self.user_ns['_exit_code'] = system(self.var_expand(cmd, depth=1))
> 2189 def system_raw(self, cmd):
> /Users/epi/Desktop/IPython Notebook.app/Contents/Resources/virtualenv/lib/python2.7/site-packages/IPython/utils/_process_posix.py in system(self, cmd)
> 151 #child = pexpect.spawn(pcmd, searchwindowsize=1)
> 152 if hasattr(pexpect, 'spawnb'):
> --> 153 child = pexpect.spawnb(self.sh, args=['-c', cmd]) # Pexpect-U
> 154 else:
> 155 child = pexpect.spawn(self.sh, args=['-c', cmd]) # Vanilla Pexpect
> /Users/epi/Desktop/IPython Notebook.app/Contents/Resources/virtualenv/lib/python2.7/site-packages/IPython/external/pexpect/_pexpect.py in __init__(self, command, args, timeout, maxread, searchwindowsize, logfile, cwd, env)
> 454 self.name = '<pexpect factory incomplete>'
> 455 else:
> --> 456 self._spawn (command, args)
> 458 def __del__(self):
> /Users/epi/Desktop/IPython Notebook.app/Contents/Resources/virtualenv/lib/python2.7/site-packages/IPython/external/pexpect/_pexpect.py in _spawn(self, command, args)
> 554 self.pid, self.child_fd = pty.fork()
> 555 except OSError, e:
> --> 556 raise ExceptionPexpect('Error! pty.fork() failed: ' + str(e))
> 557 else: # Use internal __fork_pty
> 558 self.pid, self.child_fd = self.__fork_pty()
> ExceptionPexpect: Error! pty.fork() failed: out of pty devices
> PS, i'm tring to build the bundle using Xcode but i got some errors (missed sparkle framework and code signature error)
> i'd love to have it compiled here locally and spend some time on it (i like that project and will make mac users happy)
> can i ask you support to fix the build, perhaps off list ?
> Il giorno 11/mar/2013, alle ore 15:36, Marc Liyanage <email@example.com> ha scritto:
>> I'm working on a new self-contained Mac app that runs the IPython notebook server and connects a WebKit view to it on launch, for a double-clickable experience. It embeds a virtualenv with some popular extension modules.
>> It would be nice to get this ready for PyCon at the end of this week, so I'm looking for some testing and feedback. There's a binary linked to from this page:
>> It requires OS X 10.8.
>> IPython-User mailing list
> IPython-User mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-User