I’m not terribly experienced at Python programming, but have plenty of experiences of other languages.
I’ve installed the software to interface with the Pimoroni fan shim on a Raspberry Pi 4. I installed it first via pip, but that seems to give you just the libraries and not the examples, so then I fetched those using git.
My problem is that none of them wants to run - they all complain that they’re not on a Raspberry Pi! My first thought was that the software didn’t yet recognize the Pi4, but surely the fan shim is a Pi4 product?
The error message is as follows:
john@pi4:~/Work/fanshim-python/examples $ python led.py Traceback (most recent call last): File "led.py", line 6, in <module> fanshim = FanShim() File "/usr/local/lib/python2.7/dist-packages/fanshim/__init__.py", line 30, in __init__ GPIO.setup(self._pin_fancontrol, GPIO.OUT) RuntimeError: Not running on a RPi! john@pi4:~/Work/fanshim-python/examples $