Skip to content

New release? Jupyter-lab broken with pinned Jinja2 #87

Closed
@matthew-brett

Description

@matthew-brett

Would you consider making a new release?

I just pip-installed Dicom_parser, and JupyterLab, and this gave me a broken JupyterLab:

$ mkvirtualenv test
$ pip install jupyterlab
$ pip install dicom_parser

This ends with output:

Installing collected packages: numpy, pydicom, pandas, nibabel, jinja2, dicom-parser
  Attempting uninstall: jinja2
    Found existing installation: Jinja2 3.0.3
    Uninstalling Jinja2-3.0.3:
      Successfully uninstalled Jinja2-3.0.3
Successfully installed dicom-parser-1.1.1 jinja2-2.11.3 nibabel-3.2.2 numpy-1.22.2 pandas-1.4.1 pydicom-2.1.2

Notice the downgrade of Jinja. Next:

$ jupyter-lab

Gives:

[snip]
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/Volumes/zorg/mb312/.virtualenvs/test/lib/python3.8/site-packages/markupsafe/__init__.py)

Web search gives this thread, which suggests:

pip install -U jinja2

Sure enough, this fixes it.

Repeating these steps, but installing from latest Master locally, does not downgrade Jinja2, and does not cause this error.

Maybe a new release would prevent this error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions