timothydmorton / isochrones

Pythonic stellar model grid access; easy MCMC fitting of stellar properties
http://isochrones.readthedocs.org
MIT License
120 stars 62 forks source link

NameError: name 'unsafe_empty_inferred' is not defined #182

Open KarelTemmink opened 1 year ago

KarelTemmink commented 1 year ago

After installing isochrones, I tried to replicate the example bolometric correction calculations. However, after executing

`from isochrones.mist.bc import MISTBolometricCorrectionGrid

bc_grid = MISTBolometricCorrectionGrid(['J', 'H', 'K', 'G', 'BP', 'RP', 'g', 'r', 'i']) bc_grid.interp([5770, 4.44, 0.0, 0.], ['G', 'K'])`

I got the following error:

numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend) NameError: name 'unsafe_empty_inferred' is not defined

I would be very grateful for any help resolving this issue.

acnine commented 1 year ago

I got the same error, turns out it's a bug in numba version 0.57.0: https://github.com/numba/numba/pull/8958

Try running pip install numba --upgrade in your isochrones environment, that should resolve the error.