QData / spacetimeformer

Multivariate Time Series Forecasting with efficient Transformers. Code for the paper "Long-Range Transformers for Dynamic Spatiotemporal Forecasting."
https://arxiv.org/abs/2109.12218
MIT License
808 stars 191 forks source link

Module pytorch_lightning not found #72

Open emregucerr opened 1 year ago

emregucerr commented 1 year ago

I know it's stated that the training process runs on an outdated version of lightning and torchmetrics, but I couldn't find a way to run it using any of the older versions of lightning. Is there a way to fix this issue below?

Traceback (most recent call last):
  File "train.py", line 8, in <module>
    import pytorch_lightning as pl
ModuleNotFoundError: No module named 'pytorch_lightning'

Any help is much appreciated.

pooyakalahroodi commented 1 year ago

Most probably, you have not installed the pytorch_lightning. Possibly, there is a version conflict that prevents you from running the installation of the requirements successfully. I have noticed that pystan version in the requirement file has a conflict with another package, so it stops running the script for the rest of the packages. delete pystan from the requirement file and run it again.