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

cannot import name 'soft_unicode' from 'markupsafe' #976

Open
waseemofficial opened this issue Oct 31, 2023 · 2 comments
Open

cannot import name 'soft_unicode' from 'markupsafe' #976

waseemofficial opened this issue Oct 31, 2023 · 2 comments
Assignees
Labels
type: bug Something isn't working

Comments

@waseemofficial
Copy link

cannot import name 'soft_unicode' from 'markupsafe'

To Reproduce
from dataprep.eda import plot, plot_correlation, plot_missing, plot_diff,create_report
Or:

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows

  • Platform VSCode , .ipynb

dataprep 0.4.1 requires flask<2.0.0,>=1.1.4, but you have flask 3.0.0 which is incompatible.
dataprep 0.4.1 requires jinja2<3.0,>=2.11, but you have jinja2 3.1.2 which is incompatible.
Successfully installed Werkzeug-3.0.1 blinker-1.6.3 click-8.1.7 flask-3.0.0 itsdangerous-2.1.2
@waseemofficial waseemofficial added the type: bug Something isn't working label Oct 31, 2023
@tommyvct
Copy link

tommyvct commented May 17, 2024

According to
https://stackoverflow.com/questions/72191560/importerror-cannot-import-name-soft-unicode-from-markupsafe, soft_unicode was removed since version 2.0.1 of markupsafe.

jinja2 is the culprit. The latest version of jinja2 as of now is 3.1.4, but both flask and dataprep want an old version of lower than 3.

@tommyvct
Copy link

Downgrade markupsafe to 2.0.1 gives np.bool deprecation error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants