Having Trouble with a few bits RE: my adc Pi - Raspberry Pi Forums
hi all,
hoping me out. i'm pretty new raspi, python, linux etc, i've been working few weeks now.
programming has gone ok far have hit brick wall.
bought ab electronics adc pi, , followed instructions posted on following website:
http://elinux.org/rpi_adc_i2c_python
went until step 5 when got import quickwire error. followed instructions on forum:
http://www.raspberrypi.org/forums/viewtopic.php?t=59687
able run program, , see output expected, typing export line "export pythonpath=$pythonpath:$home/quick2wire-python-api" lxterminal. nothing else on page worked in terms of getting line run startup... have come conclusion file ~/.profile cant run during startup... right?
thing encountered file adc_demo.py run typing ./adc_demo.py , not tried many times sudo python adc_demo.py. concern because wish adapt code in file add modular program i'm building kind of data logger, run scrip prefix sudo python xxx.py. may simple misunderstanding of executable files...
questions are:
1. how can see programs run startup?
2. should put export line ensure active after every bootup?
3. why cant run file using command use run python files?
4. on earth "shebang"?
hoping me out. i'm pretty new raspi, python, linux etc, i've been working few weeks now.
programming has gone ok far have hit brick wall.
bought ab electronics adc pi, , followed instructions posted on following website:
http://elinux.org/rpi_adc_i2c_python
went until step 5 when got import quickwire error. followed instructions on forum:
http://www.raspberrypi.org/forums/viewtopic.php?t=59687
able run program, , see output expected, typing export line "export pythonpath=$pythonpath:$home/quick2wire-python-api" lxterminal. nothing else on page worked in terms of getting line run startup... have come conclusion file ~/.profile cant run during startup... right?
thing encountered file adc_demo.py run typing ./adc_demo.py , not tried many times sudo python adc_demo.py. concern because wish adapt code in file add modular program i'm building kind of data logger, run scrip prefix sudo python xxx.py. may simple misunderstanding of executable files...
questions are:
1. how can see programs run startup?
2. should put export line ensure active after every bootup?
3. why cant run file using command use run python files?
4. on earth "shebang"?
shebang strange arcane incantation on first line of executable script. tells bash (or other shell) program needs started interpret , run script.4. on earth "shebang"?
code: select all
#!/usr/bin/python3
raspberrypi
Comments
Post a Comment