google-research / timesfm

TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.
https://research.google/blog/a-decoder-only-foundation-model-for-time-series-forecasting/
Apache License 2.0
3.02k stars 228 forks source link

circular import #54

Open UP61 opened 1 month ago

UP61 commented 1 month ago

(tfm_env) root@debian:~/timesfm# python timesfm.py Traceback (most recent call last): File "/root/timesfm/timesfm.py", line 7, in from timesfm import TimesFm File "/root/timesfm/timesfm.py", line 7, in from timesfm import TimesFm ImportError: cannot import name 'TimesFm' from partially initialized module 'timesfm' (most likely due to a circular import) (/root/timesfm/timesfm.py)


Iuse this code: https://github.com/lhw828/timesfm/blob/main/timesfm.py

ismailsimsek commented 1 month ago

Pinning jax and jaxlib to same version solved it for me

jax==0.4.28
jaxlib==0.4.28

https://github.com/google/jax/discussions/14036#discussioncomment-4710051