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

Regarding ModuleNotFoundError: No module named 'gluonts.distribution' #1575

Closed
wenouyang opened this issue Jun 21, 2021 · 6 comments
Closed

Comments

@wenouyang
Copy link

When trying to import distribution as

`from gluonts.distribution.neg_binomial import NegativeBinomialOutput

`
The following error message is generated

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-13-21482f50f8f5> in <module>
----> 1 from gluonts.distribution.neg_binomial import NegativeBinomialOutput

ModuleNotFoundError: No module named 'gluonts.distribution'

from gluonts.distribution.neg_binomial import NegativeBinomialOutput
from gluonts.model.deepar import DeepAREstimator
@wenouyang wenouyang added the bug Something isn't working label Jun 21, 2021
@lostella
Copy link
Contributor

@wenouyang where did you find such an import path? You should be doing

from gluonts.mx.distribution.neg_binomial import NegativeBinomialOutput

@lostella lostella removed the bug Something isn't working label Jun 21, 2021
@wenouyang
Copy link
Author

@lostella , thanks for the response, I was trying to test the code listed here
https://www.kaggle.com/steverab/m5-forecasting-competition-gluonts-template

Is that due to the version update of Gluonts? Thanks.

@wenouyang
Copy link
Author

The issue is solved.

@lostella
Copy link
Contributor

Is that due to the version update of Gluonts? Thanks.

Yes, exactly, there has been some reorganization of the package structure, sorry for the inconvenience :-)

This came with the 0.7.0 release, see the notes
You can also check #1183 to see exactly what moved where

@AbhayGoyal
Copy link

hi, I am still getting this issue, what is the correct path for it?

@Dittonal
Copy link

maybe try python3.7

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

No branches or pull requests

4 participants