I have been following this tutorial to set-up my ADC Pi,
http://elinux.org/RPi_ADC_I2C_Python,
On third point of step 3, it says,
what is meant byenable Python to access the API by adding
export PYTHONPATH=$PYTHONPATH:$HOME/quick2wire-python-api to the end of ~/.profile
there ?~./profile
I simply typed this line in my Linux Terminal,
Code: Select all
export PYTHONPATH=$PYTHONPATH:$HOME/quick2wire-python-api
I then followed the step 5,
Code: Select all
Download and run the demo script
download it with: wget http://www.andrewscheller.co.uk/adc_demo.py
make it executable with: chmod +x adc_demo.py
run it with: ./adc_demo.pyWhat am I doing wrong ?root@raspberrypi:/home/pi# python adc_demo.py
Traceback (most recent call last):
File "adc_demo.py", line 11, in <module>
import quick2wire.i2c as i2c
ImportError: No module named quick2wire.i2c