Skip to content

ImportError: cannot import name 'ensure_dir_exists' #61

Description

@stenpiren

After cloning the entire repository and doing docker-compose build and then docker-compose up I get I get the following Traceback:

Starting scotch_demo_julia_api_1 ... done
Starting scotch_demo_python_api_1 ... done
Starting scotch_demo_r_api_1 ... done
Starting scotch_demo_notebook_1 ... done
Attaching to scotch_demo_julia_api_1, scotch_demo_python_api_1, scotch_demo_notebook_1, scotch_demo_r_api_1
julia_api_1 | Traceback (most recent call last):
julia_api_1 | File "/opt/conda/bin/jupyter-kernelgateway", line 7, in
julia_api_1 | from kernel_gateway import launch_instance
julia_api_1 | File "/opt/conda/lib/python3.5/site-packages/kernel_gateway/init.py", line 4, in
julia_api_1 | from .gatewayapp import launch_instance
julia_api_1 | File "/opt/conda/lib/python3.5/site-packages/kernel_gateway/gatewayapp.py", line 13, in
julia_api_1 | from notebook.services.kernels.kernelmanager import MappingKernelManager
julia_api_1 | File "/opt/conda/lib/python3.5/site-packages/notebook/init.py", line 25, in
julia_api_1 | from .nbextensions import install_nbextension
julia_api_1 | File "/opt/conda/lib/python3.5/site-packages/notebook/nbextensions.py", line 27, in
julia_api_1 | from jupyter_core.utils import ensure_dir_exists
julia_api_1 | ImportError: cannot import name 'ensure_dir_exists'
notebook_1 | Traceback (most recent call last):
notebook_1 | File "/opt/conda/bin/jupyter-notebook", line 7, in
notebook_1 | from notebook.notebookapp import main
notebook_1 | File "/opt/conda/lib/python3.5/site-packages/notebook/init.py", line 25, in
notebook_1 | from .nbextensions import install_nbextension
notebook_1 | File "/opt/conda/lib/python3.5/site-packages/notebook/nbextensions.py", line 27, in
notebook_1 | from jupyter_core.utils import ensure_dir_exists
notebook_1 | ImportError: cannot import name 'ensure_dir_exists'
python_api_1 | Traceback (most recent call last):
python_api_1 | File "/opt/conda/bin/jupyter-kernelgateway", line 7, in
python_api_1 | from kernel_gateway import launch_instance
python_api_1 | File "/opt/conda/lib/python3.5/site-packages/kernel_gateway/init.py", line 4, in
python_api_1 | from .gatewayapp import launch_instance
python_api_1 | File "/opt/conda/lib/python3.5/site-packages/kernel_gateway/gatewayapp.py", line 13, in
python_api_1 | from notebook.services.kernels.kernelmanager import MappingKernelManager
python_api_1 | File "/opt/conda/lib/python3.5/site-packages/notebook/init.py", line 25, in
python_api_1 | from .nbextensions import install_nbextension
python_api_1 | File "/opt/conda/lib/python3.5/site-packages/notebook/nbextensions.py", line 27, in
python_api_1 | from jupyter_core.utils import ensure_dir_exists
python_api_1 | ImportError: cannot import name 'ensure_dir_exists'
r_api_1 | Traceback (most recent call last):
r_api_1 | File "/opt/conda/bin/jupyter-kernelgateway", line 7, in
r_api_1 | from kernel_gateway import launch_instance
r_api_1 | File "/opt/conda/lib/python3.5/site-packages/kernel_gateway/init.py", line 4, in
r_api_1 | from .gatewayapp import launch_instance
r_api_1 | File "/opt/conda/lib/python3.5/site-packages/kernel_gateway/gatewayapp.py", line 13, in
r_api_1 | from notebook.services.kernels.kernelmanager import MappingKernelManager
r_api_1 | File "/opt/conda/lib/python3.5/site-packages/notebook/init.py", line 25, in
r_api_1 | from .nbextensions import install_nbextension
r_api_1 | File "/opt/conda/lib/python3.5/site-packages/notebook/nbextensions.py", line 27, in
r_api_1 | from jupyter_core.utils import ensure_dir_exists
r_api_1 | ImportError: cannot import name 'ensure_dir_exists'
scotch_demo_julia_api_1 exited with code 1
scotch_demo_notebook_1 exited with code 1
scotch_demo_r_api_1 exited with code 1
scotch_demo_python_api_1 exited with code 1

Thus I am unable to start any of the APIs. Any clue how to solve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions