Thanks for answering, the given website is not really helpful for someone without python experience to find out which version number is installed or used. Problem: I got no clue if apt packages differ from pip installed packages etc.
I upgraded to raspbian os bullseye in order to find out if there’s a solution. When running the VOC package as described at
then doing as advised by the wiki:
|
cd Seeed_Python_SGP30 |
|
sudo python setup.py install |
There’s a short mention of the installed python-smbus2 package:
Best match: smbus2 0.4.1 Adding smbus2 0.4.1 to easy-install.pth file
Running the example script throws the same error as before, though:
||cd examples|
||python sgp30_simpleread.py|
Traceback (most recent call last): File “/home/pi/HAT/Seeed_Python_SGP30/examples/sgp30_simpleread.py”, line 1, in import seeed_sgp30 File “”, line 259, in load_module File “/usr/local/lib/python3.9/dist-packages/seeed_python_sgp30-0.0.0-py3.9.egg/seeed_sgp30.py”, line 1, in File “/usr/local/lib/python3.9/dist-packages/sgp30-0.1.6-py3.9.egg/sgp30/init.py”, line 1, in from .sgp30 import Sgp30 File “/usr/local/lib/python3.9/dist-packages/sgp30-0.1.6-py3.9.egg/sgp30/sgp30.py”, line 2, in from smbus2 import SMBusWrapper, SMBus, i2c_msg ImportError: cannot import name ‘SMBusWrapper’ from ‘smbus2’ (/usr/local/lib/python3.9/dist-packages/smbus2/init
Could you ask your engineers, which version numbers and which combination in terms of installers should work, please?
I really wonder why this problem occurs on a default raspbian os installation, this sensor should be quite widespread and so should be the error as I followed the wiki standard installation instructions…?!