Moin,
Using an RPi4B with Raspbian Buster and Python 3.
apt install python3-gpio
apt install python3-pip
pip3 install gpiozero
: python3
Python 3.7.3 (default, Oct 31 2022, 14:04:00)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import RPi.GPIO as GPIO
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py", line 23,
in <module>
from RPi._GPIO import *
RuntimeError: This module can only be run on a Raspberry Pi!
<CTRL-D>
apt policy python3-rpi.gpio
python3-rpi.gpio:
Installiert: 0.6.5-1
Installationskandidat: 0.6.5-1
Versionstabelle:
*** 0.6.5-1 500
500 http://raspbian.raspberrypi.org/raspbian buster/main armhf
Packages
100 /var/lib/dpkg/status
Whats going on, whats wrong can someone help, please?
Happy new year.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 156:56:09 |
Calls: | 10,384 |
Calls today: | 1 |
Files: | 14,056 |
Messages: | 6,416,474 |