Modules not found

Shipmates,

Recently acquired the BME280 sensor along with the breakout garden mini.

After attaching both devices followed Pimoroni’s cut n paste commands to get them up and running.

Got the following errors running BME280 install;

from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "setup.py", line 28, in <module>
    from distutils.core import setup
ModuleNotFoundError: No module named 'distutils.core'

Tried to run the all-values script and got following error;

Traceback (most recent call last):
  File "./all-values.py", line 7, in <module>
    from smbus import SMBus
ImportError: No module named smbus

Bit baffled now.

Geffers

I have the Mini. I followed the instructions from here using the master.zip file.


You need to have your i2c breakouts plugged in when you run the install.sh.
Anything thats SPI you’ll have to install manually. You could also do that for the BME280.
Just follow the instructions here.

You should only need to do one or the other not both. Make sure i2c and SPI are enabled.
I don’t know why you got that error? I’d just start over from scratch, if you still have issues post back.