Skip to content
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

Just ran "conda upgrade notebook" to get .5.3.1 now notebook won't start #3247

Closed
dartdog opened this issue Jan 22, 2018 · 7 comments
Closed

Comments

@dartdog
Copy link

dartdog commented Jan 22, 2018

Running anaconda (Ubunti 16.04) of course, but have been using for some time so there may be some accumulated cruft?

Got no error on the upgrade but get this now when trying to run notebook so I'm stuck!
Some sort of config issue?
Help appreciated!

tom@tomServal:~$ jupyter notebook
Traceback (most recent call last):
File "/home/tom/anaconda3/bin/jupyter-notebook", line 4, in
import notebook.notebookapp
File "/home/tom/anaconda3/lib/python3.6/site-packages/notebook/init.py", line 25, in
from .nbextensions import install_nbextension
File "/home/tom/anaconda3/lib/python3.6/site-packages/notebook/nbextensions.py", line 27, in
from jupyter_core.utils import ensure_dir_exists
ImportError: cannot import name 'ensure_dir_exists'

@dartdog
Copy link
Author

dartdog commented Jan 22, 2018

Since this is my primary dev environment I'd be happy a bit of guidance on just replacing the whole install within conda? So I can get back to work? I tried conda install jupyter with no effect..

@sarmoho
Copy link

sarmoho commented Jan 23, 2018

Try to force to install notebook to the previous version
conda install notebook=5.0.0

The version come from this link (https://docs.anaconda.com/anaconda/packages/py3.6_linux-64)

@dartdog
Copy link
Author

dartdog commented Jan 23, 2018

Further discussion and details:
if you want to see in google groups https://groups.google.com/d/topic/jupyter/4_FJmLWBbmI/discussion

@dartdog
Copy link
Author

dartdog commented Jan 23, 2018

Going to hold off a bit on trying to downgrade, afraid that could complicate things as it seems now configuration rather than code?

@takluyver
Copy link
Member

The original error should be fixed in the latest conda-forge package: conda-forge/notebook-feedstock#27

Mac packages may lag the other platforms a bit, because the builds get stuck in a queue:
https://travis-ci.org/conda-forge/notebook-feedstock/builds

@gnestor
Copy link
Contributor

gnestor commented Jan 23, 2018

Yes, it sounds like your jupyter_core and/or jupyter_client need to be updated: conda update jupyter_core jupyter_client or pip install jupyter_core jupyter_client --upgrade.

Let us know if that resolves your issue, @dartdog 👍

@dartdog
Copy link
Author

dartdog commented Jan 23, 2018

There is still one more issue related to the NB conda kernels... @minrk has it in hand... see jupyter/jupyter_client#338

@gnestor gnestor closed this as completed Jan 26, 2018
@minrk minrk added this to the Not Notebook milestone Jun 15, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants