Skip to content

macOS arm wheel ImportError symbol not found #61

@jackbow

Description

@jackbow
ImportError: dlopen(.venv/lib/python3.9/site-packages/fcl/fcl.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace '__ZNK3fcl17CollisionGeometryIdE34computeMomentofInertiaRelatedToCOMEv'

I'm getting the above error after installing python-fcl v0.7.0.4 and I think it's because the following env vars aren't being set. The following code produces a working wheel for me (which I've just committed to my own repo for convenience).

CPATH=$(brew --prefix)/include:$(brew --prefix)/include/eigen3 LD_LIBRARY_PATH=$(brew --prefix)/lib python setup.py bdist_wheel --universal

I'm not sure if that code will work with the github action runner since its running on intel building for arm, and I'm not sure if it's using brew, but it could be worth a shot by using env.CIBW_ENVIRONMENT_MACOS in the pypa/cibuildwheel step.
https://cibuildwheel.readthedocs.io/en/stable/options/#environment

I may get around to doing this but I'm writing this here in case I don't.

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