I'm trying to run a BME280 (IC2) on a PI3. The IC2 connection checks out so hardware looks ok. Attempting to run the Arduino eample:
#!/usr/bin/python
from Adafruit_BME280 import *
sensor = BME280(mode=BME280_OSAMPLE_8)
degrees = sensor.read_temperature()
pascals = sensor.read_pressure()
hectopascals = pascals / 100
humidity = sensor.read_humidity()
print 'Timestamp = {0:0.3f}'.format(sensor.t_fine)
print 'Temp = {0:0.3f} deg C'.format(degrees)
print 'Pressure = {0:0.2f} hPa'.format(hectopascals)
print 'Humidity = {0:0.2f} %'.format(humidity)
generates an import error "No module named Adafruit_BME280". I've followed the Arduino instructions for the GPIO and BME280 downloads/install but the results don't seem to make sense. Has anyone run this program successfully? If so how do I install the correct modules/libraries?