Skip to content

Path Errors in setup.py #27

@phipac

Description

@phipac

Greetings, all. It seems as though Bosch has changed the directory structure of the bsec file that is downloaded from their site. Here is the output I get when running sudo python3 setup.py on my Raspberry Pi 3B+:

:~/bme68x-python-library $ sudo python3 setup.py install
running install
/usr/local/lib/python3.11/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

    ********************************************************************************
    Please avoid running ``setup.py`` directly.
    Instead, use pypa/build, pypa/installer or other
    standards-based tools.

    See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
    ********************************************************************************

!!
self.initialize_options()
/usr/local/lib/python3.11/dist-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

    ********************************************************************************
    Please avoid running ``setup.py`` and ``easy_install``.
    Instead, use pypa/build, pypa/installer or other
    standards-based tools.

    See https://github.com/pypa/setuptools/issues/917 for details.
    ********************************************************************************

!!
self.initialize_options()
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'
adding license file 'LICENSE'
writing manifest file 'bme68x.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-aarch64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-aarch64-cpython-311
copying bme68xConstants.py -> build/lib.linux-aarch64-cpython-311
copying bsecConstants.py -> build/lib.linux-aarch64-cpython-311
running build_ext
building 'bme68x' extension
creating build/temp.linux-aarch64-cpython-311
creating build/temp.linux-aarch64-cpython-311/BME68x-Sensor-API
aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/local/include -I/usr/include/python3.11 -c BME68x-Sensor-API/bme68x.c -o build/temp.linux-aarch64-cpython-311/BME68x-Sensor-API/bme68x.o "-D BSEC"
aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/local/include -I/usr/include/python3.11 -c bme68xmodule.c -o build/temp.linux-aarch64-cpython-311/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/aarch64-linux-gnu-gcc' failed with exit code 1

Looking at the directory structure of the unzipped bsec file, the first issue is the naming of the root directory and the appended date. There is also no longer a 'normal_version' subdirectory. I tried modifying setup.py to reflect the changes, but I keep getting the same error. I appreciate all of your time and efforts!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions