Skip to content

Conda environment creation fails due to notebook version incompatibilities #107

@sdittmeier

Description

@sdittmeier

Hello!

When doing a fresh clone of the repository and creating the conda environment following the instructions with

conda env create -f environment.yml

the environment cannot be created and it crashes (trace see below). There seems to be some incompatibilites with jupyter notebook versions >7.
I could succesfully create the environment by fixing the version of notebook in the .yml
- notebook<=6.5.3

Cheers,
Sebastian


Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: done
Executing transaction: |
/

  • Traceback (most recent call last):
    File "/home/sebastian/.conda/envs/hls4ml-tutorial/lib/python3.10/site-packages/jupyter_contrib_core/notebook_compat/nbextensions.py", line 6, in
    from notebook.extensions import BaseExtensionApp
    ModuleNotFoundError: No module named 'notebook.extensions'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/sebastian/.conda/envs/hls4ml-tutorial/lib/python3.10/site-packages/jupyter_contrib_core/notebook_compat/nbextensions.py", line 10, in
from notebook.nbextensions import BaseNBExtensionApp
ModuleNotFoundError: No module named 'notebook.nbextensions'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "/home/sebastian/.conda/envs/hls4ml-tutorial/lib/python3.10/site-packages/jupyter_contrib_core/notebook_compat/nbextensions.py", line 12, in
from ._compat.nbextensions import BaseNBExtensionApp
File "/home/sebastian/.conda/envs/hls4ml-tutorial/lib/python3.10/site-packages/jupyter_contrib_core/notebook_compat/_compat/nbextensions.py", line 35, in
from notebook.nbextensions import (
ModuleNotFoundError: No module named 'notebook.nbextensions'

/ Traceback (most recent call last):
File "/home/sebastian/.conda/envs/hls4ml-tutorial/lib/python3.10/site-packages/jupyter_contrib_core/notebook_compat/nbextensions.py", line 6, in
from notebook.extensions import BaseExtensionApp
ModuleNotFoundError: No module named 'notebook.extensions'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/sebastian/.conda/envs/hls4ml-tutorial/lib/python3.10/site-packages/jupyter_contrib_core/notebook_compat/nbextensions.py", line 10, in
from notebook.nbextensions import BaseNBExtensionApp
ModuleNotFoundError: No module named 'notebook.nbextensions'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "/home/sebastian/.conda/envs/hls4ml-tutorial/lib/python3.10/site-packages/jupyter_contrib_core/notebook_compat/nbextensions.py", line 12, in
from ._compat.nbextensions import BaseNBExtensionApp
File "/home/sebastian/.conda/envs/hls4ml-tutorial/lib/python3.10/site-packages/jupyter_contrib_core/notebook_compat/_compat/nbextensions.py", line 35, in
from notebook.nbextensions import (
ModuleNotFoundError: No module named 'notebook.nbextensions'

| Traceback (most recent call last):
File "/home/sebastian/.conda/envs/hls4ml-tutorial/bin/jupyter-nbextensions_configurator", line 6, in
from jupyter_nbextensions_configurator.application import main
File "/home/sebastian/.conda/envs/hls4ml-tutorial/lib/python3.10/site-packages/jupyter_nbextensions_configurator/init.py", line 18, in
from notebook.base.handlers import APIHandler, IPythonHandler
ModuleNotFoundError: No module named 'notebook.base'

/ Traceback (most recent call last):
File "/home/sebastian/.conda/envs/hls4ml-tutorial/lib/python3.10/site-packages/jupyter_contrib_core/notebook_compat/nbextensions.py", line 6, in
from notebook.extensions import BaseExtensionApp
ModuleNotFoundError: No module named 'notebook.extensions'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/sebastian/.conda/envs/hls4ml-tutorial/lib/python3.10/site-packages/jupyter_contrib_core/notebook_compat/nbextensions.py", line 10, in
from notebook.nbextensions import BaseNBExtensionApp
ModuleNotFoundError: No module named 'notebook.nbextensions'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/sebastian/.conda/envs/hls4ml-tutorial/bin/jupyter-contrib-nbextension", line 6, in
from jupyter_contrib_nbextensions.application import main
File "/home/sebastian/.conda/envs/hls4ml-tutorial/lib/python3.10/site-packages/jupyter_contrib_nbextensions/application.py", line 7, in
from jupyter_contrib_core.notebook_compat.nbextensions import ArgumentConflict
File "/home/sebastian/.conda/envs/hls4ml-tutorial/lib/python3.10/site-packages/jupyter_contrib_core/notebook_compat/nbextensions.py", line 12, in
from ._compat.nbextensions import BaseNBExtensionApp
File "/home/sebastian/.conda/envs/hls4ml-tutorial/lib/python3.10/site-packages/jupyter_contrib_core/notebook_compat/_compat/nbextensions.py", line 35, in
from notebook.nbextensions import (
ModuleNotFoundError: No module named 'notebook.nbextensions'

done
ERROR conda.core.link:_execute(1029): An error occurred while installing package 'conda-forge::jupyter_highlight_selected_word-0.2.0-py310hff52083_1005'.
Rolling back transaction: done

LinkError: post-link script failed for package conda-forge::jupyter_highlight_selected_word-0.2.0-py310hff52083_1005
location of failed script: /home/sebastian/.conda/envs/hls4ml-tutorial/bin/.jupyter_highlight_selected_word-post-link.sh
==> script messages <==
Traceback (most recent call last):
File "/home/sebastian/.conda/envs/hls4ml-tutorial/lib/python3.10/site-packages/jupyter_contrib_core/notebook_compat/nbextensions.py", line 6, in
from notebook.extensions import BaseExtensionApp
ModuleNotFoundError: No module named 'notebook.extensions'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/sebastian/.conda/envs/hls4ml-tutorial/lib/python3.10/site-packages/jupyter_contrib_core/notebook_compat/nbextensions.py", line 10, in
from notebook.nbextensions import BaseNBExtensionApp
ModuleNotFoundError: No module named 'notebook.nbextensions'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "/home/sebastian/.conda/envs/hls4ml-tutorial/lib/python3.10/site-packages/jupyter_contrib_core/notebook_compat/nbextensions.py", line 12, in
from ._compat.nbextensions import BaseNBExtensionApp
File "/home/sebastian/.conda/envs/hls4ml-tutorial/lib/python3.10/site-packages/jupyter_contrib_core/notebook_compat/_compat/nbextensions.py", line 35, in
from notebook.nbextensions import (
ModuleNotFoundError: No module named 'notebook.nbextensions'

==> script output <==
stdout:
stderr:
return code: 1

()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions