ydata-profiling icon indicating copy to clipboard operation
ydata-profiling copied to clipboard

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

Open melvinkokxw opened this issue 10 months ago • 9 comments

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

  • [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.

melvinkokxw avatar Apr 15 '24 00:04 melvinkokxw

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

melvinkokxw avatar Apr 15 '24 00:04 melvinkokxw

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

ebachura avatar Apr 27 '24 01:04 ebachura

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

filipeo2-mck avatar May 06 '24 11:05 filipeo2-mck

any luck on this one? I still have same issue

Sweetea99 avatar May 17 '24 19:05 Sweetea99

Same here.

muneer78 avatar May 17 '24 19:05 muneer78

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

jmakov avatar Jun 17 '24 11:06 jmakov

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

Keshu2311 avatar Jul 29 '24 13:07 Keshu2311

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

jacquesfunk avatar Aug 06 '24 15:08 jacquesfunk