Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
melvinkokxw opened this issue Apr 15, 2024 · 12 comments
Open
3 tasks done

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

melvinkokxw opened this issue Apr 15, 2024 · 12 comments

Comments

@melvinkokxw
Copy link

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.
@melvinkokxw
Copy link
Author

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

@ebachura
Copy link

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

@filipeo2-mck
Copy link

filipeo2-mck commented May 6, 2024

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
Copy link

any luck on this one? I still have same issue

@muneer78
Copy link

Same here.

@jmakov
Copy link

jmakov commented Jun 17, 2024

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

@Keshu2311
Copy link

Keshu2311 commented Jul 29, 2024

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

@jacquesfunk
Copy link

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

@adriens
Copy link

adriens commented Oct 16, 2024

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
Copy link

Anything new on this, please?

@thierrymoudiki
Copy link

thierrymoudiki commented Nov 2, 2024

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

This is a working temporary solution

@KansaiTraining
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests