Skip to content

nlopt lacks wheels for Apple Silicon / Mac M1; dependency of cadquery can't pip install on Mac #144

@z3ugma

Description

@z3ugma

Trying to use librepcb-parts-generator in a project on an m1 Mac fails because the version of nlopt is pinned to 2.71, which I think is because CadQuery is pinned very specifically at

"cadquery == 2.3.1",

"cadquery == 2.3.1",

uv add git+https://github.com/LibrePCB/librepcb-parts-generator.git
Resolved 47 packages in 630ms
error: Distribution `nlopt==2.7.1 @ registry+https://pypi.org/simple` can't be installed because it doesn't have a source distribution or wheel for the current platform

hint: You're on macOS (`macosx_15_0_arm64`), but `nlopt` (v2.7.1) only has wheels for the following platforms: `manylinux_2_17_x86_64`, `manylinux2014_x86_64`, `macosx_10_9_x86_64`, `win_amd64`; consider adding your platform to `tool.uv.required-environments` to ensure uv resolves to a version with compatible wheels

It looks like nlopt has newer wheels https://pypi.org/project/nlopt/#nlopt-2.9.1-cp39-cp39-macosx_11_0_arm64.whl so if we bumped cadquery, it may resolve the nlopt issue.

cadquery==2.5.2 and nlopt==2.9.1 work on MacOS.

Suggested fix is to not freeze the version so tightly, we could do cadquery ~=2, or cadquery ~=2.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions