No module name mutagen

Tim Johnson thjmmj15 at gmail.com
Tue Dec 31 19:00:10 EST 2024


Please let me grumble for a minute : I've been using python since before 
1. 5, when I could email Guido van Rossum directly with questions

and on  at least one occasion we swapped stories about our cats. I put 
six kids though college writing python, and now after

being retired for ten years, I get my butt kicked by python dependencies 
every time I upgrade ubuntu. (I'm newly on 24.04) now.

Now, after three weeks on using the following code correctly:

from mutagen import mp3, id3, File as mutaFile
from mutagen.id3 import ID3, TIT2, TPE1

I am as of today, getting an import error for mutagen. Mutagen package 
is installed at /root/.local/share/pipx/shared/lib/python3.12/site-packages

and indeed, that is the content of 
/root/.local/share/pipx/shared/lib/python3.12/site-packages/pipx_shared.pth

I have added that to my path and am still getting the error. Grrr...

I am at a loss. don't know what to do. I am only using python script for 
command line utilities on my desktop and local network.

Must I be using a virtual environment? If so, I would be happy to set 
one up if I am given the python-approved directions

(lots of conflicting info out there....)

Thanks

Tim





More information about the Python-list mailing list