I am trying to install the Speaker Bonnet using adafruit’s doco at Raspberry Pi Setup | Adafruit Speaker Bonnet for Raspberry Pi | Adafruit Learning System.
Running the i2samp.py script calls up ädafruit_shell which is not installed.
In trying to download it I get an error: externally managed environment. This is in the virtual environment.
Running apt install python3-adafruit_shell outside the virtual environment gives me error Could not open lock file…
I have been programming in umpteen languages since 1966 but am a complete newby where Linux is concerned. Help would be appreciated. Geoff
First time in linux as an experienced programmer? How fun! You’ll love it.
In Linux “could not open lock file” is usually associated with users and permissions.
Linux has different users built in, and they all have different access to files (and in linux. everything is a file).
In Unix/Linux systems the shell has a prepend keyword sudo which translates to “run the following command as if I were, and had the permissions of, another user”.
Running sudo apt install python3-adafruit_shell # Sudo is kinda like admin in windows
would give you root access, which is access to everything.
I might try that… just to see.
Another option, and probably a more robust option, is to give your user, probably “pi”, permissions to whatever files the package requires. PI OS users a lot of virtual environments for speed reasons.
A package called venv helps with this.