Skip to content

ImportError: cannot import name 'soft_unicode' from 'markupsafe'  #1593

@pllim

Description

@pllim
2022-02-18T13:55:12.9961209Z           from jinja2 import Environment, FileSystemLoader
2022-02-18T13:55:12.9962165Z         File ".../python3.9/site-packages/jinja2/__init__.py", line 33, in <module>
2022-02-18T13:55:12.9962690Z           from jinja2.environment import Environment, Template
2022-02-18T13:55:13.0123423Z         File ".../python3.9/site-packages/jinja2/environment.py", line 15, in <module>
2022-02-18T13:55:13.0124029Z           from jinja2 import nodes
2022-02-18T13:55:13.0124565Z         File ".../python3.9/site-packages/jinja2/nodes.py", line 19, in <module>
2022-02-18T13:55:13.0124932Z           from jinja2.utils import Markup
2022-02-18T13:55:13.0125450Z         File ".../jinja2/utils.py", line 642, in <module>
2022-02-18T13:55:13.0125825Z           from markupsafe import Markup, escape, soft_unicode
2022-02-18T13:55:13.0126431Z       ImportError: cannot import name 'soft_unicode' from 'markupsafe' .../python3.9/site-packages/markupsafe/__init__.py)

From: https://github.com/astropy/astrowidgets/runs/5248500732?check_suite_focus=true

Might be caused by problem mentioned in aws/aws-sam-cli#3661 (comment)

Environment:

  • Python version: 3.9
  • Jinja version: Log didn't say, probably your latest stable release

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