[jupyter-notebook] Stack in Kernel Starting

751 views
Skip to first unread message

Angel Cancio

unread,
Oct 6, 2015, 7:05:21 PM10/6/15
to Project Jupyter
Hi, I write because I install Jupyter on my laptop:

➜  ~  lsb_release -d -r -c
Description:    Ubuntu 15.04
Release:    15.04
Codename:    vivid

➜  ~  python --version
Python 2.7.9
➜  ~  python2 --version
Python 2.7.9
➜  ~  python3 --version
Python 3.4.3


I can't use jupyter-notebook because it gets stuck in "Starting Kernel". I ran '--debug' and found only:

/usr/local/lib/python2.7/dist-packages/IPython/kernel/__init__.py:13: ShimWarning: The `IPython.kernel` package has been deprecated. You should import from ipykernel or jupyter_client instead.  "You should import from ipykernel or jupyter_client instead.", ShimWarning)

[W 18:37:15.980 NotebookApp] Timeout waiting for kernel_info reply from 6b524da6-4daf-456e-a38b-e745a00b681b


I erased and reinstalled: Jupyter, ipykernel, pyzqm, ipython ...Even I upgrade all packages by:

for i in $(pip freeze --local | grep -v '^\-e' | cut -d = -f 1); do sudo pip install -I --upgrade --no-deps --force-reinstall ${i} ; done


I Attach a file with all the packages from my system, versions, and debug output.

Any ideas!?

Regards
details.log

Jonathan Frederic

unread,
Oct 7, 2015, 2:14:51 PM10/7/15
to jup...@googlegroups.com
When I have weird problems like this, I usually make sure everything is ran in the same Python env by using `python -m pip` instead of `pip`.  Then to launch the notebook I do `python -m notebook`.  Also, you should be able to `pip install ipython[all]` to get everything all at once.  


--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/60756b9c-1252-48ee-a5bf-d4d8ef653bf7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Angel Cancio

unread,
Oct 7, 2015, 2:23:57 PM10/7/15
to Project Jupyter
Actually what I finally did was clean everithing and install again

### Cleanning

for i in $(pip freeze --local | grep -v '^\-e' | cut -d = -f 1); do sudo pip uninstall -y ${i} ; done
for i in $(pip3 freeze --local | grep -v '^\-e' | cut -d = -f 1); do sudo pip3 uninstall -y ${i} ; done
sudo rm -rf /usr/local/lib/python2.7/site-packages
sudo rm -rf /usr/local/lib/python3.3/site-packages

### Installing
sudo apt-get install --reinstall python
sudo apt-get install --reinstall python3

sudo apt-get install --reinstall python3-setuptools
sudo apt-get install --reinstall python-setuptools
sudo apt-get install --reinstall python3-pip
sudo apt-get install --reinstall python-pip

 wget https://bootstrap.pypa.io/get-pip.py
 sudo python get-pip.py
 sudo python3 get-pip.py


## Install Jupyter
sudo -H pip install  jupyter


Thanks for the reply.
Regards

Reply all
Reply to author
Forward
0 new messages