Skip to content

Commit

Permalink
Add dependency: smbus2
Browse files Browse the repository at this point in the history
Fixes:

```python
>>> import bme680                                                                                                                                                                                          
>>> sensor = bme680.BME680(bme680.I2C_ADDR_PRIMARY)                                                                                                                                                        
Traceback (most recent call last):                                                                                                                                                                         
  File "<stdin>", line 1, in <module>                                                                                                                                                                      
  File "/usr/local/lib/python3.7/dist-packages/bme680/__init__.py", line 22, in __init__                                                                                                                   
    import smbus                                                                                                                                                                                           
ModuleNotFoundError: No module named 'smbus'                                                                                                                                                               
```
  • Loading branch information
NicolaiSoeborg committed May 29, 2020
1 parent 7e6bdd0 commit 91bb131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@
classifiers=classifiers,
packages=['bme680'],
py_modules=[],
install_requires=[]
install_requires=['smbus2']
)

0 comments on commit 91bb131

Please sign in to comment.