openenergymonitor / EmonScripts

Emoncms Stack Installation and Update scripts
16 stars 30 forks source link

Pi Zero latest bookworm smbus issue #190

Closed TrystanLea closed 9 months ago

TrystanLea commented 10 months ago

Pi Zero latest bookworm

ERROR:

pi@emonpi:/opt/openenergymonitor/emonpi/lcd $ python3 emonPiLCD.py 
Traceback (most recent call last):
  File "/opt/openenergymonitor/emonpi/lcd/emonPiLCD.py", line 6, in <module>
    bus = smbus.SMBus(1)
          ^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory

Solution enable i2c interface via sudo raspi-config

TrystanLea commented 9 months ago

Fixed in install script