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

Error when importing the AutomatedModel package in Google Colab #11

Open
jtfields opened this issue Apr 23, 2020 · 5 comments
Open

Error when importing the AutomatedModel package in Google Colab #11

jtfields opened this issue Apr 23, 2020 · 5 comments

Comments

@jtfields
Copy link

I followed the steps in the Google Colab notebook and restarted the runtime after installing the package. However, I'm receiving the message below when I try to import AutomatedModel. Any suggestions for how to fix this?

from atspy import AutomatedModel

TypeError Traceback (most recent call last)
in ()
----> 1 from atspy import AutomatedModel

7 frames
/usr/local/lib/python3.6/dist-packages/pydantic/main.cpython-36m-x86_64-linux-gnu.so in pydantic.main.create_model()

TypeError: create_model() takes exactly 1 positional argument (0 given)

@stefanosh
Copy link

stefanosh commented Apr 23, 2020

I'm having the same issue today as well. (~2 weeks ago I was using it without such problem)

@firmai
Copy link
Owner

firmai commented Apr 23, 2020

Thanks, seem like there has been a change to an upstream package used by gluonts called pydantic. You can add this to your colab !pip install pydantic==1.4, I have also patched the package, it should work now.

@stefanosh
Copy link

I can confirm it works now. Thanks!

@jtfields
Copy link
Author

Yes, thank you for the quick response. Many in my Big Data Analytics class at Syracuse will use AtsPy for our next time series lab.

@Pesssy
Copy link

Pesssy commented Sep 6, 2022

I followed the steps in the Google Colab notebook and restarted the runtime after installing the package. However, I'm receiving the message below when I try to import AutomatedModel

I also installed ran this command !pip install pydantic==1.4, and i am getting the message

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
thinc 8.1.0 requires pydantic!=1.8,!=1.8.1,<1.10.0,>=1.7.4, but you have pydantic 1.4 which is incompatible.
spacy 3.4.1 requires pydantic!=1.8,!=1.8.1,<1.10.0,>=1.7.4, but you have pydantic 1.4 which is incompatible.
fastai 2.7.9 requires torch<1.14,>=1.7, but you have torch 1.4.0 which is incompatible.
fastai 2.7.9 requires torchvision>=0.8.2, but you have torchvision 0.5.0 which is incompatible.
Successfully installed pydantic-1.4

i also encountered the ModuleNotFoundError upon implementing the from atspy import AutomatedModel

I will appreciate your help

Repository owner deleted a comment from p4u1d34n Jan 27, 2024
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