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 #1

Open
enedrio opened this issue Jul 24, 2019 · 4 comments
Open

no module named smbus #1

enedrio opened this issue Jul 24, 2019 · 4 comments

Comments

@enedrio
Copy link

enedrio commented Jul 24, 2019

Hey there,

I've installed your container in my balena project, but unfortunately it doesn't start correctly.
I get the following error with traceback:

24.07.19 16:38:47 (+0200)  pijuice  Traceback (most recent call last):
24.07.19 16:38:47 (+0200)  pijuice    File "src/main.py", line 5, in <module>
24.07.19 16:38:47 (+0200)  pijuice      from pijuice import PiJuice
24.07.19 16:38:47 (+0200)  pijuice    File "/usr/lib/python3/dist-packages/pijuice.py", line 10, in <module>
24.07.19 16:38:47 (+0200)  pijuice      from smbus import SMBus
24.07.19 16:38:47 (+0200)  pijuice  ModuleNotFoundError: No module named 'smbus'

Steps to reproduce

  1. I cloned the repo.
  2. Copied the pijuice folder into my project.
  3. Included the build instruction in my docker-compose.yml. Stating the startup command explicitly via the command key.
  4. Uploaded the new version of the project to balena cloud.

Any help would be much appreciated. I would love to see this running. :)

Best,
Eric

@chrisys
Copy link
Member

chrisys commented Sep 24, 2019

Hey @enedrio is this still an issue for you? I just ran a test with this and it seemed to work OK. It would be interesting to know what device type you're using.

@enedrio
Copy link
Author

enedrio commented Dec 21, 2019

Hey @chrisys ,
I believe it was either a raspberry pi 3 or an RPi 3 A+
I believe I will give it a shot in January again, to see how it goes.
Right now my pijuice is not in reach to try this. Sorry

@adamlarsonlee
Copy link

I'm getting this well on a Rpi 4 B.

@capzrfun
Copy link

I am also getting this on the RPI4, seems the SMbus module does not import the same as it did with Python 3.5, but im running Python3.11 on my image, trying to figure out how to get Python3.5 to work on Balena

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

No branches or pull requests

4 participants