Suddenly I get an error when using the robot.stop() function. The error makes the program quit, so if i use it in a program the entire program stops. This is the error message I get:
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/jetbot-0.3.0-py3.6.egg/jetbot/motor.py", line 60, in _release
self._motor.disable()
AttributeError: 'NoneType' object has no attribute 'disable'
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/jetbot-0.3.0-py3.6.egg/jetbot/motor.py", line 60, in _release
self._motor.disable()
AttributeError: 'NoneType' object has no attribute 'disable'
Everything worked fine before, and have done the collision avoidance example and it worked.
Now I run into it with examples too. The robot drives by using the commands and by setting speed to the motor, but throws this error and quits the program.
Hey there, I tried testing this out with the newer v01-10 image and the jetson v2 (one camera connector jetson); however, I can’t seem to duplicate the error.
Did you happen to modify the files at all? Here is a link to the [GitHub repo for a reference.
I havent modified the files. Now I only get the error when finishing a code and its not breaking every program I try and run. Im gonna test with a new motorcontroller and image on another unit. Thank you for inputs.
Since you mentioned that the code worked previously, in the GitHub issue, it definitely leads me to believe that something has changed in either the motor.py, robot.py, or the example notebook files. However, now that you are saying, “the error are just showing up after a program has run, and not during so its not breaking the system anymore,” I am a little confused to how that method is getting called/implemented. Is this for a custom code/script and not one of the example notebooks provided for the Jetbot?