ImportError: cannot import name 'NotRequired' from 'typing_extensions'

See original GitHub issue

Describe the bug A clear and concise description of what the bug is.

Getting an import error with latest release:

    from .client import DynamoDBClient

/usr/local/lib/python3.7/site-packages/mypy_boto3_dynamodb/client.py:36: in <module>

    from .paginator import (

/usr/local/lib/python3.7/site-packages/mypy_boto3_dynamodb/paginator.py:43: in <module>

    from .type_defs import (

/usr/local/lib/python3.7/site-packages/mypy_boto3_dynamodb/type_defs.py:20: in <module>

    from typing_extensions import NotRequired

E   ImportError: cannot import name 'NotRequired' from 'typing_extensions' (/usr/local/lib/python3.7/site-packages/typing_extensions.py)

version 1.21.23

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:6

github_iconTop GitHub Comments

1reaction
1-900-MIXALOTcommented, Mar 23, 2022

Updating typing-extensions appears to have solved my issue. TY!

0reactions
vemelcommented, Mar 23, 2022

Hmm, looks like your site-packages are broken. Try to uninstall typing-extensions and install again

sudo pip uninstall typing-extensions # probably run the command multiple times

sudo pip install -U typing-extensions

Even if you have a package that depends on typing-extensions 3.x, version 4.x is fully compatible and should work properly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Django ImportError: cannot import name 'Required ...
try: from typing_extensions import Required except ImportError: from typing import Generic, TypeVar T = TypeVar("T") class ...
Read more >
Cannot import name 'TypeGuard' from 'typing_extensions'
Last week I installed bokeh (which failed on the TypeGuard error when importing) and then added typing-extensions to try and fix (which didn't ......
Read more >
Cannot import _TypedDictMeta from typing_extensions
... to check current configuration, or when i run a python file using sentinelhub, i get the error “ImportError: cannot import name _Typed…...
Read more >
ImportError: cannot import name 'ParamSpec' from ...
I upgraded the pi this morning ( it a 3b model) and now it says no running. I am looking at the octodash...
Read more >
typing-extensions - PyPI
The typing_extensions module serves two related purposes: ... No typing PEP has been rejected so far, so we haven't yet figured out how...
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