jparyani / ipython

Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.
http://ipython.org
6 stars 6 forks source link

Please update to Python3 #7

Closed icarito closed 8 years ago

icarito commented 9 years ago

It's a cleaner, nicer language

kentonv commented 8 years ago

@valerytschopp noted that a potential user at switch has requested this as well, in order to use as a teaching tool for a class that has standardized on Python 3. @jparyani, how hard would this be?

valerytschopp commented 8 years ago

I just installed the IPython Notebook v4.2.1 in my Sandstorm v0.173 server and there is a problem with the Python3 support. The python 3 kernel always crash and die. Here is the log:

Debug log: Untitled IPython Notebook project
...** SANDSTORM SUPERVISOR: Starting up grain.
[I 14:32:16.531 NotebookApp] Writing notebook server cookie secret to /var/home/.local/share/jupyter/runtime/notebook_cookie_secret
[I 14:32:16.551 NotebookApp] Serving notebooks from local directory: /var/home
[I 14:32:16.551 NotebookApp] 0 active kernels 
[I 14:32:16.551 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/
[I 14:32:16.551 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 14:32:16.553 NotebookApp] No web browser found: could not locate runnable browser.
[I 14:32:16.588 NotebookApp] 302 GET / (127.0.0.1) 1.27ms
[I 14:32:21.653 NotebookApp] Creating new notebook in 
[I 14:32:21.665 NotebookApp] Writing notebook-signing key to /var/home/.local/share/jupyter/notebook_secret
[W 14:32:22.800 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20160725143216 (127.0.0.1) 11.54ms referer=None
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
[I 14:32:22.894 NotebookApp] Kernel started: 4c4bc3a1-41a6-43e2-90ad-9fe4b3568b3e
Fatal Python error: Py_Initialize: Unable to get the locale encoding
LookupError: no codec search functions registered: can't find encoding
[I 14:32:25.894 NotebookApp] KernelRestarter: restarting kernel (1/5)
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
LookupError: no codec search functions registered: can't find encoding
[I 14:32:28.908 NotebookApp] KernelRestarter: restarting kernel (2/5)
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
LookupError: no codec search functions registered: can't find encoding
[I 14:32:31.921 NotebookApp] KernelRestarter: restarting kernel (3/5)
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
LookupError: no codec search functions registered: can't find encoding
[W 14:32:32.927 NotebookApp] Timeout waiting for kernel_info reply from 4c4bc3a1-41a6-43e2-90ad-9fe4b3568b3e
[I 14:32:34.934 NotebookApp] KernelRestarter: restarting kernel (4/5)
WARNING:root:kernel 4c4bc3a1-41a6-43e2-90ad-9fe4b3568b3e restarted
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
LookupError: no codec search functions registered: can't find encoding
[W 14:32:37.951 NotebookApp] KernelRestarter: restart failed
[W 14:32:37.953 NotebookApp] Kernel 4c4bc3a1-41a6-43e2-90ad-9fe4b3568b3e died, removing from map.
ERROR:root:kernel 4c4bc3a1-41a6-43e2-90ad-9fe4b3568b3e restarted failed!
[W 14:32:37.985 NotebookApp] Kernel deleted before session
[W 14:32:37.986 NotebookApp] 410 DELETE /api/sessions/b66394ba-335a-4968-939c-412fedd8b515 (127.0.0.1) 5.87ms referer=None
dwrensha commented 8 years ago

@valerytschopp #13 fixes this.

jparyani commented 8 years ago

Should be fixed now, and a new version is on the app market. You can either wait for your server to get the update notification (within the next 24 hours), or go to https://apps.sandstorm.io/app/rprqf3t2h3vd3swfkhwk076qrennh9msreyjv70g7sgw5hkdxjph to install/upgrade it manually.

valerytschopp commented 8 years ago

Thanks @jparyani, the fix works for me