Quantcast
Viewing all articles
Browse latest Browse all 5359

Troubleshooting • Unable to configure I2C - missing overlays directory

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:

Code:

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"NAME="Raspbian GNU/Linux"VERSION_ID="10"VERSION="10 (buster)"VERSION_CODENAME=busterID=raspbianID_LIKE=debian
Any help debugging this issue is greatly appreciated!

Statistics: Posted by quantumguy — Wed Aug 28, 2024 10:52 pm



Viewing all articles
Browse latest Browse all 5359

Trending Articles