atspy icon indicating copy to clipboard operation
atspy copied to clipboard

Error when importing the AutomatedModel package in Google Colab

Open jtfields opened this issue 4 years ago • 5 comments

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)

jtfields avatar Apr 23 '20 13:04 jtfields

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

stefanosh avatar Apr 23 '20 18:04 stefanosh

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.

firmai avatar Apr 23 '20 19:04 firmai

I can confirm it works now. Thanks!

stefanosh avatar Apr 24 '20 07:04 stefanosh

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.

jtfields avatar Apr 24 '20 15:04 jtfields

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

Pesssy avatar Sep 06 '22 01:09 Pesssy