Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Pip Install Fails #19

Open
TheDataLeek opened this issue Nov 19, 2015 · 2 comments
Open

Pip Install Fails #19

TheDataLeek opened this issue Nov 19, 2015 · 2 comments

Comments

@TheDataLeek
Copy link

When I install with pip as per the README, ipython cannot find the kernel.

Relevant errors:

[I 13:34:25.749 NotebookApp] Kernel started: 5a755bf0-2175-4f83-aafa-366e9d5d5560
/usr/bin/python: No module named hy_kernel
[I 13:34:28.751 NotebookApp] KernelRestarter: restarting kernel (1/5)
/usr/bin/python: No module named hy_kernel
[I 13:34:31.754 NotebookApp] KernelRestarter: restarting kernel (2/5)
/usr/bin/python: No module named hy_kernel
[I 13:34:34.764 NotebookApp] KernelRestarter: restarting kernel (3/5)
/usr/bin/python: No module named hy_kernel
[W 13:34:35.779 NotebookApp] Timeout waiting for kernel_info reply from 5a755bf0-2175-4f83-aafa-366e9d5d5560
[I 13:34:37.770 NotebookApp] KernelRestarter: restarting kernel (4/5)
WARNING:root:kernel 5a755bf0-2175-4f83-aafa-366e9d5d5560 restarted
/usr/bin/python: No module named hy_kernel
[W 13:34:40.776 NotebookApp] KernelRestarter: restart failed
[W 13:34:40.776 NotebookApp] Kernel 5a755bf0-2175-4f83-aafa-366e9d5d5560 died, removing from map.
ERROR:root:kernel 5a755bf0-2175-4f83-aafa-366e9d5d5560 restarted failed!

[W 13:34:40.822 NotebookApp] Kernel deleted before session
[W 13:34:40.823 NotebookApp] 410 DELETE /api/sessions/471112b4-1085-4035-9c8b-cadf970242aa (127.0.0.1) 2.22ms referer=http://localhost:8888/notebooks/classwork/hoeferlab/linefit/04%20Usable%20Space-Hy.ipynb

@bollwyvl
Copy link
Owner

I'll have a look at it... but it might be this weekend! hy_kernel certainly
needs some love.

what versions of things are you running? pip freeze might help.

On Thu, Nov 19, 2015 at 3:45 PM Will F [email protected] wrote:

When I install with pip as per the README, ipython cannot find the kernel.

Relevant errors:

[I 13:34:25.749 NotebookApp] Kernel started: 5a755bf0-2175-4f83-aafa-366e9d5d5560
/usr/bin/python: No module named hy_kernel
[I 13:34:28.751 NotebookApp] KernelRestarter: restarting kernel (1/5)
/usr/bin/python: No module named hy_kernel
[I 13:34:31.754 NotebookApp] KernelRestarter: restarting kernel (2/5)
/usr/bin/python: No module named hy_kernel
[I 13:34:34.764 NotebookApp] KernelRestarter: restarting kernel (3/5)
/usr/bin/python: No module named hy_kernel
[W 13:34:35.779 NotebookApp] Timeout waiting for kernel_info reply from 5a755bf0-2175-4f83-aafa-366e9d5d5560
[I 13:34:37.770 NotebookApp] KernelRestarter: restarting kernel (4/5)
WARNING:root:kernel 5a755bf0-2175-4f83-aafa-366e9d5d5560 restarted
/usr/bin/python: No module named hy_kernel
[W 13:34:40.776 NotebookApp] KernelRestarter: restart failed
[W 13:34:40.776 NotebookApp] Kernel 5a755bf0-2175-4f83-aafa-366e9d5d5560 died, removing from map.
ERROR:root:kernel 5a755bf0-2175-4f83-aafa-366e9d5d5560 restarted failed!

[W 13:34:40.822 NotebookApp] Kernel deleted before session
[W 13:34:40.823 NotebookApp] 410 DELETE
/api/sessions/471112b4-1085-4035-9c8b-cadf970242aa (127.0.0.1) 2.22ms
referer=
http://localhost:8888/notebooks/classwork/hoeferlab/linefit/04%20Usable%20Space-Hy.ipynb


Reply to this email directly or view it on GitHub
#19.

@hacdevilliers
Copy link

Hey, not sure if this is the same problem, but I had very similar error messages. Turns out the problem was that I had installed hy_kernel under Python 3 (since I now prefer developing using Python 3), but Jupyter was trying to start the kernel using /usr/bin/python, which is usually Python 2. (You can see this in the console output /usr/bin/python: No module named hy_kernel )

I worked around the problem by editing the file
~/.local/share/jupyter/kernels/hy/kernel.json
and changing the second line
"argv": ["python", "-m", "hy_kernel.hy_kernel", "-f", "{connection_file}"],
to
"argv": ["python3", "-m", "hy_kernel.hy_kernel", "-f", "{connection_file}"],

That´s pretty quick-and-dirty though, a more permanent fix is needed. Also, not sure if this will solve the OP´s problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants