AIStream-Peelout / flow-forecast

Deep learning PyTorch library for time series forecasting, classification, and anomaly detection (originally for flood forecasting).
https://flow-forecast.atlassian.net/wiki/spaces/FF/overview
GNU General Public License v3.0
2k stars 290 forks source link

Dependency issues Numba and Numpy #629

Open ssvenoe opened 1 year ago

ssvenoe commented 1 year ago

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

isaacmg commented 1 year ago

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