-
Notifications
You must be signed in to change notification settings - Fork 25
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 bme280 when running all-values.py #12
Comments
Same for me. Looks like the packaging for the latest version (0.1.0 released today) maybe an issue. After installing the previous version: |
I'll have to give that a try. |
That has got mine working, thanks again. =) |
The problem is the wheel files. They don't contain any code:
|
@tedder ugh! Good spot. I had put the |
I still have this problem. If I run the program using IDLE python(3.7.3) it doesn't work but if I run it in the cmd terminal using 'python all-values.py' it does work. I have tried sudo pip3 install pimoroni-bme280 smbus and this does not solve it. |
@rickybalboa63 if you haven't discovered so already, you need to be explicit about upgrading a package:
And it sometimes pays to refer to the specific Python version since... well Python can get dicey relating
|
This package seem to be still broken. Tried to run in on Pi3 in either Python2 or Python3 environment with same results:
Device is present in i2c detect and package was installed using both github with latest code or via pip.
|
Try running |
Fingers crossed I don't break everything again with v1.0.0... |
Fresh install of the latest PiOS on a Pi Zero W.
pHat Stack with Breakout Garden Mini i2c SPI and Mini i2c
BME280, RV3028, LTR-599 in the mini i2c BG
0.96 SPI Color LCD in the mini i2c SPI BG
My BME280 breakout is giving me the following error when I run the all-values.py file.
Either from thoony or via command line.
from bme280 import BME280
ImportError: No module named bme280
i2c is enabled and it is detected.
I have run the following.
sudo pip install pimoroni-bme280 smbus
sudo pip3 install pimoroni-bme280 smbus
and also did the following
git clone https://github.com/pimoroni/bme280-python
cd bme280-python
sudo ./install.sh
and rebooted several times.
Tried two different BME280’s, one that was working before I reimaged my SD card, and one new one I just received today.
Both give the above error.
The text was updated successfully, but these errors were encountered: