ydata-profiling: AttributeError: module 'numba' has no attribute 'generated_jit'

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

  • There is not yet another bug report for this issue in the issue tracker
  • The problem is reproducible from this bug report. This guide can help to craft a minimal bug report.
  • The issue has not been resolved by the entries listed under Common Issues.

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 5
  • Comments: 15

Most upvoted comments

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

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

I tried to install numba-0.58.1 and now I got a different error: cannot import name ‘display’ from ‘IPython.core.display’ on File ~\Documents\anaconda3\envs\CURSO_ML\Lib\site-packages\ydata_profiling\profile_report.py:508

😦

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

any luck on this one? I still have same issue

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