flow-forecast icon indicating copy to clipboard operation
flow-forecast copied to clipboard

Dependency issues Numba and Numpy

Open ssvenoe opened this issue 2 years ago • 1 comments

Error message when importing train function

SystemError Traceback (most recent call last)

  1 import pandas as pd 
  2 import datetime as datetime

----> 3 from flood_forecast.trainer import train_function 4 import wandb 5 import os

... from numba.np.ufunc import _internal from numba.np.ufunc.parallel import ParallelUFuncBuilder, ParallelGUFuncBuilder from numba.core.registry import DelayedRegistry

SystemError: initialization of _internal failed without raising an exception

Tried several configurations of numpy (1.23.5 and 1.23.0 and 1.22.5) and numba (0.56.4) due to following issue reported on numba https://github.com/numba/numba/issues/8718 which did not solve the problem. Thinking an update to the requirements.txt might fix the issue.

Using python 3.8.15

ssvenoe avatar Jan 23 '23 10:01 ssvenoe

We've tested on Python 3.10 and newer (that is what our CI is on). It might be related to Python 3.8 issues would be my guess

isaacmg avatar Jan 26 '23 19:01 isaacmg