Title: [MNT]: CI: pygobject fails to install during ubuntu-22.04 GitHub Actions jobs · Issue #29844 · matplotlib/matplotlib · GitHub
Open Graph Title: [MNT]: CI: pygobject fails to install during ubuntu-22.04 GitHub Actions jobs · Issue #29844 · matplotlib/matplotlib
X Title: [MNT]: CI: pygobject fails to install during ubuntu-22.04 GitHub Actions jobs · Issue #29844 · matplotlib/matplotlib
Description: Summary When the Ubuntu 22.04 (both x86 and ARM) test jobs currently run in GitHub Actions, girepository-1.0 is installed as a system dependency, and PyGObject is installed from PyPI without any version range specifier. This causes the P...
Open Graph Description: Summary When the Ubuntu 22.04 (both x86 and ARM) test jobs currently run in GitHub Actions, girepository-1.0 is installed as a system dependency, and PyGObject is installed from PyPI without any ve...
X Description: Summary When the Ubuntu 22.04 (both x86 and ARM) test jobs currently run in GitHub Actions, girepository-1.0 is installed as a system dependency, and PyGObject is installed from PyPI without any ve...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/29844
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[MNT]: CI: pygobject fails to install during ubuntu-22.04 GitHub Actions jobs","articleBody":"### Summary\n\nWhen the Ubuntu 22.04 (both x86 and ARM) test jobs currently run in GitHub Actions, [`girepository-1.0` is installed](https://github.com/matplotlib/matplotlib/blob/7d5d0278fb5296a368a1ef910e67a8fa9a1f2fb8/.github/workflows/tests.yml#L172) as a system dependency, and [`PyGObject` is installed](https://github.com/matplotlib/matplotlib/blob/7d5d0278fb5296a368a1ef910e67a8fa9a1f2fb8/.github/workflows/tests.yml#L266) from PyPI without any version range specifier.\n\nThis causes the `PyGObject` Python package to fail to install, because [from version v3.52 onwards](https://gitlab.gnome.org/GNOME/pygobject/-/blob/e3dee9719e7249acfa7e78a3bbae251301a134a4/NEWS#L9-10), it has a hard dependency on `girepository-2.0` (a major upgrade of that library).\n\nThis is illustrated by recent build logs from commit 7d5d0278fb5296a368a1ef910e67a8fa9a1f2fb8, both on Ubuntu 22.04 (x86) for Python 3.11, and also on Ubuntu 22.04 (ARM) for Python 3.12:\n\n * https://github.com/matplotlib/matplotlib/actions/runs/14186202430/job/39741858224#step:9:462\n * https://github.com/matplotlib/matplotlib/actions/runs/14186202430/job/39741858471#step:9:305\n\nThis is related to the changes in #29765; I'd mentioned briefly and obliquely that adding some version pinning might make sense alongside those changes, but hadn't yet suggested it in code:\n\n\u003e A compatible possibility would be to place an upper-bound on the version of `PyGObject` installed during jobs on previous versions of Ubuntu.\n\nI think that's what we should do (add a version pin - similar to the one in place for MacOS currently - for the Ubuntu 22.04 matrix jobs).\n\n### Proposed fix\n\nUse the existing `pygobject-ver` GitHub Actions CI matrix variable to pin the Python `PyGObject` package version to `\u003c3.52.0` in Ubuntu 22.04 test workflows, where `girepository-1.0` is installed.\n\nEdit: add hyperlink to `pygobject.git` v3.52 release notes.","author":{"url":"https://github.com/jayaddison","@type":"Person","name":"jayaddison"},"datePublished":"2025-04-01T10:05:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/29844/matplotlib/issues/29844"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:40e42404-df76-07e2-e2e3-2337fb163d5a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A2A2:C9E65:10CA259:1657D22:6A51C595 |
| html-safe-nonce | bc3755d9f1305533e22ccb544c9a07daef88ba6a57c4a05107a50385f78c4bd7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkEyOkM5RTY1OjEwQ0EyNTk6MTY1N0QyMjo2QTUxQzU5NSIsInZpc2l0b3JfaWQiOiI3MTE4MDU5NDUwNDUyMjY0MzQxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6c41ece11f3381992dbcc19c3266c3eb749c3e557fe724e87da9616e198269e3 |
| hovercard-subject-tag | issue:2962953792 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/29844/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5b0f311c2f4dc030f5ce31ae521528fd634b0c163ac2a0e4fa6317f14df6405f/matplotlib/matplotlib/issues/29844 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5b0f311c2f4dc030f5ce31ae521528fd634b0c163ac2a0e4fa6317f14df6405f/matplotlib/matplotlib/issues/29844 |
| og:image:alt | Summary When the Ubuntu 22.04 (both x86 and ARM) test jobs currently run in GitHub Actions, girepository-1.0 is installed as a system dependency, and PyGObject is installed from PyPI without any ve... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jayaddison |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width