VernierST / godirect-py

A Python module for reading from Vernier Go Direct® Sensors using USB or BLE.
GNU General Public License v3.0
8 stars 9 forks source link

Problem with gdx.read() in any of the examples - Linux #6

Open claudirae opened 4 years ago

claudirae commented 4 years ago

File "/root/anaconda2/lib/python3.7/site-packages/godirect/device.py", line 390, in _GDX_read_measurement return self._GDX_handle_measurement(response)

File "/root/anaconda2/lib/python3.7/site-packages/godirect/device.py", line 418, in _GDX_handle_measurement sensors[0] = self._sensors[sensor_number]

IndexError: list assignment index out of range

nro2 commented 4 years ago

Sorry it took so long to see this.

Linux testing currently works on our end, so I am not sure what the issue is here without a little more info. What were you trying to do here when this happened? Do you have any other code that you can share that led to this that could help us track down the issue? Are you using BLE or USB? If it is BLE, we pushed a new version of GoDirect (1.0.6) that handles the looping that definitely works with Linux.