Hello,
I am currently working through a Python Programming tutorial (https://pythonprogramming.net/programming-autonomous-robot-gopigo-tutorial/?completed=/usb-foam-cannon-robot-gopigo-tutorial/) and continue to receive the following error message: “enable_servo()” is not defined.
I would appreciate any clarification that explains why this is occurring and what needs to be to solve this issue.
Many thanks.
cleoqc
2
Hello @Go_Pi_Go
Let’s try a couple of things.
Do you have the following line near the top of your code?
from gopigo import *
Are you using Raspbian for Robots, or plain Raspbian? If it’s plain Raspbian, have you installed the GoPiGo library?
Cleo
Hi @cleoqc
I accidentally omitted “from gopigo import *” from my code. Wish I would have caught that…
Thanks for your assistance.
cleoqc
4
@Go_Pi_Go,
thank you for coming back and letting me know it worked.
I wish you success with the rest of the tutorial!
Cleo
cleoqc
Closed
5
This topic was automatically closed after 26 hours. New replies are no longer allowed.