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

[Core] ImportError: cannot import name 'ThreadpoolController' from 'threadpoolctl' on Databricks #912

Closed
michal-mmm opened this issue Sep 16, 2024 · 1 comment · Fixed by #914
Labels

Comments

@michal-mmm
Copy link

What happened + What you expected to happen

Latest release of statsforecast==1.7.7 and higher does not work with Databricks correctly.

ImportError: cannot import name 'ThreadpoolController' from 'threadpoolctl' (/databricks/python/lib/python3.10/site-packages/threadpoolctl.py)

It might be a Databricks issue (most likely) but I'm reporting it here too. Downgrading the statsforecast to 1.7.6 fixes the import:
image

Versions / Dependencies

Click to expand Dependencies: statsforecast==1.7.7 and (Databricks ML Runtime 14.3 LTS or Databricks Runtime 13.3 LTS)

Reproducible example

from statsforecast import StatsForecast

Issue Severity

Low: It annoys or frustrates me.

@michal-mmm michal-mmm added the bug label Sep 16, 2024
@dgarridoa
Copy link

dgarridoa commented Sep 16, 2024

Upgrading threadpoolctl, for instance, to 3.5.0 solves the issue. I also had some pipelines fail in Databricks, for example, dbr 13.3 ml uses threadpoolctl==2.2.0, using that version you can replicate the error locally.

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

Successfully merging a pull request may close this issue.

2 participants