Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'tdw.flex' #58

Open
HongliXiao opened this issue Jul 5, 2023 · 6 comments
Open

No module named 'tdw.flex' #58

HongliXiao opened this issue Jul 5, 2023 · 6 comments

Comments

@HongliXiao
Copy link

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
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Author

image

@HongliXiao
Copy link
Author

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

@HongliXiao
Copy link
Author

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants