zalandoresearch / pytorch-ts

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

gluonts version (No module named 'gluonts.torch.modules.distribution_output') #138

Open shuaih97 opened 1 year ago

shuaih97 commented 1 year ago

Hi, I have found a error related to gluonts version and have fixed that.

When I ran the code from pts.modules import StudentTOutput, NormalOutput, there was an error: ModuleNotFoundError: No module named 'gluonts.torch.modules.distribution_output'

I checked the version of gluonts in the github https://github.com/awslabs/gluonts/releases, and have found that starting version 0.10.0, the distribution_output was moved out of the src/glunonts/torch/modules folder (0.9.6 version still has it), so I think the pts code needs update, or we can install a lower version of gluonts.

kashif commented 1 year ago

yes i am updating the models in the 0.7.0 branch... can you kindly check there?

shuaih97 commented 1 year ago

I think that works. Thank you!

vpozdnyakov commented 10 months ago

when I run pip install git+https://github.com/zalandoresearch/pytorch-ts.git@version-0.7.0 it says

  error: subprocess-exited-with-error

  × Building wheel for safetensors (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [25 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-10.9-x86_64-cpython-39
      creating build/lib.macosx-10.9-x86_64-cpython-39/safetensors
      copying py_src/safetensors/paddle.py -> build/lib.macosx-10.9-x86_64-cpython-39/safetensors
      copying py_src/safetensors/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-39/safetensors
      copying py_src/safetensors/numpy.py -> build/lib.macosx-10.9-x86_64-cpython-39/safetensors
      copying py_src/safetensors/tensorflow.py -> build/lib.macosx-10.9-x86_64-cpython-39/safetensors
      copying py_src/safetensors/torch.py -> build/lib.macosx-10.9-x86_64-cpython-39/safetensors
      copying py_src/safetensors/flax.py -> build/lib.macosx-10.9-x86_64-cpython-39/safetensors
      running build_ext
      running build_rust
      error: can't find Rust compiler