Python basic_test_all.py error all the time!

Hi Everyone

Please help an absolute beginner in the whole raspberry pi universe.

Got it delivered a while ago. now assembled and started up. first the DI SD card seemed corrupted (never started up into GUI) so i followed instructions and returned the SD card on my Mac with the image provided from DI.

I can connect via the Mac Terminal via SSH and try to follow your instructions to start up the GoPiGo for the first time but I always com the error you’ll see below. Any advice?

pi@raspberrypi ~ cd Desktop/GoPiGo/ pi@raspberrypi ~/Desktop/GoPiGo cd Software/Python/
pi@raspberrypi ~/Desktop/GoPiGo/Software/Python $ python basic_test_all.py
Traceback (most recent call last):
File “basic_test_all.py”, line 2, in <module>
from gopigo import *
File “/home/pi/Desktop/GoPiGo/Software/Python/gopigo.py”, line 30, in <module>
bus = smbus.SMBus(1)
IOError: [Errno 13] Permission denied

Hey catullus, can you try using
sudo python basic_test_all.py

on the third line instead of
’python basic_test_all.py’

?

Oh! Yes that was it! Thank you very much John!!

Maybe this can be corrected on this site:
http://www.dexterindustries.com/GoPiGo/getting-started-with-your-gopigo-raspberry-pi-robot-kit/5-using-your-gopigo-for-the-first-time/

or is it obvious to anyone but me :wink: ?

Hey,
Just made the correction.

Thanks for letting us know about it.

-Karan