Skip to content

Instantly share code, notes, and snippets.

@ymollard

ymollard/rosa.md

Created Jul 31, 2020
Embed
What would you like to do?
ssh pi@rosa.local
sudo service ioservice stop

python3 rosa-master/rpi/ws_server.py --verbose
Server up and running.

#  Connexion Python

Exception in thread Thread-5:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "rosa-master/rpi/ws_server.py", line 31, in _send_loop
    last_state = next(state_getter)
  File "rosa-master/rpi/ws_server.py", line 69, in stateGetter
    yield _get(color=True)
  File "rosa-master/rpi/ws_server.py", line 57, in _get
    for sensor in io.i2c_channels.keys()
  File "rosa-master/rpi/ws_server.py", line 57, in <dictcomp>
    for sensor in io.i2c_channels.keys()
  File "/home/pi/rosa-master/rpi/io_controller.py", line 109, in get_dist
    local_apds = APDS9960(i2c_bus)
  File "/home/pi/.local/lib/python3.7/site-packages/apds9960/device.py", line 39, in __init__
    self.dev_id = self._read_byte_data(APDS9960_REG_ID)
  File "/home/pi/.local/lib/python3.7/site-packages/apds9960/device.py", line 1071, in _read_byte_data
    return self.bus.read_byte_data(self.address, cmd)
OSError: [Errno 121] Remote I/O error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.