I have trouble trying to install modules...
LCD_MP3_Player.py contains import alasaudio..
if I try without sudo...
Importing modules with pip3 works fine.
If I don't use venv and --break-system-packages all works fine..
Any ideas ?
LCD_MP3_Player.py contains import alasaudio..
Code:
gt64tr@gt64tr:~ $ source myfirstproject/bin/activate(myfirstproject) gt64tr@gt64tr:~ $ sudo apt-get install python3-alsaaudioReading package lists... DoneBuilding dependency tree... DoneReading state information... Donepython3-alsaaudio is already the newest version (0.10.0-0.1+b5).0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.(myfirstproject) gt64tr@gt64tr:~ $ python3 LCD_MP3_Player.pyTraceback (most recent call last): File "/home/gt64tr/LCD_MP3_Player.py", line 32, in <module> import alsaaudioModuleNotFoundError: No module named 'alsaaudio'(myfirstproject) gt64tr@gt64tr:~ $ Code:
(myfirstproject) gt64tr@gt64tr:~ $ apt-get remove python3-alsaaudioE: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?(myfirstproject) gt64tr@gt64tr:~ $ If I don't use venv and --break-system-packages all works fine..
Any ideas ?
Statistics: Posted by gordon77 — Sat Dec 20, 2025 8:27 am