pi3g / bme68x-python-library

Python 3 Library for BME688 and BME680 (Bosch Sensortec sensors), supports Bosch BSEC
MIT License
44 stars 17 forks source link

setup.py install don't work with new BOSH file #18

Open Furydu76 opened 1 year ago

Furydu76 commented 1 year ago

Hello, I followed your tutorial to use BSEC but I have this error at the setup.py install step :

quentinc@raspberrypiquentin:~/bme68x-python-library $ sudo python3 setup.py install running install running bdist_egg running egg_info creating bme68x.egg-info writing bme68x.egg-info/PKG-INFO writing dependency_links to bme68x.egg-info/dependency_links.txt writing top-level names to bme68x.egg-info/top_level.txt writing manifest file 'bme68x.egg-info/SOURCES.txt' reading manifest file 'bme68x.egg-info/SOURCES.txt' writing manifest file 'bme68x.egg-info/SOURCES.txt' installing library code to build/bdist.linux-armv7l/egg running install_lib running build_py creating build creating build/lib.linux-armv7l-3.9 copying bme68xConstants.py -> build/lib.linux-armv7l-3.9 copying bsecConstants.py -> build/lib.linux-armv7l-3.9 running build_ext building 'bme68x' extension creating build/temp.linux-armv7l-3.9 creating build/temp.linux-armv7l-3.9/BME68x-Sensor-API arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/include -I/usr/include/python3.9 -c BME68x-Sensor-API/bme68x.c -o build/temp.linux-armv7l-3.9/BME68x-Sensor-API/bme68x.o -D BSEC arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/include -I/usr/include/python3.9 -c bme68xmodule.c -o build/temp.linux-armv7l-3.9/bme68xmodule.o -D BSEC In file included from bme68xmodule.c:4: internal_functions.h:22:10: fatal error: BSEC_2.0.6.1_Generic_Release_04302021/algo/normal_version/bin/RaspberryPi/PiThree_ArmV6/bsec_interface.h: No such file or directory 22 | #include "BSEC_2.0.6.1_Generic_Release_04302021/algo/normal_version/bin/RaspberryPi/PiThree_ArmV6/bsec_interface.h" | ^~~~~~~~~~~~~~~~~~~~~~ compilation terminated. error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1

Furydu76 commented 1 year ago

I use the bsec2-4-0-0_generic_release_23012023.zip file.

mcalisterkm commented 1 year ago

Ah another new version of BSEC released in January 2023, the good news is that the API is still v4.4.7 but the release note says:

So potentially breaking changes. Update tomorrow.

Regards Keith

mcalisterkm commented 1 year ago

There were not too many changes (mainly paths) and you will find an updated version for BSEC 2.4.0.0 https://github.com/mcalisterkm/bme68x-python-library-bsec2.4.0.0

There is no support for multiple sensors and all your saved configs/state files need to be re-created.

Regards Keith

Update: I have run sensors on two PI Zero for a 24 hour burn-in and all went well with state saved and subsequently loaded.