Skip to content

unable to install on RPI5 with debian 13 (trixie), debian 12 is fine #59

Description

@diringertomas-dot

Hi. I was able to install it on RPI5 with RPiOS based on debian 12, but the latest (13) stopped working

(venv) admin@rpi5:~/git/ft-tol-demo/rpi-based-gui $ pip install vl53l1x
Collecting vl53l1x
  Using cached VL53L1X-0.0.5.tar.gz (182 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: smbus2 in ./venv/lib/python3.13/site-packages (from vl53l1x) (0.5.0)
Building wheels for collected packages: vl53l1x
  Building wheel for vl53l1x (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for vl53l1x (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [34 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build/lib.linux-aarch64-cpython-313
      copying python/VL53L1X.py -> build/lib.linux-aarch64-cpython-313
      running build_ext
      building 'vl53l1x_python' extension
      creating build/temp.linux-aarch64-cpython-313/api/core
      creating build/temp.linux-aarch64-cpython-313/api/platform
      creating build/temp.linux-aarch64-cpython-313/python_lib
      aarch64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I. -Iapi/core -Iapi/platform -I/home/admin/git/ft-tol-demo/rpi-based-gui/venv/include -I/usr/include/python3.13 -c api/core/vl53l1_api.c -o build/temp.linux-aarch64-cpython-313/api/core/vl53l1_api.o -std=c99
      aarch64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I. -Iapi/core -Iapi/platform -I/home/admin/git/ft-tol-demo/rpi-based-gui/venv/include -I/usr/include/python3.13 -c api/core/vl53l1_api_calibration.c -o build/temp.linux-aarch64-cpython-313/api/core/vl53l1_api_calibration.o -std=c99
      aarch64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I. -Iapi/core -Iapi/platform -I/home/admin/git/ft-tol-demo/rpi-based-gui/venv/include -I/usr/include/python3.13 -c api/core/vl53l1_api_core.c -o build/temp.linux-aarch64-cpython-313/api/core/vl53l1_api_core.o -std=c99
      aarch64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I. -Iapi/core -Iapi/platform -I/home/admin/git/ft-tol-demo/rpi-based-gui/venv/include -I/usr/include/python3.13 -c api/core/vl53l1_api_preset_modes.c -o build/temp.linux-aarch64-cpython-313/api/core/vl53l1_api_preset_modes.o -std=c99
      aarch64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I. -Iapi/core -Iapi/platform -I/home/admin/git/ft-tol-demo/rpi-based-gui/venv/include -I/usr/include/python3.13 -c api/core/vl53l1_api_strings.c -o build/temp.linux-aarch64-cpython-313/api/core/vl53l1_api_strings.o -std=c99
      aarch64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I. -Iapi/core -Iapi/platform -I/home/admin/git/ft-tol-demo/rpi-based-gui/venv/include -I/usr/include/python3.13 -c api/core/vl53l1_core.c -o build/temp.linux-aarch64-cpython-313/api/core/vl53l1_core.o -std=c99
      aarch64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I. -Iapi/core -Iapi/platform -I/home/admin/git/ft-tol-demo/rpi-based-gui/venv/include -I/usr/include/python3.13 -c api/core/vl53l1_core_support.c -o build/temp.linux-aarch64-cpython-313/api/core/vl53l1_core_support.o -std=c99
      aarch64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I. -Iapi/core -Iapi/platform -I/home/admin/git/ft-tol-demo/rpi-based-gui/venv/include -I/usr/include/python3.13 -c api/core/vl53l1_error_strings.c -o build/temp.linux-aarch64-cpython-313/api/core/vl53l1_error_strings.o -std=c99
      aarch64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I. -Iapi/core -Iapi/platform -I/home/admin/git/ft-tol-demo/rpi-based-gui/venv/include -I/usr/include/python3.13 -c api/core/vl53l1_register_funcs.c -o build/temp.linux-aarch64-cpython-313/api/core/vl53l1_register_funcs.o -std=c99
      aarch64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I. -Iapi/core -Iapi/platform -I/home/admin/git/ft-tol-demo/rpi-based-gui/venv/include -I/usr/include/python3.13 -c api/core/vl53l1_silicon_core.c -o build/temp.linux-aarch64-cpython-313/api/core/vl53l1_silicon_core.o -std=c99
      aarch64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I. -Iapi/core -Iapi/platform -I/home/admin/git/ft-tol-demo/rpi-based-gui/venv/include -I/usr/include/python3.13 -c api/core/vl53l1_wait.c -o build/temp.linux-aarch64-cpython-313/api/core/vl53l1_wait.o -std=c99
      aarch64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I. -Iapi/core -Iapi/platform -I/home/admin/git/ft-tol-demo/rpi-based-gui/venv/include -I/usr/include/python3.13 -c api/platform/vl53l1_platform.c -o build/temp.linux-aarch64-cpython-313/api/platform/vl53l1_platform.o -std=c99
      api/platform/vl53l1_platform.c:332:1: warning: multi-line comment [-Wcomment]
        332 | //#define trace_print(level, ...) \
            | ^
      api/platform/vl53l1_platform.c:336:1: warning: multi-line comment [-Wcomment]
        336 | //#define trace_i2c(...) \
            | ^
      api/platform/vl53l1_platform.c: In function ‘VL53L1_WaitMs’:
      api/platform/vl53l1_platform.c:347:9: error: implicit declaration of function ‘usleep’; did you mean ‘sleep’? [-Wimplicit-function-declaration]
        347 |         usleep(wait_ms * 1000);
            |         ^~~~~~
            |         sleep
      error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for vl53l1x
Failed to build vl53l1x
ERROR: Failed to build installable wheels for some pyproject.toml based projects (vl53l1x)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions