Errno 2 with basic_test_all.py


#1

Hey all! Picked up a GoPiGo kit yesterday, and I’ve been having issues with setting up the pi to control it. Been following the instructions for option 3 here: http://www.dexterindustries.com/GoPiGo/sdcard/. So, the first time, I was missing smbus. No problem, I download the files using apt-get, and it no longer told me it was missing the smbus module. However, I get this unique error now:

Traceback (most recent call last):
File “./basic_test_all.py”, line 22, in <module>
from gopigo import *
File “/home/pi/GoPiGo/Software/Python/gopigo.py”, line 46, in <module>
bus = smbus.SMBus(1)
IOError: [Errno 2] No such file or directory

Some researching tells me that a file is not being found. Unfortunately, the most important piece of info is missing from the error message: the file!

Any suggestions? I tried going into the config.txt file to enable i2c, and then going into advance settings, but this didn’t seem to remedy the situation.

For reference, I am using a Raspberry Pi 2 with Debian Wheezy. Any other information needed I’ll gladly give. All help is appreciated!


#2

Hey,
If you are running your own SD card, can you just make sure that you have run the install script from here: https://github.com/DexterInd/GoPiGo/blob/master/Setup/install.sh. If you have done that, make sure to run the scripts as sudo. Can you paste the screenshot of the command and the result if this does not work.

-Karan