Skip to content

Unable to run jupyter/minimal-notebook: ValueError: source code string cannot contain null bytes #564

Closed
@jonatasbaldin

Description

@jonatasbaldin

What docker image you are using?
jupyter/minimal-notebook

What complete docker command do you run to launch the container (omitting sensitive values)?
$ docker run -it --rm -p 8888:8888 jupyter/minimal-notebook

What steps do you take once the container is running to reproduce the issue?
Just run the command.

What do you expect to happen?
A URL to access the notebook.

What actually happens?

➜  ~ docker run  --rm -p 8888:8888 jupyter/minimal-notebook
Container must be run with group root to update passwd file
Executing the command: jupyter notebook
[I 22:44:11.252 NotebookApp] Writing notebook server cookie secret to /home/jovyan/.local/share/jupyter/runtime/notebook_cookie_secret
Traceback (most recent call last):
  File "/opt/conda/bin/jupyter-notebook", line 6, in <module>
    sys.exit(notebook.notebookapp.main())
  File "/opt/conda/lib/python3.6/site-packages/jupyter_core/application.py", line 266, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/opt/conda/lib/python3.6/site-packages/traitlets/config/application.py", line 657, in launch_instance
    app.initialize(argv)
  File "<decorator-gen-7>", line 2, in initialize
  File "/opt/conda/lib/python3.6/site-packages/traitlets/config/application.py", line 87, in catch_config_error
    return method(app, *args, **kwargs)
  File "/opt/conda/lib/python3.6/site-packages/notebook/notebookapp.py", line 1368, in initialize
    self.init_webapp()
  File "/opt/conda/lib/python3.6/site-packages/notebook/notebookapp.py", line 1161, in init_webapp
    self.jinja_environment_options
  File "/opt/conda/lib/python3.6/site-packages/notebook/notebookapp.py", line 154, in __init__
    base_url, default_url, settings_overrides, jinja_env_options)
  File "/opt/conda/lib/python3.6/site-packages/notebook/notebookapp.py", line 263, in init_settings
    nbextensions_path=jupyter_app.nbextensions_path,
  File "/opt/conda/lib/python3.6/site-packages/notebook/notebookapp.py", line 874, in nbextensions_path
    from IPython.paths import get_ipython_dir
  File "/opt/conda/lib/python3.6/site-packages/IPython/__init__.py", line 54, in <module>
    from .core.application import Application
  File "/opt/conda/lib/python3.6/site-packages/IPython/core/application.py", line 25, in <module>
    from IPython.core import release, crashhandler
  File "/opt/conda/lib/python3.6/site-packages/IPython/core/crashhandler.py", line 27, in <module>
    from IPython.core import ultratb
  File "/opt/conda/lib/python3.6/site-packages/IPython/core/ultratb.py", line 120, in <module>
    from IPython.utils import path as util_path
  File "/opt/conda/lib/python3.6/site-packages/IPython/utils/path.py", line 17, in <module>
    from IPython.utils.process import system
  File "/opt/conda/lib/python3.6/site-packages/IPython/utils/process.py", line 18, in <module>
    from ._process_posix import system, getoutput, arg_split, check_pid
  File "/opt/conda/lib/python3.6/site-packages/IPython/utils/_process_posix.py", line 23, in <module>
    import pexpect
ValueError: source code string cannot contain null bytes

Version of things

➜  ~ docker -v
Docker version 17.12.0-ce, build c97c6d6

➜  ~ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.13.3

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:Need InfoWe believe we need more information about an issue from the reporting user to help, debug, fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions