-

CommentStreams:A1f116f57e7a2cb99a3b5ff3892fd38c

From Geekworm Wiki
< X735 Software
Revision as of 09:09, 9 December 2021 by 66.81.160.228 (talk) (Migrated comment #2140)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Hi, I have tried the steps indicated for Raspbian OS, and almost everything works fine... except the read_fan_speed.py script. It returns:

Traceback (most recent call last):

 File "./read_fan_speed.py", line 4, in <module>
   import RPi.GPIO as GPIO

ImportError: No module named RPi.GPIO

I have these packages installes, as per instructions in wiki: pigpio python-pigpio python3-pigpio

I also tried to install:

python-rpi.gpio

but got this message from apt: "Package python-rpi.gpio is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source"

If i do: "dpkg -l | grep gpio" I get this:

ii libpigpio-dev ii libpigpio1 ii libpigpiod-if-dev ii libpigpiod-if1 ii libpigpiod-if2-1 ii pigpio ii pigpio-tools ii pigpiod ii python-pigpio ii python3-gpiozero ii python3-pigpio ii python3-rpi.gpio ii raspi-gpio ii rpi.gpio-common:armhf

python -V returns this: Python 2.7.18 (I guess it's all right, as read_fan_speed is a python-2 script)

I don't have pip nor pip3 installed, and I don't know how to install them, in case it's needed to further install something else... I have search in lots of python forums, but none of the solutions proposed worked.

What am I doing wrong? Any ideas?

Thanks a lot,