Adafruit motor hat library examples not working

I wanted to try the adafruit motor library examples on the waveshare jetbot but i get the error could not determine the default i2c bus for the platform.Please help
Traceback (most recent call last):
File “dc.py”, line 10, in
mh = Adafruit_MotorHAT(addr=0x60)
File “/usr/local/lib/python3.6/dist-packages/Adafruit_MotorHAT-1.4.0-py3.6.egg/Adafruit_MotorHAT/Adafruit_MotorHAT_Motors.py”, line 231, in init
self._pwm = PWM(addr, debug=False, i2c=i2c, i2c_bus=i2c_bus)
File “/usr/local/lib/python3.6/dist-packages/Adafruit_MotorHAT-1.4.0-py3.6.egg/Adafruit_MotorHAT/Adafruit_PWM_Servo_Driver.py”, line 57, in init
self.i2c = get_i2c_device(address, i2c, i2c_bus)
File “/usr/local/lib/python3.6/dist-packages/Adafruit_MotorHAT-1.4.0-py3.6.egg/Adafruit_MotorHAT/Adafruit_PWM_Servo_Driver.py”, line 21, in get_i2c_device
return I2C.get_i2c_device(address)
File “/usr/local/lib/python3.6/dist-packages/Adafruit_GPIO-1.0.4-py3.6.egg/Adafruit_GPIO/I2C.py”, line 65, in get_i2c_device
File “/usr/local/lib/python3.6/dist-packages/Adafruit_GPIO-1.0.4-py3.6.egg/Adafruit_GPIO/I2C.py”, line 57, in get_default_bus
RuntimeError: Could not determine default I2C bus for platform.

the RobotTest file is renamed to dc.py

According to the Waveshare JetBot WiKi, you need to use their code since the driver is different for their version of the JetBot:
https://www.waveshare.com/wiki/JetBot_AI_Kit

This might help as well:
https://forums.developer.nvidia.com/t/jetbot-motors-are-not-moving/75607/20