econ-ark / HARK

Heterogenous Agents Resources & toolKit
Apache License 2.0
315 stars 195 forks source link

ImportError: cannot import name 'generated_jit' from 'numba' #1382

Closed sbenthall closed 3 months ago

sbenthall commented 3 months ago

These errors are showing up on the continuous integration tests:

 ImportError: cannot import name 'generated_jit' from 'numba' (/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/numba/__init__.py)

What's going on? What depends on Numba?

alanlujan91 commented 3 months ago

AzureMachineLearning.ipynb which uses IndShockConsumerTypeFast. Not widely used and we could remove from code base until we figure out what's going on with numba.

DecayInterp.ipynb which uses interpolation.py. This might be required by @Mv77 and his JMP.

mnwhite commented 3 months ago

Alan thinks it's interpolation.py, which is not being maintained. I will go through and see where we're actually using that and see if it can be "unwound".

On Wed, Feb 7, 2024, 9:02 AM Sebastian Benthall @.***> wrote:

Assigned #1382 https://github.com/econ-ark/HARK/issues/1382 to @mnwhite https://github.com/mnwhite.

— Reply to this email directly, view it on GitHub https://github.com/econ-ark/HARK/issues/1382#event-11732892831, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADKRAFI3QBVE6P3U4V7F6GDYSOCP7AVCNFSM6AAAAABC54ITQ6VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRG4ZTEOBZGI4DGMI . You are receiving this because you were assigned.Message ID: @.***>

alanlujan91 commented 3 months ago

The errors are below. All these files use interpolation.py

ERROR HARK/ConsumptionSaving/tests/test_IndShockConsumerTypeFast.py
ERROR HARK/ConsumptionSaving/tests/test_PerfForesightFastConsumerType.py
ERROR HARK/tests/test_dcegm.py
ERROR HARK/tests/test_econforgeinterp.py
alanlujan91 commented 3 months ago

https://github.com/EconForge/interpolation.py/issues/110

Need to set numba < 0.59.0