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

ImportError: No module named smbus #6

Open
wybiral opened this issue Aug 31, 2018 · 8 comments
Open

ImportError: No module named smbus #6

wybiral opened this issue Aug 31, 2018 · 8 comments
Assignees
Labels
enhancement New feature or request

Comments

@wybiral
Copy link

wybiral commented Aug 31, 2018

On a fresh install of Raspbian lite I get this error when trying to run install.sh:

Traceback (most recent call last):
  File "autodetect.py", line 2, in <module>
    import smbus
ImportError: No module named smbus
Sorry, I couldn't find any breakouts!

Installing the Python smbus module fixed this issue but I thought it might be useful to document that here.

@Gadgetoid Gadgetoid added the enhancement New feature or request label Sep 5, 2018
@Gadgetoid Gadgetoid self-assigned this Sep 5, 2018
@koaning
Copy link
Contributor

koaning commented Oct 6, 2018

Similar issue here: pimoroni/vl53l1x-python#9

@sigmaeo
Copy link

sigmaeo commented Dec 9, 2018

For the beginners a bit more in detail: Install it with:
sudo apt-get install python-pip
sudo apt install python-smbus

@quintest
Copy link

quintest commented Apr 2, 2019

I noticed when using the lite 2018 11 edition of Raspbian I had similar issues, using the full edition there were no errors regarding smbus.

@phrostylicious
Copy link

I noticed when using the lite 2018 11 edition of Raspbian I had similar issues, using the full edition there were no errors regarding smbus.

Same here - has anyone figured out what seems to be missing from the Raspbian Lite version that causes this? And ideally, how to fix it?

@jjsanderson
Copy link

I'm seeing the same issue with current Raspbian Raspberry Pi OS. Specifically the Lite install on a Pi Zero W. Some reports on Pimoroni message boards/Discord suggest @sigmaeo's steps (and a reboot) are all that's needed, but that didn't work for me.

However, running through the installers for the specific breakouts I have installed, I find they work as expected while connected through the Breakout Garden.

So… everything is working for me except this clever auto-installer.

@Gadgetoid
Copy link
Member

So… everything is working for me except this clever auto-installer.

This is what I get for trying to be clever. I think this auto installer is quite out of date, too, so I need to add shaking it up to my TODO list.

@jjsanderson
Copy link

I keep promising myself that I’ll learn the ropes of contributing by submitting documentation PRs. Of course, this seems perennially the work of some future me. 😕

@Gadgetoid
Copy link
Member

If you find the time/inclination I'm always happy to talk you through the do's and don'ts... insofar as I understand them. Even the smallest fixes are greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants