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

[BUG]: ImportError: cannot import name 'TSForecastingExperiment' from 'pycaret.time_series' #3941

Open
3 tasks done
aucouer opened this issue Mar 11, 2024 · 3 comments
Open
3 tasks done
Labels
bug Something isn't working

Comments

@aucouer
Copy link

aucouer commented Mar 11, 2024

pycaret version checks

Issue Description

I just installed pycaret using !pip install pycaret[full],but i cant import name 'TSForecastingExperiment' from 'pycaret.time_series'

Reproducible Example

from pycaret.time_series import TSForecastingExperiment
exp = TSForecastingExperiment()

Expected Behavior

Normal and correct output

Actual Results

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
/tmp/ipykernel_24996/3371859116.py in <module>
----> 1 from pycaret.time_series import TSForecastingExperiment
      2 exp = TSForecastingExperiment()

ImportError: cannot import name 'TSForecastingExperiment' from 'pycaret.time_series' (/root/ai/anomaly/eight3/lib/python3.8/site-packages/pycaret/time_series.py)

Installed Versions

2.3.4
@aucouer aucouer added the bug Something isn't working label Mar 11, 2024
@ngupta23
Copy link
Collaborator

You need to install pycaret version 3.0.0 or greater to use the Time series module. Ideally, install the latest version.

@aucouer
Copy link
Author

aucouer commented Mar 12, 2024

You need to install pycaret version 3.0.0 or greater to use the Time series module. Ideally, install the latest version.

I just have update the version of pycaret to 3.0.0 with python==3.8.12,but i still cannot use TSForecastingExperiment,like below;Which version begin to include the function TSForecastingExperiment?Do i need to pocess a higher version of python,and if it work with centos?:

ImportError Traceback (most recent call last)
/tmp/ipykernel_31967/3371859116.py in
----> 1 from pycaret.time_series import TSForecastingExperiment
2 exp = TSForecastingExperiment()

ImportError: cannot import name 'TSForecastingExperiment' from 'pycaret.time_series' (/root/ai/anomaly/eight3/lib/python3.8/site-packages/pycaret/time_series.py)

@ngupta23
Copy link
Collaborator

ngupta23 commented Mar 12, 2024

Can you use the lates pycaret version (3.3.0). make sure that the right version has been installed.

pip install pycaret

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants