Open patilomkar865 opened 5 years ago
I have the same issue. Couldn't figure out why.
please try to change name of a script file to something different from library name you want to use.
please try to change name of a script file to something different from library name you want to use.
Thanks! it works.
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'