-
-
Notifications
You must be signed in to change notification settings - Fork 69
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
What happened?
torrra supports python ≥ 3.10, but tomllib is only available in python 3.11+.
on python 3.10, importing tomllib causes a runtime ModuleNotFoundError.
we should use the standard fallback pattern and ensure packaging reflects this.
proposed fix (code):
try:
import tomllib # Python 3.11+
except ModuleNotFoundError:
import tomli as tomllib # Python 3.10packaging changes:
- add conditional dependency for PyPI:
-
tomli; python_version < "3.11"
- add unconditional dependency in AUR PKGBUILD:
-
python-tomli
this keeps python 3.11+ on stdlib while remaining compatible with python 3.10.
Version
torrra v2.0.4
OS and architecture
Arch Linux x86_64
Terminal Output or Logs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed