When I attempt to run a script such as basic_robot.py, I get :
Traceback (most recent call last):
File “/home/pi/GoPiGo/Software/Python/Examples/Basic_Robot_Control_GUI/basic_robot_gui.py”, line 45, in <module>
from gopigo import * #Has the basic functions for controlling the GoPiGo Robot
ImportError: No module named gopigo
looks like the install script did not work properly for you. Can you try running it again sudo chmod +x install.sh and then sudo ./install.sh and then try again
However, I continue to get the error. Please advise.
Traceback (most recent call last):
File “basic_robot.py”, line 39, in <module>
from gopigo import * #Has the basic functions for controlling the GoPiGo Robot
ImportError: No module named gopigo
I have attached a text file that includes the Traceback, the text generated by >>python setup.py install, and the log file from the complete test under truobleshooting.
It worked! Thank you
Now, I am trying to do “Basic Robot Control” and when I type “sudo python basic_robot.py”, I get:
Traceback (most recent call last):
File "basic_robot.py", line 39, in <module>
from gopigo import * #Has the basic functions for controlling the GoPiGo Robot
File "build/bdist.macosx-10.5-x86_64/egg/gopigo.py", line 33, in <module>
ImportError: No module named serial
Hi Keisuke,
How are you running this program on the GoPiGo. Which image are you using on the raspberry Pi. If you are using your own image, have you installed all the packages needed for the GoPiGo. If you are running the Dexter Industries image, can you run the troubleshooting script by following the instructions from here: https://www.youtube.com/watch?v=ZMadpIEYq5o and post the output here.
Hi keisuke826,
Are you using a dexter Industries raspbian for Robots Image, if so what is the version in the versions file on the Desktop. Can you also send a screenshot of the error you are getting.
Hi Keisuke,
How are you exactly running the program. Are you logged in via SSH. After you get the error, can you run i2cdetect -y 1 and avrdude -c gpio -p m328p and pwd and post the output of all the 3 commands. Did the motors on the GoPiGo work when you ran the troubleshooting script.