-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failure: All branches are failing due to latest PyGObject 3.52.1 now requiring gitrepository-2.0 #21984
Comments
The below patch should work. Path from
In case any of you facing the above issue and want to proceed with the same clone, then after applying the patch you may need to clean compile the following targets,
|
patch for 202305 and 202311 branches
|
I hit the same issue on 202411 and fixed it with
Although it looks like the fix suggested by @jemifdo would have also worked. Is anyone looking at submitting a PR for this? |
Newer versions of PyGObject depend on libgirepository-2.0-dev which isn't packaged for Debian. This leads to build failures like Collecting PyGObject Downloading pygobject-3.52.1.tar.gz (1.2 MB) ... × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [24 lines of output] ... ../meson.build:31:9: ERROR: Dependency 'girepository-2.0' is required but not found. Pin the version of PyGObject to 3.50.0 which is the latest version known to work. Fixes sonic-net/sonic-buildimage#21984
The build fails as sonic-host-services setup.py just pulls in an unversioned 'PyGObject' and on March 9, 2025 PyGObject v3.52.1 was released that now requires gitrepository-2.0 which is not present.
One option is to change sonic-host-servics to pin to a prior working 'PyGObject==3.50.0' in setup.py or we change the bookworm sonic-buildimage to include a gitrepository-2.0
The text was updated successfully, but these errors were encountered: