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

Trying to install nb_conda_kernels does not install jupyter server/notebook #285

Open
SuhasSrinivasan opened this issue Jan 4, 2025 · 0 comments

Comments

@SuhasSrinivasan
Copy link

SuhasSrinivasan commented Jan 4, 2025

Thank you for developing this package!

OS: Ubuntu 22.04.5 LTS
Conda: 24.11.1

Trying to install nb_conda_kernels in a new environment causes the below issue.

$ conda install nb_conda_kernels

Channels:
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/svasan/miniconda3/envs/jpnb

  added / updated specs:
    - nb_conda_kernels


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    jupyter_client-8.6.0       |  py313h06a4308_0         225 KB
    jupyter_core-5.7.2         |  py313h06a4308_0          91 KB
    libmpdec-4.0.0             |       h5eee18b_0          86 KB
    libsodium-1.0.18           |       h7b6447c_0         244 KB
    nb_conda_kernels-2.5.2     |  py313h06a4308_0          44 KB
    pip-24.2                   |  py313h06a4308_0         2.4 MB
    platformdirs-3.10.0        |  py313h06a4308_0          38 KB
    psutil-5.9.0               |  py313h5eee18b_0         458 KB
    python-3.13.1              |hf623796_100_cp313        36.1 MB
    python-dateutil-2.9.0post0 |  py313h06a4308_2         306 KB
    python_abi-3.13            |          0_cp313           6 KB
    pyzmq-26.2.0               |  py313h6a678d5_0         393 KB
    setuptools-75.1.0          |  py313h06a4308_0         1.9 MB
    six-1.16.0                 |     pyhd3eb1b0_1          18 KB
    tornado-6.4.2              |  py313h5eee18b_0         822 KB
    traitlets-5.14.3           |  py313h06a4308_0         211 KB
    wheel-0.44.0               |  py313h06a4308_0         138 KB
    zeromq-4.3.5               |       h6a678d5_0         366 KB
    ------------------------------------------------------------
                                           Total:        43.8 MB

The following NEW packages will be INSTALLED:

  _libgcc_mutex      pkgs/main/linux-64::_libgcc_mutex-0.1-main
  _openmp_mutex      pkgs/main/linux-64::_openmp_mutex-5.1-1_gnu
  bzip2              pkgs/main/linux-64::bzip2-1.0.8-h5eee18b_6
  ca-certificates    pkgs/main/linux-64::ca-certificates-2024.11.26-h06a4308_0
  expat              pkgs/main/linux-64::expat-2.6.4-h6a678d5_0
  jupyter_client     pkgs/main/linux-64::jupyter_client-8.6.0-py313h06a4308_0
  jupyter_core       pkgs/main/linux-64::jupyter_core-5.7.2-py313h06a4308_0
  ld_impl_linux-64   pkgs/main/linux-64::ld_impl_linux-64-2.40-h12ee557_0
  libffi             pkgs/main/linux-64::libffi-3.4.4-h6a678d5_1
  libgcc-ng          pkgs/main/linux-64::libgcc-ng-11.2.0-h1234567_1
  libgomp            pkgs/main/linux-64::libgomp-11.2.0-h1234567_1
  libmpdec           pkgs/main/linux-64::libmpdec-4.0.0-h5eee18b_0
  libsodium          pkgs/main/linux-64::libsodium-1.0.18-h7b6447c_0
  libstdcxx-ng       pkgs/main/linux-64::libstdcxx-ng-11.2.0-h1234567_1
  libuuid            pkgs/main/linux-64::libuuid-1.41.5-h5eee18b_0
  nb_conda_kernels   pkgs/main/linux-64::nb_conda_kernels-2.5.2-py313h06a4308_0
  ncurses            pkgs/main/linux-64::ncurses-6.4-h6a678d5_0
  openssl            pkgs/main/linux-64::openssl-3.0.15-h5eee18b_0
  pip                pkgs/main/linux-64::pip-24.2-py313h06a4308_0
  platformdirs       pkgs/main/linux-64::platformdirs-3.10.0-py313h06a4308_0
  psutil             pkgs/main/linux-64::psutil-5.9.0-py313h5eee18b_0
  python             pkgs/main/linux-64::python-3.13.1-hf623796_100_cp313
  python-dateutil    pkgs/main/linux-64::python-dateutil-2.9.0post0-py313h06a4308_2
  python_abi         pkgs/main/linux-64::python_abi-3.13-0_cp313
  pyzmq              pkgs/main/linux-64::pyzmq-26.2.0-py313h6a678d5_0
  readline           pkgs/main/linux-64::readline-8.2-h5eee18b_0
  setuptools         pkgs/main/linux-64::setuptools-75.1.0-py313h06a4308_0
  six                pkgs/main/noarch::six-1.16.0-pyhd3eb1b0_1
  sqlite             pkgs/main/linux-64::sqlite-3.45.3-h5eee18b_0
  tk                 pkgs/main/linux-64::tk-8.6.14-h39e8969_0
  tornado            pkgs/main/linux-64::tornado-6.4.2-py313h5eee18b_0
  traitlets          pkgs/main/linux-64::traitlets-5.14.3-py313h06a4308_0
  tzdata             pkgs/main/noarch::tzdata-2024b-h04d1e81_0
  wheel              pkgs/main/linux-64::wheel-0.44.0-py313h06a4308_0
  xz                 pkgs/main/linux-64::xz-5.4.6-h5eee18b_1
  zeromq             pkgs/main/linux-64::zeromq-4.3.5-h6a678d5_0
  zlib               pkgs/main/linux-64::zlib-1.2.13-h5eee18b_1


Proceed ([y]/n)? y


Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: done
Executing transaction: | Traceback (most recent call last):
  File "/home/svasan/miniconda3/envs/jpnb/lib/python3.13/site-packages/nb_conda_kernels/install.py", line 17, in <module>
    from jupyter_server.config_manager import BaseJSONConfigManager
ModuleNotFoundError: No module named 'jupyter_server'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/svasan/miniconda3/envs/jpnb/lib/python3.13/site-packages/nb_conda_kernels/install.py", line 20, in <module>
    from notebook.config_manager import BaseJSONConfigManager
ModuleNotFoundError: No module named 'notebook'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/svasan/miniconda3/envs/jpnb/lib/python3.13/site-packages/nb_conda_kernels/install.py", line 22, in <module>
    raise ImportError("Must have notebook>=5.3 or jupyter_server installed")
ImportError: Must have notebook>=5.3 or jupyter_server installed

done
ERROR conda.core.link:_execute(938): An error occurred while installing package 'defaults::nb_conda_kernels-2.5.2-py313h06a4308_0'.
Rolling back transaction: done

LinkError: post-link script failed for package defaults::nb_conda_kernels-2.5.2-py313h06a4308_0
location of failed script: /home/svasan/miniconda3/envs/jpnb/bin/.nb_conda_kernels-post-link.sh
==> script messages <==
Traceback (most recent call last):
  File "/home/svasan/miniconda3/envs/jpnb/lib/python3.13/site-packages/nb_conda_kernels/install.py", line 17, in <module>
    from jupyter_server.config_manager import BaseJSONConfigManager
ModuleNotFoundError: No module named 'jupyter_server'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/svasan/miniconda3/envs/jpnb/lib/python3.13/site-packages/nb_conda_kernels/install.py", line 20, in <module>
    from notebook.config_manager import BaseJSONConfigManager
ModuleNotFoundError: No module named 'notebook'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/svasan/miniconda3/envs/jpnb/lib/python3.13/site-packages/nb_conda_kernels/install.py", line 22, in <module>
    raise ImportError("Must have notebook>=5.3 or jupyter_server installed")
ImportError: Must have notebook>=5.3 or jupyter_server installed

==> script output <==
stdout:
stderr:
return code: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant