Skip to content

python-fcl dependency with trimesh>=4 and numpy>=2 #2357

@clemense

Description

@clemense

Hi,
I'm upgrading some code that depends on trimesh-3.x to 4 and in the process I'm now stuck at ValueError: No FCL Available! Please install the python-fcl library. I saw in the toml file that the python-fcl dependency is commented out:

# "python-fcl", # do collision checks # TODO : broken on numpy 2

Why is that?

I manually installed python-fcl (0.7.0.4) but when trying to import it, I get:

  File "/scene_synthesizer/venv/lib/python3.10/site-packages/fcl/__init__.py", line 2, in <module>
    from .fcl import (
  File "src/fcl/fcl.pyx", line 1, in init fcl.fcl
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

Is the trimesh.collisions.CollisionManager generally not working anymore with numpy>=2?

(I'm working with a clean Ubuntu 22.04 docker with Python 3.10)

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions