After installation on Databricks Error object.__init__() takes exactly one argument
kk7nc opened this issue · comments
import kats
out:
object.init() takes exactly one argument
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!!!!
Find object.py, change super().init(*args, **kwargs) to super().init()
@sunscorch If the latest holidays
is not good for kats, shouldn't the requirements.txt
reflect that?