New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python3.3: Type error when launching SGE cluster in IPython notebook #3326
Comments
try #3328 |
Patch seems to work fine with SGE, both for starting and stopping. However, when I try to stop a cluster started with the "sh" profile, I know get the attached traceback and the message "error stopping cluster" in the web GUI. [NotebookApp] Using existing profile dir: '/remote/de02h3/georgv/.config/ipython/profile_sh' |
PR #3328 should not have any effect on that - it looks like your system has somehow managed to install the file without running 2to3 on it. Try |
You are right, I was wrong. I installed your patch without first applying 2to3. Sorry about that! |
decode subprocess output in launchers closes #3326
decode subprocess output in launchers closes ipython#3326
IPython13.2: Launching a cluster configured for SGE use caused a type error stating that you cannot apply a regular expression to a byte sequence (that apparently was the result of some shell level command). Unfortunately, the exact message got lost.
Workaround: Change ib/python3.3/site-packages/ipython-0.13.2-py3.3.egg/IPython/parallel/apps/launcher.py a follows:
def parse_job_id(self, output):
"""Take the output of the submit command and return the job id."""
output=output.decode('UTF8')
...
I guess that python3.3 issues like these lurk in many places where the result of a shell command (usually a byte string) is combined somehow with a python3.3 (unicode) string.
Georg
The text was updated successfully, but these errors were encountered: