DHT11_Python icon indicating copy to clipboard operation
DHT11_Python copied to clipboard

dht11_example.py used

Open patilomkar865 opened this issue 5 years ago • 3 comments

pi@raspberrypi:~ $ python dht11.py Traceback (most recent call last): File "dht11.py", line 2, in import dht11 File "/home/pi/dht11.py", line 12, in instance = dht11.DHT11(pin=14) AttributeError: 'module' object has no attribute 'DHT11'

patilomkar865 avatar Jun 04 '19 17:06 patilomkar865

I have the same issue. Couldn't figure out why.

jacobfister avatar Apr 17 '20 19:04 jacobfister

please try to change name of a script file to something different from library name you want to use.

mikitachab avatar Jun 08 '20 09:06 mikitachab

please try to change name of a script file to something different from library name you want to use.

Thanks! it works.

Oosl avatar Oct 25 '20 14:10 Oosl