darts icon indicating copy to clipboard operation
darts copied to clipboard

[BUG] TypeError: load() missing 1 required positional argument: 'Loader'

Open hemantnyadav opened this issue 2 years ago • 1 comments

Describe the bug When importing "from darts import TimeSeries" it gives error.

TypeError Traceback (most recent call last) in 7 import matplotlib.pyplot as plt 9 from darts import TimeSeries 10 from darts.datasets import AirPassengersDataset frames

 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'

To Reproduce Open google colab !pip install darts from darts import TimeSeries

Expected behavior It should import from darts import TimeSeries

System (please complete the following information):

  • Python version: [e.g. 3.7]
  • darts version [e.g. 0.14.0]

Additional context Add any other context about the problem here.

hemantnyadav avatar Jul 23 '22 08:07 hemantnyadav

Hi! @hemantnyadav. This error is caused by an incompatible pyyaml on Colab. The quickest workaround is

!pip install pyyaml==5.4.1

For more details, here

tk42 avatar Jul 23 '22 20:07 tk42