EconForge / interpolation.py

BSD 2-Clause "Simplified" License
123 stars 35 forks source link

Failing to import jitclass from numba #80

Closed TheBobby closed 3 years ago

TheBobby commented 3 years ago

Just to let you know

When importing eval_linear from splines : from interpolation.splines import eval_linear an ImportError is raised:

ImportError: cannot import name 'jitclass' from 'numba' (/usr/local/lib/python3.7/site-packages/numba/init.py)

I learned from the numba github that jitclass has been moved to numba.experimental : https://github.com/numba/numba/issues/4638

Changing the corresponding line (line 3 in __init__.py) to from numba.experimental import jitclass fixed it for me.

Thanks!

albop commented 3 years ago

Thank you, @TheBobby . Actually, jitclass is not used in the code anymore. Bug was fixed a while ago in master. I"m updating the packages on pypi and conda-forge

albop commented 3 years ago

This is now fixed in master and released.