ydata-profiling
ydata-profiling copied to clipboard
cannot import name 'soft_unicode' from 'markupsafe'
Current Behaviour
Used colab with 3.2.0
!pip install pandas-profiling==3.2.0
import numpy as np
import pandas as pd
from pandas_profiling import ProfileReport
df = pd.DataFrame(np.random.rand(100, 5), columns=["a", "b", "c", "d", "e"])
it shows ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/usr/local/lib/python3.7/dist-packages/markupsafe/init.py)
Expected Behaviour
no error
Data Description
None
Code that reproduces the bug
!pip install pandas-profiling==3.2.0
import numpy as np
import pandas as pd
from pandas_profiling import ProfileReport
df = pd.DataFrame(np.random.rand(100, 5), columns=["a", "b", "c", "d", "e"])
pandas-profiling version
2.3.0
Dependencies
markupsafe==2.0.1
OS
Mac
Checklist
- [X] There is not yet another bug report for this issue in the issue tracker
- [X] The problem is reproducible from this bug report. This guide can help to craft a minimal bug report.
- [X] The issue has not been resolved by the entries listed under Common Issues.
There's discussion about this online - looks like a breaking change was introduced in markupsafe. Downgrading to markupsafe==2.0.1 seems to be the fix for now.
@DaiZack can you please confirm if the behavior remains with the latest version pandasprofiling==3.3.0
Yes, it works! Thank you.
Closing the issue! :)