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

Python 3 doesn't work #12

Closed kentonv closed 8 years ago

kentonv commented 8 years ago
  1. Create a new grain.
  2. Create a new notebook with Python 3.
  3. Wait for the kernel to start.

After a while, an error appears:

The kernel appears to have died. It will restart automatically.

Then another error appears:

The kernel has died, and the automatic restart has failed. It is possible the kernel cannot be restarted. If you are not able to restart the kernel, you will still be able to save the notebook, but running code will no longer work until the notebook is reopened.

It appears Python 3 doesn't work at all.

Python 2 seems to work fine.

zertrin commented 8 years ago

Same problem here: here is an extract of the Log:

[I 07:56:03.813 NotebookApp] Serving notebooks from local directory: /var/home
[I 07:56:03.814 NotebookApp] 0 active kernels 
[I 07:56:03.814 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/
[I 07:56:03.814 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 07:56:03.815 NotebookApp] No web browser found: could not locate runnable browser.
[I 07:56:03.830 NotebookApp] 302 GET / (127.0.0.1) 0.84ms
[W 07:57:07.607 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20160725075603 (127.0.0.1) 12.21ms referer=None
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
[I 07:57:08.138 NotebookApp] Kernel started: 32d075c5-7d90-48a2-8663-e9b45ef8141f
Fatal Python error: Py_Initialize: Unable to get the locale encoding
LookupError: no codec search functions registered: can't find encoding
[I 07:57:11.138 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 07:57:14.147 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 07:57:17.158 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 07:57:19.538 NotebookApp] Timeout waiting for kernel_info reply from 32d075c5-7d90-48a2-8663-e9b45ef8141f
[I 07:57:20.167 NotebookApp] KernelRestarter: restarting kernel (4/5)
WARNING:root:kernel 32d075c5-7d90-48a2-8663-e9b45ef8141f 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 07:57:23.182 NotebookApp] KernelRestarter: restart failed
[W 07:57:23.183 NotebookApp] Kernel 32d075c5-7d90-48a2-8663-e9b45ef8141f died, removing from map.
ERROR:root:kernel 32d075c5-7d90-48a2-8663-e9b45ef8141f restarted failed!
[W 07:57:23.416 NotebookApp] Kernel deleted before session
jparyani commented 8 years ago

Update should be up on the app market.