sfu-db / dataprep

Open-source low code data preparation library in python. Collect, clean and visualization your data in python with a few lines of code.
http://dataprep.ai
MIT License
2.03k stars 204 forks source link

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

Open waseemofficial opened 11 months ago

waseemofficial commented 11 months ago

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):

tommyvct commented 4 months ago

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 commented 4 months ago

Downgrade markupsafe to 2.0.1 gives np.bool deprecation error.