Enviro+ No module named bme280

Hi,

Recently purchased and Enviro+ unit and am having trouble getting any “weather” data from it although I can get most other sensor data including the particulate data.

In particular I obtain the following error:

Traceback (most recent call last):
  File "weather.py", line 4, in <module>
    from bme280 import BME280
ImportError: No module named bme280

To clarify what I have done so far is:

  1. Feshly installed OS
  2. Ensured everything was updated running “sudo apt update” and then “sudo apt full-upgrade”.
  3. I then ran the following install command:
    curl -sSL https://get.pimoroni.com/enviroplus | bash
  4. I then ran the example weather script as follows “python weather.py”. This produced the above error. (note that running “python particulates.py” or “python gas.py” the outputs are as expected.

Running “sudo i2cdetect -y 0” outputs the following:

0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – – – – – – – – – – – – –
10: – – – – – – – – – – – – – – – –
20: – – – 23 – – – – – – – – – – – –
30: – – – – – – – – – – – – – – – –
40: – – – – – – – – – 49 – – – – – –
50: – – – – – – – – – – – – – – – –
60: – – – – – – – – – – – – – – – –
70: – – – – – – 76 –

I have also tried installing manually and “all requirements are already satisfied”

sudo pip install pimoroni-bme280 pms5003 ltr559 st7735 ads1015

Thank you in advance.

Same issue, I think something is messed up in the repository.

Try running this from terminal.
pip install pimoroni-bme280==0.0.2
It got mine working. It was posted to an issue I opened on this on GitHub.

Thank you alphanumeric! This wored perfectly!