firmai / atspy

AtsPy: Automated Time Series Models in Python (by @firmai)
https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3580631
510 stars 89 forks source link

Error when importing the AutomatedModel package in Google Colab #11

Open jtfields opened 4 years ago

jtfields commented 4 years ago

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 commented 4 years ago

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

firmai commented 4 years ago

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 commented 4 years ago

I can confirm it works now. Thanks!

jtfields commented 4 years ago

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 commented 2 years ago

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