question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
TianCuteQYcommented, Sep 30, 2022

I just encountered the same issue. I’am using Python 3.8.3. I tried typing_extensions-4.3.0 and -3.7.4, both of them do not work.

Update: I later tried command pip install -U typing_extensions, and it works. Hope it helps.

0reactions
hongyaohongyaocommented, Sep 30, 2022

I can not reproduce the problem on clear environment with python 3.8.10

Thanks for reply, I have solved it by upgrating the typing_extensions to the lastest version.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found