Metadata-generation Failed during pip install tryton

ubuntu@ip-132-11-11-60:~$ tryton24_v1/bin/pip install tryton

Collecting tryton
Downloading tryton-7.2.4-py3-none-any.whl.metadata (2.5 kB)
Requirement already satisfied: pycairo in ./tryton24_v1/lib/python3.12/site-packages (from tryton) (1.26.1)
Requirement already satisfied: python-dateutil in ./tryton24_v1/lib/python3.12/site-packages (from tryton) (2.9.0.post0)
Collecting PyGObject>=3.19 (from tryton)
Downloading pygobject-3.48.2.tar.gz (715 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 715.2/715.2 kB 17.1 MB/s eta 0:00:00
Installing build dependencies … done
Getting requirements to build wheel … done
Installing backend dependencies … done
Preparing metadata (pyproject.toml) … error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [24 lines of output]
+ meson setup /tmp/pip-install-vvbd3wmq/pygobject_bc9d8deb44494664a0def61ef61f9123 /tmp/pip-install-vvbd3wmq/pygobject_bc9d8deb44494664a0def61ef61f9123/.mesonpy-wbm5v5ma -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md -Dtests=false -Dwheel=true --wrap-mode=nofallback --native-file=/tmp/pip-install-vvbd3wmq/pygobject_bc9d8deb44494664a0def61ef61f9123/.mesonpy-wbm5v5ma/meson-python-native-file.ini
The Meson build system
Version: 1.5.1
Source dir: /tmp/pip-install-vvbd3wmq/pygobject_bc9d8deb44494664a0def61ef61f9123
Build dir: /tmp/pip-install-vvbd3wmq/pygobject_bc9d8deb44494664a0def61ef61f9123/.mesonpy-wbm5v5ma
Build type: native build
Project name: pygobject
Project version: 3.48.2
C compiler for the host machine: cc (gcc 13.2.0 “cc (Ubuntu 13.2.0-23ubuntu4) 13.2.0”)
C linker for the host machine: cc ld.bfd 2.42
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python3 found: YES (/home/ubuntu/tryton24_v1/bin/python3)
Found pkg-config: YES (/usr/bin/pkg-config) 1.8.1
Run-time dependency python found: YES 3.12
Did not find CMake ‘cmake’
Found CMake: NO
Run-time dependency gobject-introspection-1.0 found: NO (tried pkgconfig and cmake)
Not looking for a fallback subproject for the dependency gobject-introspection-1.0 because:
Use of fallback dependencies is disabled.

  ../meson.build:29:9: ERROR: Dependency 'gobject-introspection-1.0' is required but not found.

  A full log can be found at /tmp/pip-install-vvbd3wmq/pygobject_bc9d8deb44494664a0def61ef61f9123/.mesonpy-wbm5v5ma/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.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

ubuntu@ip-172-31-21-80:~$

You need to install pygobject (gobject-introspection) using the OS package manager because it can not be installed with pip.

Any I recommend to use the flatpack package for user installation.

1 Like

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.