cannot import name 'Concatenate' from 'typing_extensions'
See original GitHub issue from pix2tex.dataset.transforms import test_transform
File "d:\programdata\anaconda3\envs\ai\lib\site-packages\pix2tex\dataset\transforms.py", line 1, in <module>
import albumentations as alb
File "d:\programdata\anaconda3\envs\ai\lib\site-packages\albumentations\__init__.py", line 5, in <module>
from .augmentations import *
File "d:\programdata\anaconda3\envs\ai\lib\site-packages\albumentations\augmentations\__init__.py", line 2, in <module>
from .blur.functional import *
File "d:\programdata\anaconda3\envs\ai\lib\site-packages\albumentations\augmentations\blur\__init__.py", line 1, in <module>
from .functional import *
File "d:\programdata\anaconda3\envs\ai\lib\site-packages\albumentations\augmentations\blur\functional.py", line 8, in <module>
from albumentations.augmentations.functional import convolve
File "d:\programdata\anaconda3\envs\ai\lib\site-packages\albumentations\augmentations\functional.py", line 11, in <module>
from albumentations.augmentations.utils import (
File "d:\programdata\anaconda3\envs\ai\lib\site-packages\albumentations\augmentations\utils.py", line 6, in <module>
from typing_extensions import Concatenate, ParamSpec
ImportError: cannot import name 'Concatenate' from 'typing_extensions' (d:\programdata\anaconda3\envs\ai\lib\site-packages\typing_extensions.py)
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
python - cannot import name 'Concatenate' from 'typing' in 3.8
Install the typing_extensions module from PyPI in order to use Concatenate on Python versions older than 3.10. Then replace typing with ...
Read more >ImportError: cannot import name 'Concatenate' from 'typing'
The "ImportError: cannot import name 'Concatenate' from 'typing'" occurs when we try to import the Concatenate class from the typing module ...
Read more >Cannot import name 'ParamSpec' from 'typing_extensions'
I am working from Azure Databricks. I have installed Optuna's library without any problem, but when I import it, I get this error....
Read more >[Solved] 'ImportError: cannot import name 'ParamSpec' from ...
Solution: Change the installed version of the typing-extensions package to a more recent version such as 4.3.0 . pip install typing-extensions==4.3.0.
Read more >typing-extensions - PyPI
TypeGuard is new in Python 3.10, but typing_extensions allows users on previous ... Concatenate (see PEP 612); ParamSpec (see PEP 612; the typing_extensions...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Update: I later tried command pip install -U typing_extensions, and it works. Hope it helps.
Thanks for reply, I have solved it by upgrating the typing_extensions to the lastest version.