Open
Description
raspberry pi
8.16.2
Hi
I recently updated to the latest version (jumping a lot of versions and also did an OS upgrade- which resulted in a failed update and a fresh install of mycodo ) the only thing I couldn't get to work is the display
not 100% certain if this has to do with the new OS or the new mycodo version.
Can you try out the following on your end -> just add the SSD 1306 128x64
as soon as I press activate I get the following error
according to the error there is a problem in the code - not the device - some variable not defined - thus you should be able to re-create this even if you don't have the display.
greatly appreciated any feedback I can get how to solve it..
2025-06-16 19:41:43,996 - ERROR - mycodo.function.display_ssd1306_oled_128x64_i2c_4lines_1f50b074 - Error initializing, trying again in 5 seconds: name 'DigitalInOut' is not defined
Traceback (most recent call last):
File "/opt/Mycodo/mycodo/abstract_base_controller.py", line 56, in try_initialize
self.initialize()
File "/opt/Mycodo/mycodo/functions/display_ssd1306_oled_128x64_i2c_4lines.py", line 378, in initialize
from mycodo.devices.lcd_pioled_circuitpython import PiOLEDCircuitpython
File "/opt/Mycodo/mycodo/devices/lcd_pioled_circuitpython.py", line 5, in <module>
import adafruit_ssd1306
File "/opt/Mycodo/env/lib/python3.11/site-packages/adafruit_ssd1306.py", line 17, in <module>
from adafruit_bus_device import i2c_device, spi_device
File "/opt/Mycodo/env/lib/python3.11/site-packages/adafruit_bus_device/spi_device.py", line 27, in <module>
class SPIDevice:
File "/opt/Mycodo/env/lib/python3.11/site-packages/adafruit_bus_device/spi_device.py", line 74, in SPIDevice
chip_select: Optional[DigitalInOut] = None,
^^^^^^^^^^^^
NameError: name 'DigitalInOut' is not defined
2025-06-16 19:41:49,007 - ERROR - mycodo.function.display_ssd1306_oled_128x64_i2c_4lines_1f50b074 - Error initializing, trying again in 5 seconds: name 'DigitalInOut' is not defined
Traceback (most recent call last):
File "/opt/Mycodo/mycodo/abstract_base_controller.py", line 56, in try_initialize
self.initialize()
File "/opt/Mycodo/mycodo/functions/display_ssd1306_oled_128x64_i2c_4lines.py", line 378, in initialize
from mycodo.devices.lcd_pioled_circuitpython import PiOLEDCircuitpython
File "/opt/Mycodo/mycodo/devices/lcd_pioled_circuitpython.py", line 5, in <module>
import adafruit_ssd1306
File "/opt/Mycodo/env/lib/python3.11/site-packages/adafruit_ssd1306.py", line 17, in <module>
from adafruit_bus_device import i2c_device, spi_device
File "/opt/Mycodo/env/lib/python3.11/site-packages/adafruit_bus_device/spi_device.py", line 27, in <module>
class SPIDevice:
File "/opt/Mycodo/env/lib/python3.11/site-packages/adafruit_bus_device/spi_device.py", line 74, in SPIDevice
chip_select: Optional[DigitalInOut] = None,
^^^^^^^^^^^^
NameError: name 'DigitalInOut' is not defined
2025-06-16 19:41:54,018 - ERROR - mycodo.function.display_ssd1306_oled_128x64_i2c_4lines_1f50b074 - Initialization errored 3 times; giving up. Maybe the following traceback can help diagnose the issue.
Traceback (most recent call last):
File "/opt/Mycodo/mycodo/abstract_base_controller.py", line 56, in try_initialize
self.initialize()
File "/opt/Mycodo/mycodo/functions/display_ssd1306_oled_128x64_i2c_4lines.py", line 378, in initialize
from mycodo.devices.lcd_pioled_circuitpython import PiOLEDCircuitpython
File "/opt/Mycodo/mycodo/devices/lcd_pioled_circuitpython.py", line 5, in <module>
import adafruit_ssd1306
File "/opt/Mycodo/env/lib/python3.11/site-packages/adafruit_ssd1306.py", line 17, in <module>
from adafruit_bus_device import i2c_device, spi_device
File "/opt/Mycodo/env/lib/python3.11/site-packages/adafruit_bus_device/spi_device.py", line 27, in <module>
class SPIDevice:
File "/opt/Mycodo/env/lib/python3.11/site-packages/adafruit_bus_device/spi_device.py", line 74, in SPIDevice
chip_select: Optional[DigitalInOut] = None,
^^^^^^^^^^^^
NameError: name 'DigitalInOut' is not defined
Metadata
Metadata
Assignees
Labels
No labels