[IPython-User] ipcluster in ssh mode in ipython 0.13
M. Wimmer
wimmer.mike@gmail....
Thu Jul 19 03:39:35 CDT 2012
Thanks for the quick reply!
> (or similar)PR #2163 (one-character patch) should fix it. Can you confirm
> that?
I tried this, and it certainly fixes the problem with the profile directory
(i.e. the scp-commands work now).
However I have still problems with the engines not being launched due to a
syntax error (only the relevant part, and I add -vvv to ssh):
2012-07-19 10:29:34.700 [IPClusterStart] debug1: Sending command:
/usr/bin/python -c from IPython.parallel.apps.ipengineapp import
launch_new_instance; launch_new_instance() --profile-dir
.ipython/profile_ssh --log-to-file --log-level=20
2012-07-19 10:29:34.763 [IPClusterStart] bash: -c: line 0: syntax error near
unexpected token `--profile-dir'
2012-07-19 10:29:34.764 [IPClusterStart] bash: -c: line 0: `/usr/bin/python
-c from IPython.parallel.apps.ipengineapp import launch_new_instance;
launch_new_instance() --profile-dir .ipython/profile_ssh --log-to-file
--log-level=20'
It seems to me that there are some quotation marks missing around `from ...
launch_new_instance()`? (I have to admit that quoting always confuses me)
Indeed, if I add to ipcluster_config.py
c.SSHEngineSetLauncher.engine_cmd = ['/usr/bin/python', '-c', '\"from
IPython.parallel.apps.ipengineapp import launch_new_instance;
launch_new_instance()\"']
the syntax error is solved.
Unfortunately, the cluster still does not start, as the engines simply stop
within two seconds or so. I'm still investigating this, but in any case it
would be nice if you could have a look into what I wrote above.
All the best,
Michael
More information about the IPython-User
mailing list