Skip to content

Notebook example broken - Jupyter command jupyter-notebook not found. #13

@oscarnevarezleal

Description

@oscarnevarezleal

I stumbled into this error after run the notebook example.
Not sure exactly what is wrong.

Building Docker image from environment in cog.yaml...
$ docker buildx build --platform linux/amd64 --file - --build-arg BUILDKIT_INLINE_CACHE=1 --tag cog-notebook-base --progress auto .
[+] Building 1.5s (13/13) FINISHED
 => [internal] load build definition from Dockerfile                                                                                                                    0.0s
 => => transferring dockerfile: 590B                                                                                                                                    0.0s
 => [internal] load .dockerignore                                                                                                                                       0.0s
 => => transferring context: 2B                                                                                                                                         0.0s
 => resolve image config for docker.io/docker/dockerfile:1.2                                                                                                            0.4s
 => CACHED docker-image://docker.io/docker/dockerfile:1.2@sha256:e2a8561e419ab1ba6b2fe6cbdf49fd92b95912df1cf7d313c3e2230a333fdbcc                                       0.0s
 => [internal] load metadata for docker.io/library/python:3.9                                                                                                           0.4s
 => [internal] load build context                                                                                                                                       0.0s
 => => transferring context: 31.75kB                                                                                                                                    0.0s
 => [stage-0 1/5] FROM docker.io/library/python:3.9@sha256:475fe86ebf1da48ea27009a8f7d7e96231af4142de918a68010d48d0abb9c9c5                                             0.0s
 => CACHED [stage-0 2/5] COPY .cog/tmp/build3517166673/cog-0.0.1.dev-py3-none-any.whl /tmp/cog-0.0.1.dev-py3-none-any.whl                                               0.0s
 => CACHED [stage-0 3/5] RUN --mount=type=cache,target=/root/.cache/pip pip install /tmp/cog-0.0.1.dev-py3-none-any.whl                                                 0.0s
 => CACHED [stage-0 4/5] RUN --mount=type=cache,target=/root/.cache/pip pip install   jupyterlab==3.2.4                                                                 0.0s
 => CACHED [stage-0 5/5] WORKDIR /src                                                                                                                                   0.0s
 => exporting to image                                                                                                                                                  0.0s
 => => exporting layers                                                                                                                                                 0.0s
 => => writing image sha256:45a9ad9948b152eb756fb39d04d2adc6a74946793ad3828d8a90f0d1fedb7207                                                                            0.0s
 => => naming to docker.io/library/cog-notebook-base                                                                                                                    0.0s
 => exporting cache                                                                                                                                                     0.0s
 => => preparing build cache for export                                                                                                                                 0.0s

Running 'jupyter notebook --allow-root --ip=0.0.0.0' in Docker with the current directory mounted as a volume...
$ docker run --rm --shm-size 8G --interactive --publish 8888:8888 --tty --mount type=bind,source=/Users/onevarez/WebstormProjects/cog-examples/notebook,destination=/src --workdir /src cog-notebook-base jupyter notebook --allow-root --ip=0.0.0.0
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
usage: jupyter [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir] [--paths] [--json] [--debug] [subcommand]

Jupyter: Interactive Computing

positional arguments:
  subcommand     the subcommand to launch

optional arguments:
  -h, --help     show this help message and exit
  --version      show the versions of core jupyter packages and exit
  --config-dir   show Jupyter config dir
  --data-dir     show Jupyter data dir
  --runtime-dir  show Jupyter runtime dir
  --paths        show all Jupyter paths. Add --json for machine-readable format.
  --json         output paths as machine-readable json
  --debug        output debug information about paths

Available subcommands: dejavu execute kernel kernelspec lab labextension labhub migrate nbclassic nbconvert run server troubleshoot trust

Jupyter command `jupyter-notebook` not found.
ⅹ exit status 1

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