Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote I/O error #20

Closed
rbenamotz opened this issue Oct 30, 2020 · 0 comments
Closed

Remote I/O error #20

rbenamotz opened this issue Oct 30, 2020 · 0 comments

Comments

@rbenamotz
Copy link
Owner

[Errno 121] Remote I/O error
Traceback (most recent call last):
File "./program.py", line 54, in
cycle()
File "./program.py", line 41, in cycle
event = state.do_step()
File "/home/pi/LEMPA/states/wait_for_button_state.py", line 39, in do_step
if self.button_erase.loop() or self.button_prog.loop():
File "/home/pi/LEMPA/states/hat_button.py", line 68, in loop
return self.__check_long_click()
File "/home/pi/LEMPA/states/hat_button.py", line 43, in __check_long_click
self.app.print(self.long_click_action_name + "? " + str(pt))
File "/home/pi/LEMPA/application.py", line 58, in print
v.print(txt)
File "/home/pi/LEMPA/views/display_view.py", line 88, in print
self.__refresh()
File "/home/pi/LEMPA/views/display_view.py", line 78, in __refresh
self.disp.display()
File "/home/pi/.local/lib/python3.7/site-packages/Adafruit_SSD1306/SSD1306.py", line 182, in display
self._i2c.writeList(control, self._buffer[i:i+16])
File "/home/pi/.local/lib/python3.7/site-packages/Adafruit_GPIO/I2C.py", line 127, in writeList
self._bus.write_i2c_block_data(self._address, register, data)
File "/home/pi/.local/lib/python3.7/site-packages/Adafruit_PureIO/smbus.py", line 364, in write_i2c_block_data
self._device.write(data)
OSError: [Errno 121] Remote I/O error

                          Exception

Traceback (most recent call last):
File "./program.py", line 54, in
cycle()
File "./program.py", line 41, in cycle
event = state.do_step()
File "/home/pi/LEMPA/states/wait_for_button_state.py", line 39, in do_step
if self.button_erase.loop() or self.button_prog.loop():
File "/home/pi/LEMPA/states/hat_button.py", line 68, in loop
return self.__check_long_click()
File "/home/pi/LEMPA/states/hat_button.py", line 43, in __check_long_click
self.app.print(self.long_click_action_name + "? " + str(pt))
File "/home/pi/LEMPA/application.py", line 58, in print
v.print(txt)
File "/home/pi/LEMPA/views/display_view.py", line 88, in print
self.__refresh()
File "/home/pi/LEMPA/views/display_view.py", line 78, in __refresh
self.disp.display()
File "/home/pi/.local/lib/python3.7/site-packages/Adafruit_SSD1306/SSD1306.py", line 182, in display
self._i2c.writeList(control, self._buffer[i:i+16])
File "/home/pi/.local/lib/python3.7/site-packages/Adafruit_GPIO/I2C.py", line 127, in writeList
self._bus.write_i2c_block_data(self._address, register, data)
File "/home/pi/.local/lib/python3.7/site-packages/Adafruit_PureIO/smbus.py", line 364, in write_i2c_block_data
self._device.write(data)
OSError: [Errno 121] Remote I/O error

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./program.py", line 62, in
state = load_state(Application.APP_STATE_EXCEPTION)
File "./program.py", line 31, in load_state
app.app_state = code
File "/home/pi/LEMPA/application.py", line 92, in app_state
v.header()
File "/home/pi/LEMPA/views/display_view.py", line 98, in header
self.__refresh()
File "/home/pi/LEMPA/views/display_view.py", line 78, in __refresh
self.disp.display()
File "/home/pi/.local/lib/python3.7/site-packages/Adafruit_SSD1306/SSD1306.py", line 168, in display
self.command(0) # Column start address. (0 = reset)
File "/home/pi/.local/lib/python3.7/site-packages/Adafruit_SSD1306/SSD1306.py", line 129, in command
self._i2c.write8(control, c)
File "/home/pi/.local/lib/python3.7/site-packages/Adafruit_GPIO/I2C.py", line 114, in write8
self._bus.write_byte_data(self._address, register, value)
File "/home/pi/.local/lib/python3.7/site-packages/Adafruit_PureIO/smbus.py", line 322, in write_byte_data
self._device.write(data)
OSError: [Errno 121] Remote I/O error

@rbenamotz rbenamotz changed the title Remove I/O error Remote I/O error Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant