Jet Racer Basic-Motion Error

Running the jetracer basic motion on a Jupiter laptop produced the following results:


TypeError Traceback (most recent call last)
in
1 from jetracer.nvidia_racecar import NvidiaRacecar
2
----> 3 car = NvidiaRacecar()

/usr/local/lib/python3.6/dist-packages/jetracer-0.0.0-py3.6.egg/jetracer/nvidia_racecar.py in init(self, *args, **kwargs)
15 def init(self, *args, **kwargs):
16 super(NvidiaRacecar, self).init(*args, **kwargs)
—> 17 self.kit = ServoKit(channels=16, address=self.i2c_address)
18 self.steering_motor = self.kit.continuous_servo[self.steering_channel]
19 self.throttle_motor = self.kit.continuous_servo[self.throttle_channel]

/usr/local/lib/python3.6/dist-packages/adafruit_circuitpython_servokit-1.1.0-py3.6.egg/adafruit_servokit.py in init(self, channels, i2c, address, reference_clock_speed)
85 i2c = board.I2C()
86 self._pca = PCA9685(i2c, address=address, reference_clock_speed=reference_clock_speed)
—> 87 self._pca.frequency = 50
88
89 self._servo = _Servo(self)

/usr/local/lib/python3.6/dist-packages/adafruit_circuitpython_pca9685-3.2.5-py3.6.egg/adafruit_pca9685.py in frequency(self, freq)
150 if prescale < 3:
151 raise ValueError(“PCA9685 cannot output at the given frequency”)
→ 152 old_mode = self.mode1_reg # Mode 1
153 self.mode1_reg = (old_mode & 0x7F) | 0x10 # Mode 1, sleep
154 self.prescale_reg = prescale # Prescale

/usr/local/lib/python3.6/dist-packages/adafruit_circuitpython_register-1.7.1-py3.6.egg/adafruit_register/i2c_struct.py in get(self, obj, objtype)
85 with obj.i2c_device as i2c:
86 i2c.write_then_readinto(buf, buf,
—> 87 out_end=1, in_start=1, stop=False)
88 return struct.unpack_from(self.format, buf, 1)[0]
89

/usr/local/lib/python3.6/dist-packages/adafruit_circuitpython_busdevice-4.1.0-py3.6.egg/adafruit_bus_device/i2c_device.py in write_then_readinto(self, out_buffer, in_buffer, out_start, out_end, in_start, in_end, stop)
134 self.i2c.writeto_then_readfrom(self.device_address, out_buffer, in_buffer,
135 out_start=out_start, out_end=out_end,
→ 136 in_start=in_start, in_end=in_end)
137
138 else:

/usr/local/lib/python3.6/dist-packages/Adafruit_Blinka-3.3.3-py3.6.egg/busio.py in writeto_then_readfrom(self, address, buffer_out, buffer_in, out_start, out_end, in_start, in_end, stop)
87 return self._i2c.writeto_then_readfrom(address, buffer_out, buffer_in,
88 out_start=out_start, out_end=out_end,
—> 89 in_start=in_start, in_end=in_end, stop=stop)
90
91 class SPI(Lockable):

/usr/local/lib/python3.6/dist-packages/Adafruit_Blinka-3.3.3-py3.6.egg/adafruit_blinka/microcontroller/generic_linux/i2c.py in writeto_then_readfrom(self, address, buffer_out, buffer_in, out_start, out_end, in_start, in_end, stop)
59 else:
60 # To generate without a stop, do in one block transaction
—> 61 readin = self._i2c_bus.read_i2c_block_data(address, buffer_out[out_start:out_end], in_end-in_start)
62 for i in range(in_end-in_start):
63 buffer_in[i+in_start] = readin[i]

/usr/local/lib/python3.6/dist-packages/Adafruit_PureIO-0.2.3-py3.6.egg/Adafruit_PureIO/smbus.py in read_i2c_block_data(self, addr, cmd, length)
205 assert self._device is not None, ‘Bus must be opened before operations are made against it!’
206 # Build ctypes values to marshall between ioctl and Python.
→ 207 reg = c_uint8(cmd)
208 result = create_string_buffer(length)
209 # Build ioctl request.

TypeError: an integer is required (got type bytearray)

what is problem?
At first it worked fine, but I had a problem like this after formatting and reinstalling the sd card.

Same here, what helped was to update the Adafruit-PureIO package:
“sudo pip3 install Adafruit-PureIO --upgrade”

Thanks for help