Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kompatibilität mit Raspi 4 #6

Open
pingpank opened this issue May 5, 2020 · 1 comment
Open

Kompatibilität mit Raspi 4 #6

pingpank opened this issue May 5, 2020 · 1 comment

Comments

@pingpank
Copy link

pingpank commented May 5, 2020

Hallo,
ich bekomme bei dem Versuch die dht11_einfach.py via python3 dht11_einfach.py
auszuführen die folgende Fehlermeldung:

python3 dht11_einfach.py
Traceback (most recent call last):
  File "dht11_einfach.py", line 5, in <module>
    feuchtigkeit, temperatur = Python_DHT.read_retry(sensor, pin)
  File "/home/pi/Python_DHT/Python_DHT/common.py", line 90, in read_retry
    humidity, temperature = read(sensor, pin, platform)
  File "/home/pi/Python_DHT/Python_DHT/common.py", line 76, in read
    platform = get_platform()
  File "/home/pi/Python_DHT/Python_DHT/common.py", line 51, in get_platform
    import Python_DHT.Raspberry_Pi_2 as Raspberry_Pi_2
  File "/home/pi/Python_DHT/Python_DHT/Raspberry_Pi_2.py", line 22, in <module>
    import Python_DHT.Raspberry_Pi_2_Driver as driver
ModuleNotFoundError: No module named 'Python_DHT.Raspberry_Pi_2_Driver'

Gibt es die Möglichkeit, das Ganze auf einem Raspi4 zum laufen zu bringen?

@ertagh
Copy link

ertagh commented Sep 23, 2020

Ich schreib die Antwort mal auf Englisch..

I was wondering the same, so I took a look inside the code.
It seems that you just have to edit 1 line:

Python_DHT/platform_detect.py -> line 99
Add " or match.group(1) == 'BCM2711'" to add the CPU of the RPi 4

After this run setup.py install and it seems to work..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants