Closed joshrawls closed 3 years ago
Uh, I'm seeing the same error on macOS Big Sur 11.2.3. Did you manage to solve it in any way?
@g5pw does this error happen intermittently, or every time?
Looks like it happens every time, and the GUI locks up :/
I never found a fix, so I stopped using the product and got a good oscilloscope that has decoding.
Hey, I think the issue still exists, regardless of @joshrawls' usage of the product. I got one, and it looks nice, and I'd like to use it if possible 😅 I'll try to test the UI part, but from a quick glance it looks like a firmware hang, i.e. the device is not sending any more data. Could you re-open this, @jamesbowman ?
I have the device working, occasionally. When it doesn't work I get a few errors in terminal.
I'm still learning programming in general and new to Python, so any help would be appreciated. Thanks!
The first error only appears once:
Traceback (most recent call last): File "/usr/local/bin/i2cgui.py", line 342, in refresh devs = self.sd.scan(True) File "/Library/Python/2.7/site-packages/i2cdriver.py", line 180, in scan d = struct.unpack("112c", self.ser.read(112)) struct.error: unpack requires a string argument of length 112
The second error loops until I terminate it:
Traceback (most recent call last): File "/usr/local/bin/i2cgui.py", line 323, in refresh self.sd.getstatus() File "/Library/Python/2.7/site-packages/i2cdriver.py", line 449, in getstatus ccitt_crc) = body.split() ValueError: need more than 0 values to unpack