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

Check for smbus loading issues #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gitgrift
Copy link

@gitgrift gitgrift commented Sep 21, 2020

If the i2c kernel modules are not loaded or the user does not have the correct permissions the smbus.SMBus() call will fail. Wrap the call in try/except to catch this.

Fixes: #7

Signed-off-by: Patrick Talbert [email protected]

If the i2c kernel modules are not loaded or the user does not have the correct permissions the smbus.SMBus() call will fail. Wrap the call in try/except to catch this.

Fixes: spapadim#4

Signed-off-by: Patrick Talbert <[email protected]>
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

Successfully merging this pull request may close these issues.

FileNotFoundError: [Errno 2] No such file or directory for smbus.SMBus(_SMBUS_DEV)
1 participant