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 · 5 comments
Open
3 tasks done

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

melvinkokxw opened this issue Apr 15, 2024 · 5 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.

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

6 participants