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

While importing darts it throws cannot import name 'TypeAliasType' from 'typing_extensions' error #2328

Open
anusonawane opened this issue Apr 16, 2024 · 1 comment
Labels
bug Something isn't working triage Issue waiting for triaging

Comments

@anusonawane
Copy link

I'm encountering an ImportError while trying to import TypeAliasType from typing_extensions. Here's the traceback:

from darts import TimeSeries
from darts.models import RandomForest, LinearRegressionModel

File "/home/env/lib/python3.11/site-packages/darts/utils/utils.py", line 13, in
from IPython import get_ipython

...
File "/home/env/lib/python3.11/site-packages/IPython/core/guarded_eval.py", line 40, in
from typing_extensions import TypeAliasType

ImportError: cannot import name 'TypeAliasType' from 'typing_extensions' (/home/env/lib/python3.11/site-packages/typing_extensions.py)
This error seems to be occurring within the context of the Darts library, specifically when importing TypeAliasType from typing_extensions. However, it appears that TypeAliasType is not present in the typing_extensions module.

I'm using Python 3.11 and have the following relevant packages installed:

u8darts: 0.18.0
IPython: 8.23.0
typing-extensions:4.5.0

Could someone please provide guidance on how to resolve this issue?

Thank you for your help!

@anusonawane anusonawane added bug Something isn't working triage Issue waiting for triaging labels Apr 16, 2024
@anusonawane anusonawane changed the title ImportError: cannot import name 'TypeAliasType' from 'typing_extensions' While importing darts it throws cannot import name 'TypeAliasType' from 'typing_extensions' error Apr 17, 2024
@dennisbader
Copy link
Collaborator

Hi @anusonawane, you seem to be using an outdated Darts version (version 0.18.0 from March 2022). This was even before python 3.11 was released (October 2022). Is there a specific reason why you don't update to a newer Darts version? These issues should be solved by updating.

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

No branches or pull requests

2 participants