eoyilmaz / displaycal-py3

DisplayCAL Modernization Project
https://eoyilmaz.github.io/displaycal-py3/
GNU General Public License v3.0
698 stars 55 forks source link

Fail to build on lastest Linux Mint (21.3) #369

Closed VgerTest closed 1 month ago

VgerTest commented 1 month ago
 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

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]

× 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]

× Encountered error while generating package metadata. ╰─> See above for output.

p5k369 commented 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.

VgerTest commented 1 month ago

Missed that. python-dev-is-python3 for base and python3.11-dev libpython3.11-dev for 3.11 Thanks.