atspy
atspy copied to clipboard
Error when importing the AutomatedModel package in Google Colab
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)
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)
I'm having the same issue today as well. (~2 weeks ago I was using it without such problem)
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.
I can confirm it works now. Thanks!
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.
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