I want to be able to use the SMBus Python library, but when I try, I hit the following error:
self.bus = smbus.SMBus(bus)
IOError: [Errno 2] No such file or directory
From Googling, I found that I need to enable I2C from the raspi-config CLI, but when I try to do that, I get this error:
* Failed to find overlays directory
Here's distro information (from running cat /etc/*-release) in case it may be of use:
Any help debugging this issue is greatly appreciated!
self.bus = smbus.SMBus(bus)
IOError: [Errno 2] No such file or directory
From Googling, I found that I need to enable I2C from the raspi-config CLI, but when I try to do that, I get this error:
* Failed to find overlays directory
Here's distro information (from running cat /etc/*-release) in case it may be of use:
Code:
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"NAME="Raspbian GNU/Linux"VERSION_ID="10"VERSION="10 (buster)"VERSION_CODENAME=busterID=raspbianID_LIKE=debian
Statistics: Posted by quantumguy — Wed Aug 28, 2024 10:52 pm