Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'gluonts.torch.modules.distribution_output' #105

Closed
kousu opened this issue Jul 29, 2022 · 5 comments · Fixed by #106
Closed

ModuleNotFoundError: No module named 'gluonts.torch.modules.distribution_output' #105

kousu opened this issue Jul 29, 2022 · 5 comments · Fixed by #106

Comments

@kousu
Copy link
Contributor

kousu commented Jul 29, 2022

I did pip install pytorchts (getting version 0.6.0) then tried to run the code in README.md but I got

Traceback (most recent call last):
  File "/home/kousu/src/ml/./pts-demo.py", line 12, in <module>
    from pts.model.deepar import DeepAREstimator
  File "/home/kousu/.local/lib/python3.10/site-packages/pts/model/deepar/__init__.py", line 1, in <module>
    from .deepar_estimator import DeepAREstimator
  File "/home/kousu/.local/lib/python3.10/site-packages/pts/model/deepar/deepar_estimator.py", line 31, in <module>
    from gluonts.torch.modules.distribution_output import DistributionOutput
ModuleNotFoundError: No module named 'gluonts.torch.modules.distribution_output'

It looks like gluonts has rearranged some things (and even more since that thread).

@kashif
Copy link
Collaborator

kashif commented Jul 29, 2022

i see let me fix up the imports for the latest gluonts

@kousu
Copy link
Contributor Author

kousu commented Jul 29, 2022

Thank you :)

I did by best in #106 but I probably missed a bunch.

@AbhayGoyal
Copy link

Hey, there still seems to be an issue. I was running once of the example scripts and I get the following error. Could someone help me with it?

ModuleNotFoundError: No module named 'gluonts.torch.modules.distribution_output'

@Johnreidsilver
Copy link

Just ran into this problem too, you have to uninstall pytorchts and then reinstall from github:

pip3 uninstall pytorchts
pip3 install git+https://github.com/zalandoresearch/pytorch-ts@master

@kashif
Copy link
Collaborator

kashif commented Apr 20, 2023

@AbhayGoyal i am working on updates in the 0.7.0 branch if you want to test them... there these issues are fixed I believe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants