yunshengtian / ASAP

[ICRA 2024] ASAP: Automated Sequence Planning for Complex Robotic Assembly with Physical Feasibility
http://asap.csail.mit.edu
MIT License
23 stars 1 forks source link

VTK version mismatch #5

Open LordGorgon opened 1 month ago

LordGorgon commented 1 month ago

I am struggling to run simulations for asap due to a VTK library mismatch. Here's the error message I get:

> (asap) python test_sim/test_simple_sim.py --model box/box_stack --steps 2000
Traceback (most recent call last):
  File "test_sim/test_simple_sim.py", line 8, in <module>
    import redmax_py as redmax
ImportError: dlopen(/Users/me/anaconda3/envs/asap/lib/python3.8/site-packages/redmax_py-0.0.1-py3.8-macosx-10.9-x86_64.egg/redmax_py.cpython-38-darwin.so, 2): Symbol not found: _PyCMethod_New
  Referenced from: /usr/local/opt/vtk/lib/libvtkWrappingPythonCore3.11-9.2.1.dylib
  Expected in: flat namespace
 in /usr/local/opt/vtk/lib/libvtkWrappingPythonCore3.11-9.2.1.dylib

I'm using an i9 Mac. I was able to built the asap environment. What version of VTK is being used? I am struggling to find a VTK version that is compatible with python 3.11

yunshengtian commented 3 weeks ago

On my local computer I have this version:

==> vtk: stable 9.2.6 (bottled)

I haven't met such issue so I'm not sure how helpful this is.

Another workaround might be trying a new anaconda environment with python3.7/3.8/3.9 installed. I haven't tested on python 3.11 yet.

Let me know how it goes!