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 “”, 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/”, 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/”, 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/”, 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/”, line 65, in get_i2c_device
File “/usr/local/lib/python3.6/dist-packages/Adafruit_GPIO-1.0.4-py3.6.egg/Adafruit_GPIO/”, line 57, in get_default_bus
RuntimeError: Could not determine default I2C bus for platform.

the RobotTest file is renamed to

According to the Waveshare JetBot WiKi, you need to use their code since the driver is different for their version of the JetBot:

This might help as well: