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

JupyterHub single-user server requires notebook >= 4.0 #325

Open
kenenbek opened this issue Dec 19, 2019 · 1 comment
Open

JupyterHub single-user server requires notebook >= 4.0 #325

kenenbek opened this issue Dec 19, 2019 · 1 comment

Comments

@kenenbek
Copy link

@kenenbek kenenbek commented Dec 19, 2019

I build and run Dockerfile from here:

docker build -t jupyterhub-oauth .
docker run -it -p 9999:8000 --env-file=env jupyterhub-oauth

After authentification I got:

[D 2019-12-19 18:45:35.109 JupyterHub user:542] Calling Spawner.start for kenenbek
[I 2019-12-19 18:45:35.113 JupyterHub spawner:1387] Spawning jupyterhub-singleuser --port=38765
[D 2019-12-19 18:45:35.284 JupyterHub spawner:1084] Polling subprocess every 30s
Traceback (most recent call last):
  File "/opt/conda/lib/python3.6/site-packages/jupyterhub/singleuser.py", line 24, in <module>
    import notebook
ModuleNotFoundError: No module named 'notebook'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/conda/bin/jupyterhub-singleuser", line 6, in <module>
    from jupyterhub.singleuser import main
  File "/opt/conda/lib/python3.6/site-packages/jupyterhub/singleuser.py", line 26, in <module>
    raise ImportError("JupyterHub single-user server requires notebook >= 4.0")
ImportError: JupyterHub single-user server requires notebook >= 4.0

How can I fix it?

@minrk
Copy link
Member

@minrk minrk commented Jan 30, 2020

This can be fixed by installing the notebook package: python3 -m pip install notebook

The example linked is meant for use with users in their own containers, e.g. DockerSpawner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.