Open eslindsey opened 5 days ago
Latest version of Raspberry Pi OS blocks
sudo pip install
and wants to usevenv
As it should! sudo pip
really shouldn't be used but this was my hack-ier soltuion that hasn't had time for a solid revisit.
I did get this working in a venv
I'd love to hear what you did! From what I remember utilizing escalated privileges may only be required for a few select areas so if that could be isolated to the bare minimum I'd be happy to implement it into the code base.
Thanks for opening this issue! I haven't the capacity I'd like to put work into PILOT Drive but would like to at least keep it up to date with the latest & greatest.
I should have specified that the only way I got it working in the venv was to create the venv as root.
--break-system-packages
works fine to restore your hacki-ness, but the setup script still crashes for the same reason as the issue: it attempts to call pip3 install
without --break-system-packages
.
Regarding keeping root restricted, that's a good security practice but with a product like this designed to (potentially) interact with so much hardware, is it feasible? Last I checked the Raspberry Pi GPIO is massively more efficient when it can memory map the hardware registers on the BCM directly, which can only be done as root. That's just one example off the top of my head. I suppose USB and Bluetooth can both be accessed from userland, so OBD2 and radio tuners etc. wouldn't be an issue. Web server already defaults to a non-privileged port, so no problems there.
Describe the bug
Latest version of Raspberry Pi OS blocks
sudo pip install
and wants to usevenv
.To Reproduce
Attempt to follow the PILOT Drive installation guide on latest Raspberry Pi OS.
Expected behavior
Successful installation.
Actual behavior
Host information:
Additional context
I did get this working in a venv, but I think that's going to be a huge (and unnecessary) pain on a system that is dedicated only to PILOT Drive. I had thought that there was no way to force an install, because I had not read the last sentence of the
note
until I was typing it.Perhaps that means this is just a documentation update, but I'll have to wait until I get home from work to try out "breaking system packages" and report back. :)