Closed VgerTest closed 1 month ago
Hey @VgerTest what makes you think it fails by dbus? It states regardless of your version:
Run-time dependency python found: NO (tried pkgconfig, pkgconfig and sysconfig)
../test/meson.build:98:15: ERROR: Python dependency not found
That is because you are missing the required header files for building python extensions on your machine. Debian/Ubuntu flavored distros provide them via python-dev.
Missed that. python-dev-is-python3 for base and python3.11-dev libpython3.11-dev for 3.11 Thanks.
Fresh OS install: sudo apt-get install build-essential dbus libglib2.0-dev pkg-config libgtk-3-dev libxxf86vm-dev sudo apt-get install git sudo apt-get install python3.10-venv sudo apt-get install python3.11 sudo apt-get install python3.11-venv sudo apt-get install python-is-python3
With default Python 3.10
test@mint-vm-test:~/Descargas/displaycal-py3$ make build python3 -m venv .venv; \ source ./.venv/bin/activate; \ pip install -r requirements.txt; \ pip install -r requirements-dev.txt; Collecting build Using cached build-1.2.1-py3-none-any.whl (21 kB) Requirement already satisfied: certifi in ./.venv/lib/python3.10/site-packages (from -r requirements.txt (line 2)) (2024.2.2) Collecting dbus-python Using cached dbus-python-1.3.2.tar.gz (605 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [106 lines of output]
meson setup /tmp/pip-install-20y1o0ly/dbus-python_f0346125ebff469e996391a3004a78eb /tmp/pip-install-20y1o0ly/dbus-python_f0346125ebff469e996391a3004a78eb/.mesonpy-xsh6ag4x -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-install-20y1o0ly/dbus-python_f0346125ebff469e996391a3004a78eb/.mesonpy-xsh6ag4x/meson-python-native-file.ini The Meson build system Version: 1.4.0 Source dir: /tmp/pip-install-20y1o0ly/dbus-python_f0346125ebff469e996391a3004a78eb Build dir: /tmp/pip-install-20y1o0ly/dbus-python_f0346125ebff469e996391a3004a78eb/.mesonpy-xsh6ag4x Build type: native build Project name: dbus-python Project version: 1.3.2 C compiler for the host machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0") C linker for the host machine: cc ld.bfd 2.38 Host machine cpu family: x86_64 Host machine cpu: x86_64 Compiler for C supports arguments -fno-common: YES Compiler for C supports arguments -Wno-missing-field-initializers: YES Compiler for C supports arguments -Wno-declaration-after-statement: YES Compiler for C supports arguments -Wno-inline: YES Compiler for C supports arguments -Wno-redundant-decls: YES Compiler for C supports arguments -Wno-switch-default: YES Compiler for C supports arguments -Wno-write-strings: YES Compiler for C supports arguments -Wcast-align: YES Compiler for C supports arguments -Wdouble-promotion: YES Compiler for C supports arguments -Wduplicated-cond: YES Compiler for C supports arguments -Wfloat-equal: YES Compiler for C supports arguments -Wformat-nonliteral: YES Compiler for C supports arguments -Wformat-security: YES Compiler for C supports arguments -Wformat=2: YES Compiler for C supports arguments -Winit-self: YES Compiler for C supports arguments -Wlogical-op: YES Compiler for C supports arguments -Wmissing-declarations: YES Compiler for C supports arguments -Wmissing-format-attribute: YES Compiler for C supports arguments -Wmissing-include-dirs: YES Compiler for C supports arguments -Wmissing-noreturn: YES Compiler for C supports arguments -Wnull-dereference: YES Compiler for C supports arguments -Wpacked: YES Compiler for C supports arguments -Wpointer-arith: YES Compiler for C supports arguments -Wshadow: YES Compiler for C supports arguments -Wswitch-enum: YES Compiler for C supports arguments -Wundef: YES Compiler for C supports arguments -Wunused-but-set-variable: YES Compiler for C supports arguments -Wjump-misses-init: YES Compiler for C supports arguments -Wmissing-prototypes: YES Compiler for C supports arguments -Wnested-externs: YES Compiler for C supports arguments -Wold-style-definition: YES Compiler for C supports arguments -Wpointer-sign: YES Compiler for C supports arguments -Wstrict-prototypes: YES Configuring _dbus-python-config.h using configuration
Executing subproject dbus-gmain
dbus-gmain| Project name: dbus-gmain dbus-gmain| Project version: undefined dbus-gmain| C compiler for the host machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0") dbus-gmain| C linker for the host machine: cc ld.bfd 2.38 dbus-gmain| Compiler for C supports arguments -fno-common: YES (cached) dbus-gmain| Compiler for C supports arguments -Wno-missing-field-initializers: YES (cached) dbus-gmain| Compiler for C supports arguments -Wcast-align: YES (cached) dbus-gmain| Compiler for C supports arguments -Wdouble-promotion: YES (cached) dbus-gmain| Compiler for C supports arguments -Wduplicated-branches: YES dbus-gmain| Compiler for C supports arguments -Wduplicated-cond: YES (cached) dbus-gmain| Compiler for C supports arguments -Wfloat-equal: YES (cached) dbus-gmain| Compiler for C supports arguments -Wformat-nonliteral: YES (cached) dbus-gmain| Compiler for C supports arguments -Wformat-security: YES (cached) dbus-gmain| Compiler for C supports arguments -Wformat=2: YES (cached) dbus-gmain| Compiler for C supports arguments -Winit-self: YES (cached) dbus-gmain| Compiler for C supports arguments -Wlogical-op: YES (cached) dbus-gmain| Compiler for C supports arguments -Wmissing-declarations: YES (cached) dbus-gmain| Compiler for C supports arguments -Wmissing-format-attribute: YES (cached) dbus-gmain| Compiler for C supports arguments -Wmissing-include-dirs: YES (cached) dbus-gmain| Compiler for C supports arguments -Wmissing-noreturn: YES (cached) dbus-gmain| Compiler for C supports arguments -Wnull-dereference: YES (cached) dbus-gmain| Compiler for C supports arguments -Wpacked: YES (cached) dbus-gmain| Compiler for C supports arguments -Wpointer-arith: YES (cached) dbus-gmain| Compiler for C supports arguments -Wredundant-decls: YES dbus-gmain| Compiler for C supports arguments -Wshadow: YES (cached) dbus-gmain| Compiler for C supports arguments -Wswitch-default: YES dbus-gmain| Compiler for C supports arguments -Wswitch-enum: YES (cached) dbus-gmain| Compiler for C supports arguments -Wundef: YES (cached) dbus-gmain| Compiler for C supports arguments -Wunused-but-set-variable: YES (cached) dbus-gmain| Compiler for C supports arguments -Wwrite-strings: YES dbus-gmain| Compiler for C supports arguments -Wdeclaration-after-statement: YES dbus-gmain| Compiler for C supports arguments -Wjump-misses-init: YES (cached) dbus-gmain| Compiler for C supports arguments -Wmissing-prototypes: YES (cached) dbus-gmain| Compiler for C supports arguments -Wnested-externs: YES (cached) dbus-gmain| Compiler for C supports arguments -Wold-style-definition: YES (cached) dbus-gmain| Compiler for C supports arguments -Wpointer-sign: YES (cached) dbus-gmain| Compiler for C supports arguments -Wstrict-prototypes: YES (cached) dbus-gmain| Found pkg-config: YES (/usr/bin/pkg-config) 0.29.2 dbus-gmain| Run-time dependency dbus-1 found: YES 1.12.20 dbus-gmain| Run-time dependency glib-2.0 found: YES 2.72.4 dbus-gmain| Run-time dependency gthread-2.0 found: YES 2.72.4 dbus-gmain| Program dbus-run-session found: YES (/usr/bin/dbus-run-session) dbus-gmain| Build targets in project: 1 dbus-gmain| Subproject dbus-gmain finished.
Program python found: YES (/home/test/Descargas/displaycal-py3/.venv/bin/python3) Dependency dbus-1 found: YES 1.12.20 (cached) Run-time dependency python found: YES 3.10 Configuring TestSuitePythonService.service using configuration Configuring tmp-session-bus.conf using configuration Program dbus-run-session found: YES (/usr/bin/dbus-run-session) ../test/meson.build:75: DEPRECATION: Project uses feature that was always broken, and is now deprecated since '1.3.0': str.format: Value other than strings, integers, bools, options, dictionaries and lists thereof.. Run-time dependency python found: NO (tried pkgconfig, pkgconfig and sysconfig)
../test/meson.build:98:15: ERROR: Python dependency not found
A full log can be found at /tmp/pip-install-20y1o0ly/dbus-python_f0346125ebff469e996391a3004a78eb/.mesonpy-xsh6ag4x/meson-logs/meson-log.txt [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
also fails in manual install with Python 3.11 by dbus
est@mint-vm-test:~/Descargas/displaycal-py3$ make SYSTEM_PYTHON=python3.11 build python3.11 -m venv .venv; \ source ./.venv/bin/activate; \ pip install -r requirements.txt; \ pip install -r requirements-dev.txt; Collecting build Using cached build-1.2.1-py3-none-any.whl (21 kB) Collecting certifi Using cached certifi-2024.2.2-py3-none-any.whl (163 kB) Collecting dbus-python Using cached dbus-python-1.3.2.tar.gz (605 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [106 lines of output]
meson setup /tmp/pip-install-zbx1w8ih/dbus-python_6cefd458ce99446aac10428b9bf6de96 /tmp/pip-install-zbx1w8ih/dbus-python_6cefd458ce99446aac10428b9bf6de96/.mesonpy-y1eht1p0 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-install-zbx1w8ih/dbus-python_6cefd458ce99446aac10428b9bf6de96/.mesonpy-y1eht1p0/meson-python-native-file.ini The Meson build system Version: 1.4.0 Source dir: /tmp/pip-install-zbx1w8ih/dbus-python_6cefd458ce99446aac10428b9bf6de96 Build dir: /tmp/pip-install-zbx1w8ih/dbus-python_6cefd458ce99446aac10428b9bf6de96/.mesonpy-y1eht1p0 Build type: native build Project name: dbus-python Project version: 1.3.2 C compiler for the host machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0") C linker for the host machine: cc ld.bfd 2.38 Host machine cpu family: x86_64 Host machine cpu: x86_64 Compiler for C supports arguments -fno-common: YES Compiler for C supports arguments -Wno-missing-field-initializers: YES Compiler for C supports arguments -Wno-declaration-after-statement: YES Compiler for C supports arguments -Wno-inline: YES Compiler for C supports arguments -Wno-redundant-decls: YES Compiler for C supports arguments -Wno-switch-default: YES Compiler for C supports arguments -Wno-write-strings: YES Compiler for C supports arguments -Wcast-align: YES Compiler for C supports arguments -Wdouble-promotion: YES Compiler for C supports arguments -Wduplicated-cond: YES Compiler for C supports arguments -Wfloat-equal: YES Compiler for C supports arguments -Wformat-nonliteral: YES Compiler for C supports arguments -Wformat-security: YES Compiler for C supports arguments -Wformat=2: YES Compiler for C supports arguments -Winit-self: YES Compiler for C supports arguments -Wlogical-op: YES Compiler for C supports arguments -Wmissing-declarations: YES Compiler for C supports arguments -Wmissing-format-attribute: YES Compiler for C supports arguments -Wmissing-include-dirs: YES Compiler for C supports arguments -Wmissing-noreturn: YES Compiler for C supports arguments -Wnull-dereference: YES Compiler for C supports arguments -Wpacked: YES Compiler for C supports arguments -Wpointer-arith: YES Compiler for C supports arguments -Wshadow: YES Compiler for C supports arguments -Wswitch-enum: YES Compiler for C supports arguments -Wundef: YES Compiler for C supports arguments -Wunused-but-set-variable: YES Compiler for C supports arguments -Wjump-misses-init: YES Compiler for C supports arguments -Wmissing-prototypes: YES Compiler for C supports arguments -Wnested-externs: YES Compiler for C supports arguments -Wold-style-definition: YES Compiler for C supports arguments -Wpointer-sign: YES Compiler for C supports arguments -Wstrict-prototypes: YES Configuring _dbus-python-config.h using configuration
Executing subproject dbus-gmain
dbus-gmain| Project name: dbus-gmain dbus-gmain| Project version: undefined dbus-gmain| C compiler for the host machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0") dbus-gmain| C linker for the host machine: cc ld.bfd 2.38 dbus-gmain| Compiler for C supports arguments -fno-common: YES (cached) dbus-gmain| Compiler for C supports arguments -Wno-missing-field-initializers: YES (cached) dbus-gmain| Compiler for C supports arguments -Wcast-align: YES (cached) dbus-gmain| Compiler for C supports arguments -Wdouble-promotion: YES (cached) dbus-gmain| Compiler for C supports arguments -Wduplicated-branches: YES dbus-gmain| Compiler for C supports arguments -Wduplicated-cond: YES (cached) dbus-gmain| Compiler for C supports arguments -Wfloat-equal: YES (cached) dbus-gmain| Compiler for C supports arguments -Wformat-nonliteral: YES (cached) dbus-gmain| Compiler for C supports arguments -Wformat-security: YES (cached) dbus-gmain| Compiler for C supports arguments -Wformat=2: YES (cached) dbus-gmain| Compiler for C supports arguments -Winit-self: YES (cached) dbus-gmain| Compiler for C supports arguments -Wlogical-op: YES (cached) dbus-gmain| Compiler for C supports arguments -Wmissing-declarations: YES (cached) dbus-gmain| Compiler for C supports arguments -Wmissing-format-attribute: YES (cached) dbus-gmain| Compiler for C supports arguments -Wmissing-include-dirs: YES (cached) dbus-gmain| Compiler for C supports arguments -Wmissing-noreturn: YES (cached) dbus-gmain| Compiler for C supports arguments -Wnull-dereference: YES (cached) dbus-gmain| Compiler for C supports arguments -Wpacked: YES (cached) dbus-gmain| Compiler for C supports arguments -Wpointer-arith: YES (cached) dbus-gmain| Compiler for C supports arguments -Wredundant-decls: YES dbus-gmain| Compiler for C supports arguments -Wshadow: YES (cached) dbus-gmain| Compiler for C supports arguments -Wswitch-default: YES dbus-gmain| Compiler for C supports arguments -Wswitch-enum: YES (cached) dbus-gmain| Compiler for C supports arguments -Wundef: YES (cached) dbus-gmain| Compiler for C supports arguments -Wunused-but-set-variable: YES (cached) dbus-gmain| Compiler for C supports arguments -Wwrite-strings: YES dbus-gmain| Compiler for C supports arguments -Wdeclaration-after-statement: YES dbus-gmain| Compiler for C supports arguments -Wjump-misses-init: YES (cached) dbus-gmain| Compiler for C supports arguments -Wmissing-prototypes: YES (cached) dbus-gmain| Compiler for C supports arguments -Wnested-externs: YES (cached) dbus-gmain| Compiler for C supports arguments -Wold-style-definition: YES (cached) dbus-gmain| Compiler for C supports arguments -Wpointer-sign: YES (cached) dbus-gmain| Compiler for C supports arguments -Wstrict-prototypes: YES (cached) dbus-gmain| Found pkg-config: YES (/usr/bin/pkg-config) 0.29.2 dbus-gmain| Run-time dependency dbus-1 found: YES 1.12.20 dbus-gmain| Run-time dependency glib-2.0 found: YES 2.72.4 dbus-gmain| Run-time dependency gthread-2.0 found: YES 2.72.4 dbus-gmain| Program dbus-run-session found: YES (/usr/bin/dbus-run-session) dbus-gmain| Build targets in project: 1 dbus-gmain| Subproject dbus-gmain finished.
Program python found: YES (/home/test/Descargas/displaycal-py3/.venv/bin/python3.11) Dependency dbus-1 found: YES 1.12.20 (cached) Run-time dependency python found: YES 3.11 Configuring TestSuitePythonService.service using configuration Configuring tmp-session-bus.conf using configuration Program dbus-run-session found: YES (/usr/bin/dbus-run-session) ../test/meson.build:75: DEPRECATION: Project uses feature that was always broken, and is now deprecated since '1.3.0': str.format: Value other than strings, integers, bools, options, dictionaries and lists thereof.. Run-time dependency python found: NO (tried pkgconfig, pkgconfig and sysconfig)
../test/meson.build:98:15: ERROR: Python dependency not found
A full log can be found at /tmp/pip-install-zbx1w8ih/dbus-python_6cefd458ce99446aac10428b9bf6de96/.mesonpy-y1eht1p0/meson-logs/meson-log.txt [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.