-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
unable to start Jupyter notebook #636
Comments
Seem to be a problem with zmq. Have you tried to reinstall it ? Have you try updating python to a more recent version like 3.4 or 3.5 ? |
I don't know. I tried updating zmq and pyzmq and friends both thru pkg mgr and pip. Everything was working fine few months ago. Jupyter(via zmq) is not working but hadn't used it in a while so maybe some unrelated software install in the meanwhile changed something with zmq? Who knows but I will try re-installing from scratch. |
Okay, I just spent two hours trying to fix this annoying issue. I built zeromq from source and it tells me something about libsodium so I installed that. Then, zeromq built succesfully. Great. Then, I fire up my jupyter notebook and still same message. Then, I commented out: export PYTHONPATH=/usr/local/lib/python2.7/dist packages:$PYTHONPATH and I get the following message:
By this time, I am just done with this so decide to use anaconda for python 3. And, I get the same message as posted above! If anaconda is supposed to be isolated environment and it installed successfully and path was set to it then I would expect it to work. Now, I will go back to my distro. Note that I have both Python 2 and 3. What info do you need? |
Oh, you seem to be in a weird corner case/ have bad luck: I see in one message that you are missing one package that you probably configured manually (ipymd), check in your config if you have
Like ly the config file will be in
The only difference is that the Jupyter/IPython config is global, so if you have a issue in your config this might happen. This is needed as users might want to run only on server with various conda env Anaconda will also only provide isolation if you are using bash, and don't mess with $PATH in a way that anaconda can't prevent. Typically it needs to shell-out to some external programs. And if $PATH is not correct, it can't know. Anyway, if it works by commenting the config, we can try to reinstall Sorry for the trouble you are encountering. |
That worked, thanks for your help with debugging. Now, I can start Jupyter Notebook. But immediately upon creating a new notebook, the kernel dies for all my language kernels including Python 2, 3, and my three other language kernels. Here is some output. Any idea? [I 12:27:21.863 NotebookApp] KernelRestarter: restarting kernel (3/5) |
That's because your system still find old kernels from a non-working IPython env. Try At some point I would also suggest trying to find the non working installation of IPython/lib zmq and remove them. |
(if you want to be even more sure, you can do |
That does not work, it complains about not finding zmq. I did that using kernelspec command when I initially upgraded to Jupyter when it was first released. I have a bunch of language kernels listed in my menu. I do not have any idea where to locate the old kernels non working IPython or zmq. Perhaps, that could be built in to the upgrade process. I have other programs that are recognizing my Python 3 interpreter but not IPython or Jupyter. When I have time to play around with this again, I'll get in touch. Mark this as unresolved. |
@Carreau @minrk Please tag "pending additional information" from @codebeetle. |
Nevermind ^^ Already labeled "needs info". |
Ok, let's try to do things stem by step, I include what I get for information. List all kernels: $ jupyter kernelspec list
Available kernels:
haskell ~/Library/Jupyter/kernels/haskell
julia-0.3 ~/Library/Jupyter/kernels/julia-0.3
julia-0.4 ~/Library/Jupyter/kernels/julia-0.4
julia-0.5 ~/Library/Jupyter/kernels/julia-0.5
py34 /usr/local/share/jupyter/kernels/py34
python2 /usr/local/share/jupyter/kernels/python2
python3 /usr/local/share/jupyter/kernels/python3 you can remove the folders of the kernels you do not want. Find which python $ head -n1 $(which jupyter)
#!~/anaconda3/bin/python3 This is the python that have ZMQ installed. Find which python IPython uses" $ head -n1 $(which ipython)
#!~/anaconda3/bin/python3 Check that the above python we just got does indeed have ZMQ: $ ~/anaconda3/bin/python3 -c 'import zmq'
# Should not complain, if there is ZMQ or print the following if it does not have:
# Traceback (most recent call last):
# File "<string>", line 1, in <module>
# ImportError: No module named 'zmq' If we have ZMQ try to install the kernel with this particuart python and give it a specific name just to find it easily
It should appear in the kernel list:
And in the |
Jupyter with zmq problem. Not fully working. Updates should be improved. |
I am having an issue that is similar to this one, probably even the same one... although I haven't gotten as far with zmq.
So I tried updating Thank you in advance, and let me know if I can give you more details. |
Try uninstalling and reinstalling pyzmq. |
Hi, I am having troubles with the same problem: Traceback (most recent call last): |
I have same problem. And I did twice pyzmq installation. But it does not work. |
Solution: conda create -n py35 python=3.5 anaconda I simply create a new environment using the full anaconda metapackage. And it works. |
That looks like jupyter_environment_kernels is partly installed. If you need help working it out, post an issue there. |
@takluyver thanks for the answer, it runs :) |
Thank you @waschbaer00! Your solution was the only one that worked for me. |
uninstall pyzmq and then reinstall using wheel file from here works for me. |
On a Jetson TX2 with Ubuntu 16.04 on ARM64 this is all very complicated. I´m using JetPack 3.2's Python3 and CANNOT use Anaconda (that I got somewhat used to - unavailable on the Jetson) and still trying to get the hang of sudo -H or --user. |
Well if you are using anaconda. Then open the Anaconda Navigator and then just update the Jupyter notebook app. It worked for me. After all the hassle of trying to solve just a simple app update worked on Anaconda. |
Thanks for the reply! Tried |
Success! AFAI understand this Jupyter runs on 2.7 now as I overlooked to change PS: Just came across PPS: Why It may have been advisable to use venv (or virtualenv?, sadly no Anaconda on Jetson) and specify the Python major version, but a nasty pip 8 to 10 bug cost me another bunch of hours and threw me off the path. |
after manually upgrading my conda environment to 3.6, i got this error. ai-bits suggestion to forcefully pip reinstall |
This works for me |
fantastic! Worked for me! |
Success. Thank you! |
None of the above worked for me. No Anaconda is there either. Strange. Edit: May sound silly, but a newer version of the notebook uses |
I was getting this error and what seemed to be the issue was that I did not reinstall jupyter in my new environment, so it was running jupyter from my system installation. So, all it took as activating my environment and installing jupyter: $ pyenv activate my_env |
Thanks, worked |
Am sure there's alot of technical reasons. I found one, I had a random roaming python installed somewhere in Windows 10.
The site packages for this aberrant python37 were taking precendent. Everything worked when booting from a cmd.exe, but when I tried to run something like nbopen.exe, i'd get the "sys/un.h" not found. Solution was to delete the empty roaming python folders.
|
Hi,
I'm not able to launch the jupyter notebook:
It was working a few months ago. I just upgraded it.
The text was updated successfully, but these errors were encountered: