cogtoolslab / physics-benchmarking-neurips2021

Repo for "Physion: Evaluating Physical Prediction from Vision in Humans and Machines", presented at NeurIPS 2021 (Datasets & Benchmarks track)
MIT License
59 stars 3 forks source link

No module named 'tdw.flex' #58

Open HongliXiao opened 1 year ago

HongliXiao commented 1 year ago

When I tried to run "drape.py", there is an error in line 19: from tdw.flex.fluid_types import FluidTypes

Traceback (most recent call last): File "f:/Research/3D/Physion/physics-benchmarking-neurips2021-master/stimuli/generation/controllers/drape.py", line 19, in from tdw.flex.fluid_types import FluidTypes ModuleNotFoundError: No module named 'tdw.flex'

felixbinder commented 1 year ago

Which version of TDW have you installed? Have you followed the installation instructions here? Also, which system are you using? If I remember correctly, the physics engine TDW uses for non-rigid bodies is only supported by Windows

HongliXiao commented 1 year ago

The TDW I installed is the latest version 1.11.23. There should be nothing wrong with the tdw_physics I installed. The system I use is Windows 11.

HongliXiao commented 1 year ago

image

HongliXiao commented 1 year ago

I guess the problem may be related to TDW. There is no FluidTypes class in the latest version of TDW library.

HongliXiao commented 1 year ago

The code "from tdw.flex_data.fluid_type import FluidType" can call the FluidType class of the new version of TDW, but its usage method is different from the previous FluidTypes. Can you help me figure out what to do?

felixbinder commented 1 year ago

Could you try to install TDW version 1.8.8.0? v1.9.12 changed some things with regards to fluids. When you change your install to the 1.8.8.0 version of TDW, please make sure that it downloads a fresh build rather than using the one it has previously downloaded.