You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Raspberry Pi OS (64-bit) (debian bookworm) with raspberry pi desktop.
Hardware
Raspberry Pi 5
Behavior
An error occurs when I run the script:
error: externally-managed-environment
Otherwise, the script appears to exit as expected and copies the configuration files to the right places. However, when I reboot the Pi, and test the arcade buttons they do not work.
Description
The full output contains some additional information which may be useful:
error: externally-managed-environment
This environment is externally managed
To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
For more information visit http://rptl.io/venv
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
I selected following options when the script first runs:
disable overscan: N
install GPIO utility: N
Otherwise, it is a fresh install of the operating system (from the raspberry PI imager) with no other added libraries or changes.
Other notes:
I2C is enabled via raspi-config
I'm confident it's not a wiring/hardware issue because the same arcade bonnet works on a Pi4 running the previous OS (bullseye), which did not have the externally managed environment restriction.
Additional information
I believe the error arises at line 114. When I comment this line out and run the script, it does not give the error (but obviously still does not work):
pip3 install evdev smbus
I tried several things to fix this. I re-ran the script, rebooted and tested the buttons again after each one, but no luck:
I deleted the EXTERNALLY-MANAGED file in /usr/lib/python3.11
I set up a python virtual environment python3 -m venv venv
I the arcade-bonnet.sh script to use pipx instead of pip to install evdev and smbus libraries.
I edited the arcade-bonnet.sh script to use apt install python3-evdev and apt-install python3-smbus
With all these, the libraries appear to install fine, but the buttons still don't work.
The text was updated successfully, but these errors were encountered:
I think I have solved the issue by uninstalling the python3-rpi.gpio and installing python3-rpi-lgpio in its place, which is supposedly a drop in replacement.
I rebooted after this and the buttons and joystick work with an Arcade Bonnet and Raspberry Pi 5.
I'll leave it to the repo maintainer to close the issue in case you want to review and add this fix as a note for readers of the arcade bonnet software installation guide.
Script Command
Operating System
Raspberry Pi OS (64-bit) (debian bookworm) with raspberry pi desktop.
Hardware
Raspberry Pi 5
Behavior
An error occurs when I run the script:
Otherwise, the script appears to exit as expected and copies the configuration files to the right places. However, when I reboot the Pi, and test the arcade buttons they do not work.
Description
The full output contains some additional information which may be useful:
I selected following options when the script first runs:
Otherwise, it is a fresh install of the operating system (from the raspberry PI imager) with no other added libraries or changes.
Other notes:
Additional information
I believe the error arises at line 114. When I comment this line out and run the script, it does not give the error (but obviously still does not work):
I tried several things to fix this. I re-ran the script, rebooted and tested the buttons again after each one, but no luck:
EXTERNALLY-MANAGED
file in/usr/lib/python3.11
python3 -m venv venv
arcade-bonnet.sh
script to usepipx
instead ofpip
to installevdev
andsmbus
libraries.arcade-bonnet.sh
script to useapt install python3-evdev
andapt-install python3-smbus
With all these, the libraries appear to install fine, but the buttons still don't work.
The text was updated successfully, but these errors were encountered: