AutoViML / Auto_TS

Automatically build ARIMA, SARIMAX, VAR, FB Prophet and XGBoost Models on Time Series data sets with a Single Line of Code. Created by Ram Seshadri. Collaborators welcome.
Apache License 2.0
723 stars 113 forks source link

error on colab #83

Closed gautambak closed 2 years ago

gautambak commented 2 years ago
# !pip3 install auto-ts
from auto_ts import auto_timeseries

install works fine but when I do the import I get:

TypeError                                 Traceback (most recent call last)
[<ipython-input-26-090b3d39a267>](https://localhost:8080/#) in <module>()
      1 # try a different library
      2 # !pip3 install auto-ts
----> 3 from auto_ts import auto_timeseries

5 frames
[/usr/local/lib/python3.7/dist-packages/distributed/config.py](https://localhost:8080/#) in <module>()
     18 
     19 with open(fn) as f:
---> 20     defaults = yaml.load(f)
     21 
     22 dask.config.update_defaults(defaults)

TypeError: load() missing 1 required positional argument: 'Loader'
PriyanshuRj commented 2 years ago

You can use !pip install pyyaml==5.4.1 to install exact version of pyyaml as used in the library This solved the error for me

PriyanshuRj commented 2 years ago

You can also try installing tsvc using the command !pip install tscv for installing all the remaining missing packages

AutoViML commented 2 years ago

Hi @gautambak 👍 The following three steps worked for me in Colab - do this one after another in each cell.

!pip install auto-ts --no-deps --ignore-installed
!pip install 'fsspec>=0.3.3'
!pip install statsmodels

But please restart the runtime (look up in the Colab Runtime menu) after installing statsmodels and then do this:

from auto_ts import auto_timeseries

Voila! that worked for me. Autovimal