-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ModuleNotFoundError: No module named 'tomli' #80
Comments
~/.local/pipx/venvs/scriv/lib/python3.10/site-packages/scriv-1.2.0.dist-info/METADATA says
so I think the dependencies are working as designed? except that scriv isn't supposed to use anything toml-related unless you opt it by requesting the toml extra? |
Note that I experienced the same thing on Ubuntu 22.04.1 but worked around it with an |
#80 Like this: ``` $ pipx install scriv $ scriv --help Traceback (most recent call last): File "/home/mg/.local/pipx/venvs/scriv/lib/python3.10/site-packages/scriv/config.py", line 13, in <module> import tomllib ModuleNotFoundError: No module named 'tomllib' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/mg/.local/bin/scriv", line 5, in <module> from scriv.cli import cli File "/home/mg/.local/pipx/venvs/scriv/lib/python3.10/site-packages/scriv/cli.py", line 9, in <module> from .collect import collect File "/home/mg/.local/pipx/venvs/scriv/lib/python3.10/site-packages/scriv/collect.py", line 11, in <module> from .scriv import Scriv File "/home/mg/.local/pipx/venvs/scriv/lib/python3.10/site-packages/scriv/scriv.py", line 13, in <module> from .changelog import Changelog, Fragment File "/home/mg/.local/pipx/venvs/scriv/lib/python3.10/site-packages/scriv/changelog.py", line 10, in <module> from .config import Config File "/home/mg/.local/pipx/venvs/scriv/lib/python3.10/site-packages/scriv/config.py", line 15, in <module> import tomli as tomllib # type: ignore ModuleNotFoundError: No module named 'tomli' ```
#80 Like this: ``` $ pipx install scriv $ scriv --help Traceback (most recent call last): File "/home/mg/.local/pipx/venvs/scriv/lib/python3.10/site-packages/scriv/config.py", line 13, in <module> import tomllib ModuleNotFoundError: No module named 'tomllib' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/mg/.local/bin/scriv", line 5, in <module> from scriv.cli import cli File "/home/mg/.local/pipx/venvs/scriv/lib/python3.10/site-packages/scriv/cli.py", line 9, in <module> from .collect import collect File "/home/mg/.local/pipx/venvs/scriv/lib/python3.10/site-packages/scriv/collect.py", line 11, in <module> from .scriv import Scriv File "/home/mg/.local/pipx/venvs/scriv/lib/python3.10/site-packages/scriv/scriv.py", line 13, in <module> from .changelog import Changelog, Fragment File "/home/mg/.local/pipx/venvs/scriv/lib/python3.10/site-packages/scriv/changelog.py", line 10, in <module> from .config import Config File "/home/mg/.local/pipx/venvs/scriv/lib/python3.10/site-packages/scriv/config.py", line 15, in <module> import tomli as tomllib # type: ignore ModuleNotFoundError: No module named 'tomli' ```
Oops, sorry about that! This is fixed in 985e72b. |
I have to say I stared at the offending code for five minutes until I finally understood where the problem was! |
Me too! This is now released as part of scriv 1.2.1. |
I'm using Python 3.10 on Ubuntu 22.10, with pipx to manage my virtual envs for tools.
Something seems to be wrong with the tomllib dependency on Python < 3.11:
Full set of versions installed in the venv:
The text was updated successfully, but these errors were encountered: