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

ModuleNotFoundError: No module named 'typing_extensions' #161

Closed
dchimeno opened this issue Oct 21, 2022 · 1 comment · Fixed by #162
Closed

ModuleNotFoundError: No module named 'typing_extensions' #161

dchimeno opened this issue Oct 21, 2022 · 1 comment · Fixed by #162

Comments

@dchimeno
Copy link

dchimeno commented Oct 21, 2022

typing_extensions is imported here: https://github.com/Yelp/swagger_spec_validator/blob/master/swagger_spec_validator/common.py#L18 but as fas as I know is not installed along this package.

Tests are not failing because typing_extensions is installed in dev requirements.

This happens since > 3.0

@googlygoo
Copy link
Contributor

Just adding to this issue, here is an example of reproducing the issue.

➜  python -m venv .venv
➜  . ./.venv/bin/activate
➜  pip install swagger-spec-validator
➜  python
Python 3.9.13 (main, Jul  7 2022, 09:29:37)
[Clang 13.1.6 (clang-1316.0.21.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from swagger_spec_validator.common import SwaggerValidationError
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "~/.venv/lib/python3.9/site-packages/swagger_spec_validator/__init__.py", line 1, in <module>
    from swagger_spec_validator.common import SwaggerValidationError
  File "~/.venv/lib/python3.9/site-packages/swagger_spec_validator/common.py", line 18, in <module>
    from typing_extensions import ParamSpec
ModuleNotFoundError: No module named 'typing_extensions'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants