From 91bb131713322486cf06182bd004a1e17ad96382 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolai=20S=C3=B8borg?= Date: Fri, 29 May 2020 15:35:54 +0000 Subject: [PATCH 1/2] Add dependency: smbus2 Fixes: ```python >>> import bme680 >>> sensor = bme680.BME680(bme680.I2C_ADDR_PRIMARY) Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.7/dist-packages/bme680/__init__.py", line 22, in __init__ import smbus ModuleNotFoundError: No module named 'smbus' ``` --- library/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/setup.py b/library/setup.py index f40026b..3e0c0c9 100755 --- a/library/setup.py +++ b/library/setup.py @@ -50,5 +50,5 @@ setup( classifiers=classifiers, packages=['bme680'], py_modules=[], - install_requires=[] + install_requires=['smbus2'] ) From 02ca7a435310b650ba9aa6fe0c4cbd2622760bad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolai=20S=C3=B8borg?= Date: Sun, 1 Nov 2020 01:11:16 +0000 Subject: [PATCH 2/2] Update dependency requirement If anyone is reading the file they will know to install `python3-smbus`, but if someone just do a quick `pip3 install bme680` then make sure to pull smbus from PyPI --- library/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/setup.py b/library/setup.py index 3e0c0c9..996822e 100755 --- a/library/setup.py +++ b/library/setup.py @@ -50,5 +50,5 @@ setup( classifiers=classifiers, packages=['bme680'], py_modules=[], - install_requires=['smbus2'] + install_requires=['smbus'] # preferably: install `python3-smbus` instead of relying on this )