Hi,

I have a discord bot running on my raspberry pi 5 in a virtual environment,
and in the code I am trying to read the cpu temperature, except when the
code tries to run any gpiozero function (in particular CPUTemperature() )
it returns this error:

BadPinFactory: Unable to load any default pin factory!

this used to work on my Pi 3 which this was previously running on but I
cant remember what I had done to make it work, the code is unchanged
between the Pi3 and the Pi5

Does anyone know how I can fix this?

Many thanks

James C
-- 
  Next meeting: Online, Jitsi, Tuesday, 2026-01-06 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  https://dorset.lug.org.uk
  New thread, don't hijack:  mailto:[email protected]

Reply via email to