Title: Error finding "ninja" when setting up development environment · Issue #29739 · matplotlib/matplotlib · GitHub
Open Graph Title: Error finding "ninja" when setting up development environment · Issue #29739 · matplotlib/matplotlib
X Title: Error finding "ninja" when setting up development environment · Issue #29739 · matplotlib/matplotlib
Description: Following the instructions in https://matplotlib.org/devdocs/devel/development_setup.html#create-local-environment (but using uv to manage the virtual environment), I end up with the following error: % uv pip install --verbose --no-build...
Open Graph Description: Following the instructions in https://matplotlib.org/devdocs/devel/development_setup.html#create-local-environment (but using uv to manage the virtual environment), I end up with the following erro...
X Description: Following the instructions in https://matplotlib.org/devdocs/devel/development_setup.html#create-local-environment (but using uv to manage the virtual environment), I end up with the following erro...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/29739
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error finding \"ninja\" when setting up development environment","articleBody":"Following the instructions in https://matplotlib.org/devdocs/devel/development_setup.html#create-local-environment (but using `uv` to manage the virtual environment), I end up with the following error:\n\n```\n% uv pip install --verbose --no-build-isolation --editable \".[dev]\"\nDEBUG uv 0.6.5 (Homebrew 2025-03-06)\nDEBUG Searching for default Python interpreter in virtual environments\nDEBUG Found `cpython-3.12.8-macos-aarch64-none` at `/Users/dstansby/software/matplotlib/.venv/bin/python3` (active virtual environment)\nDEBUG Using Python 3.12.8 environment at: .venv\nDEBUG Acquired lock for `.venv`\nDEBUG At least one requirement is not satisfied: file:///Users/dstansby/software/matplotlib\nDEBUG Using request timeout of 30s\nDEBUG Found PEP 621 metadata for /Users/dstansby/software/matplotlib in `pyproject.toml` (matplotlib)\nDEBUG No static `pyproject.toml` available for: matplotlib @ file:///Users/dstansby/software/matplotlib (DynamicField(\"version\"))\nDEBUG Acquired lock for `/Users/dstansby/.cache/uv/sdists-v8/editable/a93b495625504936`\nDEBUG Preparing metadata for: matplotlib @ file:///Users/dstansby/software/matplotlib\nDEBUG No workspace root found, using project root\nDEBUG Proceeding without build isolation\nDEBUG Calling `mesonpy.prepare_metadata_for_build_editable()`\n Building matplotlib @ file:///Users/dstansby/software/matplotlib\nDEBUG Building: matplotlib @ file:///Users/dstansby/software/matplotlib\nDEBUG No workspace root found, using project root\nDEBUG Proceeding without build isolation\nDEBUG Calling `mesonpy.build_editable(\"/Users/dstansby/.cache/uv/builds-v0/.tmp3JxhbI\", {}, None)`\nDEBUG \nDEBUG meson-python: error: Could not find ninja version 1.8.2 or newer.\nDEBUG Released lock at `/Users/dstansby/.cache/uv/sdists-v8/editable/a93b495625504936/.lock`\n × Failed to build `matplotlib @ file:///Users/dstansby/software/matplotlib`\n ├─▶ The build backend returned an error\n ╰─▶ Call to `mesonpy.build_editable` failed (exit status: 1)\n\n [stdout]\n\n meson-python: error: Could not find ninja version 1.8.2 or newer.\n\n hint: This usually indicates a problem with the package or the build\n environment.\nDEBUG Released lock at `/Users/dstansby/software/matplotlib/.venv/.lock`\n```\n\nAdding `ninja\u003e=1.8.2` to the build requirements file seems to fix this.\n","author":{"url":"https://github.com/dstansby","@type":"Person","name":"dstansby"},"datePublished":"2025-03-12T12:24:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/29739/matplotlib/issues/29739"}
| 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:79afab4a-b9c1-8089-a3e2-b0b00dabcb14 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EAB2:12D39C:173092:1E9E25:6A5272BB |
| html-safe-nonce | c42a210d51c93bc6a5f0e3b11256e1cf72d10d29a25d1d11d961ef97a3515c03 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUIyOjEyRDM5QzoxNzMwOTI6MUU5RTI1OjZBNTI3MkJCIiwidmlzaXRvcl9pZCI6IjI1MzQ3NzA4NDA5NTgwMzg3MTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | aab6849fa0a93b059978b1240d44c4d1c33d61278cdff85df57e7c8a5547bb17 |
| hovercard-subject-tag | issue:2913793683 |
| 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/29739/issue_layout |
| twitter:image | https://opengraph.githubassets.com/26c1157310c355b148718a6a18c9bfb61b844c3bf0453550362a6cccdc88ddd5/matplotlib/matplotlib/issues/29739 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/26c1157310c355b148718a6a18c9bfb61b844c3bf0453550362a6cccdc88ddd5/matplotlib/matplotlib/issues/29739 |
| og:image:alt | Following the instructions in https://matplotlib.org/devdocs/devel/development_setup.html#create-local-environment (but using uv to manage the virtual environment), I end up with the following erro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dstansby |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width