Giter VIP home page Giter VIP logo

bme68x-python-library-bsec2.4.0.0's Introduction

bme68x-python-library-bsec2.4.0.0

Update of the PI3G python wrapper for the Bosch Sensortec BME688 and BSEC 2.4.0.0.

Please see the readme in the code directory for installation and getting started instructions.

Update 11/01/2024.

Be aware that raspbian bookworm (aka Debian 12) has made changes to how it expects Python to be used, that impact the bme68x package. There are over 800 debian python-* packages that are managed using apt/dpkg and these are considered to be site-wide/core packages. Python packages managed by pip working with Python Index (PYPI) are to be installed in a virtual environment (i.e. pip for local packages and apt for site-wide/core packages), as described here: https://www.raspberrypi.com/documentation/computers/os.html#python-on-raspberry-pi

To create a virtual environment with the venv package, with access to system-wide python packages (change /path/to/env to your desired location)
$ python -m venv --system-site-packages /path/to/env

Next activate the environment:
$ source /path/to/env/bin/activate
(env) $

To quit
(env) $ deactivate
$

All python/pip commands run in an virtual environment (venv) will act locally, avoiding any impact on the site-wide/core packages.

This will impact on any shell scripts, and the venv documentation https://docs.python.org/3/library/venv.html offers the the following advice:

In a shell script you don’t specifically need to activate a virtual environment.
You can just specify the full path to that environment’s Python interpreter when invoking Python.
Furthermore, all scripts installed in the environment should be runnable without activating it.
In order to achieve this, a python script installed into virtual environments has a “shebang” line which points to the environment’s Python interpreter, i.e. #!/<path-to-venv>/bin/python.
A shell script just needs to run python with the full environment path: <path-to-venv>/bin/python <commad.py>

bme68x-python-library-bsec2.4.0.0's People

Contributors

mcalisterkm avatar

Stargazers

 avatar Andrea avatar  avatar  avatar  avatar

Watchers

 avatar

bme68x-python-library-bsec2.4.0.0's Issues

BSEC 2.4.0.0 error

Hello,

I used your repository for the 2.4.0.0 version of the BOSCH library but I still run into errors when installing it. Following, the error screenshot

image

This is the error, after a lots of warnings before, that I obtain after launching the sudo python3 setup.py install command.
Can you help me please?

Thanks, Fabio

ForcedMode_ULP

Hi maclisterkm,
Did you test ULP mode for this script, I used forced_mode.py by changing sleep(3) to sleep(300) and LP to ULP,
but the interval of output is unexpected, so could you help to check it,
thanks a lot.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.