Venv is the way to go. I've been using python venv's for many years and I can't imagine doing it any other way because of all the issues it helps resolve.I did the method with venv, It's just annoying, i regret the purchase of the raspberry pi due to lack of support that doesnt allow me to do much. If i cant even use a temperature sensor i wonder what other large important components i wont be able to use :/Almost all of the code that used to work in a Pi 4 will not work on a Pi 5 without a lot of modifications.
Unless Adafruit has updated their stuff, their libraries will not work on the Pi 5.
As for the externally managed stuff, read the error you're getting it contains instructions on how to deal with it, by either using a venv (recommended) and doing it the old way (not recommended).
The issue with the libraries is not the Pi 5, but the maintainers of those libraries not updating their stuff so they keep working. Some are being worked on, some have just been been touched and abandoned. If you depend on someone else's code, then you'll depend on them making the necessary changes.
There are supported libraries out there to work with the Pi's gpio, but the one you're trying to use is has not been updated yet. You might want to go ask about it in the Adafruit's forums. They may be working on it and even have an ETA for when they updated versions will be out, I just don't have any information about that.
On the other hand, this would be a perfect time to learn something new and try to write a replacement for these libraries you want to use but can't, or even help them rewrite them with the supported stuff.
But again, it's not a Pi problem, it's a problem with the tons of software out there that have not been updated by the people who write/maintain them.
Statistics: Posted by memjr — Thu Aug 08, 2024 7:24 pm