Getting an error when running motors on assembly-guide-for-sparkfun-jetbot-ai-kit

Hi,

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'

Any tips to fix this?

Hi, thanks for posting.

When using the normal complete example code do you run into the same issues with the Jetbot? Which examples have you successfully tried?

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.

We will conduct some testing as soon as possible. COVID policy for tech support does apply so it may take 10-15 business days:

https://www.sparkfun.com/covid19

We will update this forum as soon as we have conducted tests and have a better idea.

Cheers for now.

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.

If you accidentally modified the files, you can follow these instructions for building a card from scratch: https://github.com/NVIDIA-AI-IOT/jetbot … om-Scratch

  • - Start from step 9, but use the link to our repo instead of cloning Nvidia's.
  • - If you clone Nvidia's repo, you will run into issues because of the hardware difference.
  • ](https://github.com/sparkfun/jetbot)

    Hi,

    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?