Skip to content

Added Pi3 Support with Python3#1

Open
ChrSchultz wants to merge 2 commits intoJoBergs:masterfrom
ChrSchultz:master
Open

Added Pi3 Support with Python3#1
ChrSchultz wants to merge 2 commits intoJoBergs:masterfrom
ChrSchultz:master

Conversation

@ChrSchultz
Copy link

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...

@HaijunMa
Copy link

I meet some questions,I don't know reason.

Traceback (most recent call last):
File "dht22.py", line 5, in
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?

@JoBergs
Copy link
Owner

JoBergs commented Nov 7, 2018 via email

@JoBergs
Copy link
Owner

JoBergs commented Nov 7, 2018 via email

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

Successfully merging this pull request may close these issues.

3 participants