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

dht11_example.py used #12

Open
patilomkar865 opened this issue Jun 4, 2019 · 3 comments
Open

dht11_example.py used #12

patilomkar865 opened this issue Jun 4, 2019 · 3 comments

Comments

@patilomkar865
Copy link

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 patilomkar865 changed the title dht11 dht11_example.py used Jun 4, 2019
@jacobfister
Copy link

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

@mikitachab
Copy link

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

@Oosl
Copy link

Oosl commented Oct 25, 2020

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

Thanks! it works.

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

4 participants