facebookresearch / Kats

Kats, a kit to analyze time series data, a lightweight, easy-to-use, generalizable, and extendable framework to perform time series analysis, from understanding the key statistics and characteristics, detecting change points and anomalies, to forecasting future trends.
MIT License
4.85k stars 530 forks source link

After installation on Databricks Error object.__init__() takes exactly one argument #309

Open kk7nc opened 1 year ago

kk7nc commented 1 year ago

import kats

out: object.init() takes exactly one argument

sunscorch commented 1 year ago

import kats

out: object.init() takes exactly one argument

hi: We receive a similar ticket in azure databricks. the issue is that the kats is using dependency (holiday>=0.10.2), as PIP will install the latest version for this, so we will get an incompatible issue when initializing holiday.

The workaround is that you can install holiday==0.10.2 in the init script and install kats in UI

dbutils.fs.put("/databricks/scripts/install_kats.sh","""
#!/bin/bash
 pip install holidays==0.10.2
 """, True)

Please don't raise SF tickets or MS tickets to the support team to solve the 3rd lib issue like this anymore!!!!

waqarahmed6095 commented 1 year ago

Find object.py, change super().init(*args, **kwargs) to super().init()

ferdinandyb commented 1 year ago

@sunscorch If the latest holidays is not good for kats, shouldn't the requirements.txt reflect that?