zalandoresearch / pytorch-ts

PyTorch based Probabilistic Time Series forecasting framework based on GluonTS backend
MIT License
1.21k stars 191 forks source link

Import fails, No module named 'gluonts.support' #97

Closed slaweks17 closed 2 years ago

slaweks17 commented 2 years ago

When trying to run Implicit-Quantile-Network-Example notebook, import fails

ModuleNotFoundError Traceback (most recent call last)

in 6 from gluonts.evaluation.backtest import make_evaluation_predictions 7 ----> 8 from pts.model.deepar import DeepAREstimator 9 from pts.modules.distribution_output import ImplicitQuantileOutput 10 from pts import Trainer C:\progs2\Anaconda3\envs\pytorch110\lib\site-packages\pts\model\__init__.py in 1 from .utils import get_module_forward_input_names, weighted_average ----> 2 from .estimator import PyTorchEstimator C:\progs2\Anaconda3\envs\pytorch110\lib\site-packages\pts\model\estimator.py in 15 from gluonts.torch.model.predictor import PyTorchPredictor 16 from gluonts.transform import SelectFields, Transformation ---> 17 from gluonts.support.util import maybe_len 18 19 from pts import Trainer ModuleNotFoundError: No module named 'gluonts.support' I have just installed it on Pytorch 1.10, Windows.
kashif commented 2 years ago

So sorry @slaweks17 I have pushed a new version of pytorch-ts on pypi so if you can kindly update, it should work.