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

Anki gives ModuleNotFoundError without pip_system_certs installed #3113

Closed
escape0707 opened this issue Apr 4, 2024 · 0 comments · Fixed by #3114
Closed

Anki gives ModuleNotFoundError without pip_system_certs installed #3113

escape0707 opened this issue Apr 4, 2024 · 0 comments · Fixed by #3114

Comments

@escape0707
Copy link
Contributor

escape0707 commented Apr 4, 2024

As of version 24.04, if pip_system_certs module is not installed on the system, running Anki will error like this:

$ anki
Traceback (most recent call last):
  File "/usr/bin/anki", line 17, in <module>
    import aqt
  File "/usr/lib/python3.11/site-packages/aqt/__init__.py", line 9, in <module>
    import pip_system_certs.wrapt_requests
ModuleNotFoundError: No module named 'pip_system_certs'

This dependency is introduced by #3050, to solve #3016, and the original bug report is on MacOS with a niche network setup. This dependency does not benefit normal Linux users using Anki with their system packages at all, as most Linux distros have already configured their python-requests module to use system certificate instead, also most users don't have this niche network setup.

This pip_system_certs module is not packaged officially for most Linux distros e.g. Fedora, Ubuntu, Debian, Arch. It has only 12 stars on GitLab. And will break existing binary installation process. It will be better if we can catch and ignore the ModuleNotFoundError thus make this dependency an optional one.

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.

1 participant