Hello community,
I’m encountering persistent issues while trying to install the development dependencies for Tryton on my Windows Subsystem for Linux 2 (WSL2) running Ubuntu.
I’ve followed the standard Tryton installation instructions, but I’m consistently running into problems specifically with PyGObject
. The error I receive during pip install -e ...
is:
`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.`
Looking at the detailed output, the underlying error seems to be that meson
cannot find the dependency girepository-2.0
. The relevant part of the error message is:
../meson.build:31:9: ERROR: Dependency 'girepository-2.0' is required but not found.
Here’s a summary of the steps I’ve taken so far to try and resolve this:
- Installed build essentials and Python development headers:
sudo apt install build-essential python3-dev
- Installed
libgirepository1.0-dev
:sudo apt install libgirepository1.0-dev
- Tried installing
pycairo
separately (another dependency that often has similar build issues):pip install pycairo
(failed with “Unknown compiler(s)” initially, then progressed to similargirepository-2.0
not found error after installing build tools). - Verified
pkg-config
is installed:pkg-config --version
returns1.8.1
. - Checked
pkg-config
paths:pkg-config --variable pc_path pkg-config
returns/usr/local/lib/x86_64-linux-gnu/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig
. 1
[
- Tried to find
girepository-*.pc
files:sudo find / -name "*girepository*.pc"
returned no results. - Reinstalled
gobject-introspection
and related packages:sudo apt remove --purge ...
,sudo apt update
,sudo apt install ...
- Tried installing
python3-gi
usingapt
:sudo apt install python3-gi
(reports as already installed, butimport gi
fails in the virtual environment). - Tried installing
PyGObject
withpip
within the virtual environment.
Despite these steps, the issue persists. It seems the .pc
file for girepository-2.0
is either missing or not in a location where meson
can find it within the WSL2 environment.
Has anyone else encountered this issue on WSL2? Any suggestions on how to resolve the girepository-2.0
dependency not being found for PyGObject
installation? Any insights into where the .pc
file might be located or how to make it visible to the build process would be greatly appreciated.
Thank you for your time and help!
Sincerely,