ydataai / ydata-profiling

1 Line of code data quality profiling & exploratory data analysis for Pandas and Spark DataFrames.
https://docs.profiling.ydata.ai
MIT License
12.52k stars 1.68k forks source link

AttributeError: module 'numba' has no attribute 'generated_jit' #1575

Open melvinkokxw opened 6 months ago

melvinkokxw commented 6 months ago

Current Behaviour

Trying to import ProfileReport (i.e. from ydata_profiling import ProfileReport) gives the error AttributeError: module 'numba' has no attribute 'generated_jit'.

Expected Behaviour

Import should happen without issues

Data Description

NA. Error is thrown before any dataset is used.

Code that reproduces the bug

from ydata_profiling import ProfileReport

pandas-profiling version

v4.7.0

Dependencies

ydata-profiling==4.7.0
numba==0.59.1

OS

macos

Checklist

melvinkokxw commented 6 months ago

generated_jit was removed in numba>=0.59.0. Temporary fix is to pin numba<=0.58.1.

ebachura commented 6 months ago

That works...unless you are on python 3.12, because you cannot install numba 0.58.1 on 3.12

filipeo2-mck commented 6 months ago

Setting minimal versions of numba and visions worked for me (for python 3.9):

# numba>=0.59.0 removed `numba.decorated_jit`
numba>=0.59.0
visions>=0.7.6

Edit: It looks like the above works if you are using pandas>=2.0. If pandas<2.0, these versions are working here:

numba<0.59.0
visions<0.7.6
Sweetea99 commented 5 months ago

any luck on this one? I still have same issue

muneer78 commented 5 months ago

Same here.

jmakov commented 4 months ago

And here. numba<=0.58.1 works as a tmp workaround for me.

Keshu2311 commented 3 months ago

any permanent fix found? as none of the above fixes are working for me.

jacquesfunk commented 3 months ago

I had to create a venv using Python 3.11 to get it to work.

adriens commented 3 weeks ago

facing the same issue on Kaggle / Python 3.12, any hint how to patch the install section ?

# data analysis
!pip install --upgrade ydata-profiling
!pip install -U ydata-profiling[notebook,unicode]
thierrymoudiki commented 6 days ago

Anything new on this, please?

thierrymoudiki commented 6 days ago

And here. numba<=0.58.1 works as a tmp workaround for me.

This is a working temporary solution

KansaiTraining commented 12 hours ago

Someone please post a complete workaround on this, since now the package is unusable