Closed xuchenhan-tri closed 4 days ago
Building numpy from source means all of our men are already dead. (In other words, the exact nature of the compilation error is not relevant.)
The important question here is why the build isn't / wasn't using a downloaded wheel in the first place.
Maybe there was just a lag in publishing newer wheels upstream?
After #21829, we're getting a new problem. Trying to get pip to downgrade a numpy version that was apparently installed by brew
. (See, e.g., this CI failure.)
[5:21](https://drakedevelopers.slack.com/archives/C270MN28G/p1724674907776519?thread_ts=1724674598.735349&cid=C270MN28G)
Untitled
[11:29:48 PM] Attempting uninstall: numpy
[11:29:48 PM] Found existing installation: numpy 2.1.0
[11:29:48 PM] error: uninstall-no-record-file
[11:29:48 PM]
[11:29:48 PM] × Cannot uninstall numpy 2.1.0
[11:29:48 PM] ╰─> The package's contents are unknown: no RECORD file was found for numpy.
[11:29:48 PM]
[11:29:48 PM] hint: The package was installed by brew. You should check if it can uninstall the package.
[11:29:49 PM] CMake Error at /Users/admin/workspace/mac-arm-sonoma-unprovisioned-clang-bazel-nightly-release/ci/driver/functions.cmake:100 (message):
[11:29:49 PM] *** CTest Result: FAILURE BECAUSE PROVISIONING SCRIPT DID NOT COMPLETE
[11:29:49 PM] SUCCESSFULLY
[11:29:49 PM] Call Stack (most recent call first):
[11:29:49 PM] /Users/admin/workspace/mac-arm-sonoma-unprovisioned-clang-bazel-nightly-release/ci/driver/platform.cmake:117 (fatal)
[11:29:49 PM] /Users/admin/workspace/mac-arm-sonoma-unprovisioned-clang-bazel-nightly-release/ci/ctest_driver_script.cmake:113 (include)
The root cause of the failure is that NumPy 2.1.0 did not ship any wheels that are compatible with Ventura (macOS 13). Upstream issue: https://github.com/numpy/numpy/issues/27283. That means for now, we can't ship Drake wheels for Ventura, either.
The action item for this ticket is to watch the upstream issue.
If they decide to add the wheel, then we revert the wheel-builder comment-out fraction of #21845 to re-enable 3.11 support.
If they declare Ventura + cp311 as no longer supported, then we will update our docs to do the same and clean up the comments.
numpy/numpy#27303 was merged and backported. I'm not sure if that means it's "fixed" or if we're waiting for the next 2.1.x release.
The 2.1.0 on PyPI still lacks the wheel, so it looks like we're going to be waiting for 2.1.1 to happen before we can revert our work-around.
NumPy 2.1.1 has been released, with the missing wheel, so => https://github.com/RobotLocomotion/drake/pull/21883 to revert.
What happened?
mac-arm-ventura-unprovisioned-clang-wheel-nightly-release failed when building Numpy 2.1.0. See output log below.
21829 proposed a temporary fix to upper bound the mac binary Numpy version to 2.0.1.
Version
No response
What operating system are you using?
macOS 13 (Ventura)
What installation option are you using?
No response
Relevant log output