hpparvi / PyTransit

Fast and easy exoplanet transit light curve modelling.
GNU General Public License v2.0
102 stars 24 forks source link

Roadrunner error on startup: "SystemError: initialization of _internal failed without raising an exception" #155

Closed jabienias closed 7 months ago

jabienias commented 7 months ago

I am trying to run roadrunnermodel on Windows 11 WSL, but on startup, I get the error message: "SystemError: initialization of _internal failed without raising an exception"

It appears to be connected with numba, but re-installing numba makes no difference.

Here is a screen shot of the whole error output:

RRModel issue

Thanks for any help!

John

hpparvi commented 7 months ago

Hi John,

This seems to be a dependency clash between numba and numpy. You can find some ways to fix this from:

https://github.com/openai/whisper/discussions/1103

https://stackoverflow.com/questions/74947992/how-to-remove-the-error-systemerror-initialization-of-internal-failed-without

Let me know if you get everything working.

Cheers, Hannu

jabienias commented 7 months ago

Thanks, Hannu. I tried some of the solutions suggested, but things only got worse, with me going round in circles trying to resolve conflicting version requirements (e.g. arviz must be version > 1.8.0 and < 1.8.0 at the same time). In the end I uninstalled and reinstalled pytransit, matplotlib, scipy and numpy, and then reinstalled arviz, coloret, celerite and corner, and that has fixed the problem. Cheers. John

hpparvi commented 7 months ago

Great to hear that you got it working! (and sorry to hear what trouble it was...) Let me know if you have any other issues using PyTransit with Windows. Everything in the code should be OS-independent, but I'm running the tests only in Linux.

Cheers, Hannu