Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kk7nc opened this issue May 16, 2023 · 3 comments

Comments

@kk7nc
Copy link

kk7nc commented May 16, 2023

import kats

out:
object.init() takes exactly one argument

@sunscorch
Copy link

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
Copy link

waqarahmed6095 commented May 22, 2023

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

@ferdinandyb
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants