Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5385

Troubleshooting • Re: MPG123 module not found when script ran at root level

$
0
0
Looks like the same/similar issue(s) as in your other thread (viewtopic.php?t=369825) so I won't repeat what I wrote there in this thread.

Couple of additional points arising from this one though:
  1. Why are you running that code as root? There doesn't appear to be any need to do so.
  2. Why do you import mpg123 but not use it? All that achieves is to slow down your program's initialisation. Plus if on Bookworm when virtual environments are now more or less mandatory you'd either have to install that module via apt or create a second virtual environment for the root user and reinstall it there with pip3 (or have used the --break-system-packages option).
  3. If you're going to use an old version of RPiOS, don't use Buster (that's two version behind Bookworm). Use Bullseye (also know as legacy).

Statistics: Posted by thagrol — Tue Apr 30, 2024 1:14 am



Viewing all articles
Browse latest Browse all 5385

Trending Articles