[Python] issue when using the GPIO lib in a python script on a raspberry pi 1

Discussão em 'Python' iniciado por Stack, Junho 8, 2025.

  1. Stack

    Stack Membro Participativo

    Here is the error returned after importing the GPIO Lib in a python script on a Raspberry pi 1 :

    > Traceback (most recent call last):
    File "/home/pi/test_driver_LCD.py", line 1, in <module>
    from driver_LCD import LcdDisplay
    File "/home/pi/driver_LCD.py", line 4, in <module>
    import RPi.GPIO as GPIO
    File "/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py", line 927, in <module>
    RPI_INFO = _get_rpi_info()
    ^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py", line 428, in _get_rpi_info
    raise NotImplementedError(
    NotImplementedError: This module does not understand old-style revision codes

    Continue reading...

Compartilhe esta Página