python - DHT22 Sensor import Adafruit_DHT error -



python - DHT22 Sensor import Adafruit_DHT error -

so i've attached dht22 humidity sensor beaglebone black rev c. i'm running os mavericks on macbook pro , followed directions provided adafruit on how utilize dht22

the website used pretty clear: https://learn.adafruit.com/dht-humidity-sensing-on-raspberry-pi-with-gdocs-logging/software-install-updated

also here github files cloned: https://github.com/adafruit/adafruit_python_dht

i set in these lines:

git clone https://github.com/adafruit/adafruit_python_dht.git cd adafruit_python_dht sudo apt-get upgrade sudo apt-get install build-essential python-dev sudo python setup.py install cd examples sudo ./adafruitdht.py 22 p8_11

i successful until lastly line. 1 time come in lastly line (sudo ./adafruitdht.py 22 p8_11), next error message:

traceback (most recent phone call last): file "./adafruitdht.py", line 23, in <module> import adafruit_dht importerror: no module named adafruit_dht

i know there adafruit_dht file somewhere because when ls in adafruit_python_dht directory, this:

root@beaglebone:~/adafruit_python_dht# ls adafruit_dht examples ez_setup.py ez_setup.pyc license readme.md setup.py source

i've tried reinstalling setup.py, outcome still same.

i've followed directions adafruit provided, can't seem past this. thought on going on? seems simple problem, it's proving 1 major obstacle in getting readings dht22. if there more info needed help reply problem please allow me know.

it seems script cannot find "adafruit_dht" module. there 2 ways.

run file in terminal "python adafruit_python_dht"

add next code @ first line of script. should set #! (shebang) in python scripts

python import terminal sensor beagleboneblack

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -