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

pipx - ModuleNotFoundError: No module named 'typing_extensions' #412

Closed
Jasha10 opened this issue May 14, 2023 · 6 comments · Fixed by #414
Closed

pipx - ModuleNotFoundError: No module named 'typing_extensions' #412

Jasha10 opened this issue May 14, 2023 · 6 comments · Fixed by #414
Labels

Comments

@Jasha10
Copy link

Jasha10 commented May 14, 2023

I'm getting a ModuleNotFoundError when running vcspull following a pipx install.

To reproduce:

$ pipx install vcspull
  installed package vcspull 1.20.2, installed using Python 3.11.3
  These apps are now globally available
    - vcspull
done! ✨ 🌟 ✨
$ vcspull
Traceback (most recent call last):
  File "/home/homestar/.local/bin/vcspull", line 5, in <module>
    from vcspull import cli
  File "/home/homestar/.local/pipx/venvs/vcspull/lib/python3.11/site-packages/vcspull/__init__.py", line 15, in <module>
    from . import cli  # NOQA
    ^^^^^^^^^^^^^^^^^
  File "/home/homestar/.local/pipx/venvs/vcspull/lib/python3.11/site-packages/vcspull/cli/__init__.py", line 17, in <module>
    from .sync import create_sync_subparser, sync
  File "/home/homestar/.local/pipx/venvs/vcspull/lib/python3.11/site-packages/vcspull/cli/sync.py", line 14, in <module>
    from ..config import filter_repos, find_config_files, load_configs
  File "/home/homestar/.local/pipx/venvs/vcspull/lib/python3.11/site-packages/vcspull/config.py", line 15, in <module>
    from vcspull.validator import is_valid_config
  File "/home/homestar/.local/pipx/venvs/vcspull/lib/python3.11/site-packages/vcspull/validator.py", line 4, in <module>
    from vcspull.types import RawConfigDict
  File "/home/homestar/.local/pipx/venvs/vcspull/lib/python3.11/site-packages/vcspull/types.py", line 4, in <module>
    from typing_extensions import NotRequired, TypedDict
ModuleNotFoundError: No module named 'typing_extensions'
$ pipx --version
1.2.0
@Jasha10
Copy link
Author

Jasha10 commented May 14, 2023

This might be fixable by adding typing_extensions to pyproject.toml in the [tool.poetry.dependencies] section.

@tony tony added the bug label May 14, 2023
@tony
Copy link
Member

tony commented May 14, 2023

Taking a look at this now

@Jasha10
Copy link
Author

Jasha10 commented May 14, 2023

FYI @tony I've submitted a PR (#413).

tony added a commit that referenced this issue May 14, 2023
This avoids the need for typing-extensions as an official dependency and
fixes #412.
@tony tony closed this as completed in #414 May 14, 2023
tony added a commit that referenced this issue May 14, 2023
@tony
Copy link
Member

tony commented May 14, 2023

This was closed automatically via #414, but the attempted fix is now live in v1.20.3

@Jasha10 If you update to 1.20.3 via pip install --user -U vcspull --no-cache, is anything different?

@Jasha10
Copy link
Author

Jasha10 commented May 15, 2023

@tony, yes, in v1.20.3 it's fixed. Thank you!

@tony
Copy link
Member

tony commented May 15, 2023

@Jasha10 Excellent!

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