physics-benchmarking-neurips2021 icon indicating copy to clipboard operation
physics-benchmarking-neurips2021 copied to clipboard

No module named 'tdw.flex'

Open HongliXiao opened this issue 1 year ago • 6 comments

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'

HongliXiao avatar Jul 05 '23 04:07 HongliXiao

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

felixbinder avatar Jul 05 '23 17:07 felixbinder

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 avatar Jul 07 '23 09:07 HongliXiao

image

HongliXiao avatar Jul 07 '23 09:07 HongliXiao

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

HongliXiao avatar Jul 07 '23 09:07 HongliXiao

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?

HongliXiao avatar Jul 07 '23 09:07 HongliXiao

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.

felixbinder avatar Jul 08 '23 22:07 felixbinder