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

No module named smbus (sorry if not correct label..) #44

Closed
1 task
JoshyOnMars opened this issue Jan 4, 2022 · 0 comments
Closed
1 task

No module named smbus (sorry if not correct label..) #44

JoshyOnMars opened this issue Jan 4, 2022 · 0 comments

Comments

@JoshyOnMars
Copy link

JoshyOnMars commented Jan 4, 2022


name: Compatibility
about: Issues specifically related to Python 3.x usage
title: ''
labels: compatibility
assignees: ''


Describe the issue
I run the command bellow and it says that error, even though i have smbus installed...
How could i fix this?

Executed command and associated error

python demo_lcd.py
Traceback (most recent call last):
  File "demo_lcd.py", line 8, in <module>
    import drivers
  File "/home/pi/lcd/drivers/__init__.py", line 1, in <module>
    from .i2c_dev import Lcd, CustomCharacters
  File "/home/pi/lcd/drivers/i2c_dev.py", line 1, in <module>
    from smbus import SMBus
ImportError: No module named smbus

Host and software info

  • RPi board version: Raspberry Pi 4 Model B Rev 1.2
  • OS version: Raspbian GNU/Linux 11 (bullseye)
  • Python version : Python 2.7.18

Checklist

  • [ Check ] I have watched and followed the instructions in the Youtube tutorial.

  • [ Check ] I have searched open and closed issues for either an identical or similar bug before reporting this new one.

  • I have used Python 3.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant