Conversation
|
I meet some questions,I don't know reason. Traceback (most recent call last): Can you help me? |
|
Hello,
some internals changed for Raspbian Stretch and i didn't get DHT22 to run with it. However, i found a way to use DHT22 with PiGPIO and Stretch:
http://www.knight-of-pi.org/update-dht22-am2302-with-pigpio-for-raspbian-stretch/
Sorry for the late reply, i'm relocating currently!
Best,
Johannes
… 雨千 ***@***.***> hat am 15. Oktober 2018 um 13:57 geschrieben:
I meet some questions,I don't know reason.
Traceback (most recent call last):
File "dht22.py", line 5, in <module>
humidity, temperature = Adafruit_DHT.read_retry(sensor, pin)
File "/usr/local/lib/python3.5/dist-packages/Adafruit_DHT-1.1.1-py3.5-linux-armv7l.egg/Adafruit_DHT/common.py", line 90, in read_retry
humidity, temperature = read(sensor, pin, platform)
File "/usr/local/lib/python3.5/dist-packages/Adafruit_DHT-1.1.1-py3.5-linux-armv7l.egg/Adafruit_DHT/common.py", line 77, in read
return platform.read(sensor, pin)
File "/usr/local/lib/python3.5/dist-packages/Adafruit_DHT-1.1.1-py3.5-linux-armv7l.egg/Adafruit_DHT/Beaglebone_Black.py", line 202, in read
match = re.match('GPIO([0123])_(\d+)', pin, re.IGNORECASE)
File "/usr/lib/python3.5/re.py", line 163, in match
return _compile(pattern, flags).match(string)
TypeError: expected string or bytes-like object
Can you help me?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#1 (comment)
_______________________________
Dipl. bioinf. Johannes Bergs
Strasse der Einheit 4c
39624 Kalbe (Milde)
Tel. 0174 4532442
Blog www.knight-of-pi.org
Web www.silikoid.biz
|
|
Hi Christoph!
I'm currently relocating, so i do not have access to my lab right now.
However, they changed some internals for Raspbian Stretch and i couldn't get DHT22 to run with plain Stretch.
However, a solution using PiGPIO exits:
http://www.knight-of-pi.org/update-dht22-am2302-with-pigpio-for-raspbian-stretch/
Hope this helps!
Johannes
… Christoph Schultz ***@***.***> hat am 28. September 2018 um 21:35 geschrieben:
I have tested with DHT22 and Pi3 with Python3.
from Time to time it returns the NONE value and the program teminates.
i don't know why...
You can view, comment on, or merge this pull request online at:
#1
-- Commit Summary --
* Updated for Python3 support of Raspberry Pi3
* Update README.md
-- File Changes --
M Adafruit_DHT/platform_detect.py (3)
M README.md (3)
-- Patch Links --
https://github.com/JoBergs/Adafruit_Python_DHT/pull/1.patch
https://github.com/JoBergs/Adafruit_Python_DHT/pull/1.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#1
_______________________________
Dipl. bioinf. Johannes Bergs
Strasse der Einheit 4c
39624 Kalbe (Milde)
Tel. 0174 4532442
Blog www.knight-of-pi.org
Web www.silikoid.biz
|
I have tested with DHT22 and Pi3 with Python3.
from Time to time it returns the NONE value and the program teminates.
i don't know why...