Skip to content
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 'tomllib' #241

Open
aaroncommand opened this issue Oct 5, 2024 · 2 comments
Open

ModuleNotFoundError: No module named 'tomllib' #241

aaroncommand opened this issue Oct 5, 2024 · 2 comments
Assignees
Labels

Comments

@aaroncommand
Copy link

Describe the bug

bandcamp-dl exits with a stack trace, regardless of any arguments passed.
This appears to be due to the fact that the tomllib library was introduced with Python 3.11, which is not installed on Linux Mint 21.3 and other distros.

To Reproduce

$ bandcamp-dl
Traceback (most recent call last):
File "/home/apatters/.local/bin/bandcamp-dl", line 5, in
from bandcamp_dl.main import main
File "/home/apatters/.local/pipx/venvs/bandcamp-downloader/lib/python3.10/site-packages/bandcamp_dl/init.py", line 3, in
import tomllib
ModuleNotFoundError: No module named 'tomllib'

Desktop (please complete the following information):

  • OS: Linux Mint 21.3

$ python3 --version
Python 3.10.12

Thanks!

@Evolution0
Copy link
Collaborator

Pushed what I hope will be a fix, can't really test right now but you should be able to pull the master branch and build it.

@dawhc
Copy link

dawhc commented Nov 9, 2024

Update your python to at least 3.11 to support tomllib.

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

No branches or pull requests

3 participants