yuanming-hu / taichi_mpm

High-performance moving least squares material point method (MLS-MPM) solver. (ACM Transactions on Graphics, SIGGRAPH 2018)
MIT License
2.36k stars 315 forks source link

AttributeError: module 'taichi' has no attribute 'dynamics' #32

Open eaglex-sh opened 4 years ago

eaglex-sh commented 4 years ago

The problem occurs when I run the script under the /mls-cpic

yuanming-hu commented 4 years ago

Hi @guodewen , are you following this (https://taichi.readthedocs.io/en/latest/installation.html#ubuntu-arch-linux-and-mac-os-x) to install the legacy taichi? You might have used a version of taichi that is too new.

eaglex-sh commented 4 years ago

Hi, sir. I followed the instructions on the web page, and there is an error I don't know how to fix.

assert os.path.exists(os.path.join(bin_dir, 'libtaichi_core.dylib'))

AssertionError Error: installation failed.

Then, I rerun the script

python3 install.py

And it occurs

Existing taichi installation detected. Please remove existing taichi installation in

MrBurnst commented 4 years ago

I have the same problem on a linux install... libtaichi_core is not being built apparently?

yuanming-hu commented 4 years ago

Hi guys,

Could you ls your taichi/build folder and share the results?

MrBurnst commented 4 years ago

... I don't get one - running the setup script does not generate a taichi build. and when I git pull the legacy branch I am unable to build it - I tried downgrading llvm to 8.0, python3.5 and 3.7, nothing works :/ last thing I got when building was

pybind11.h:1010:9: error: no matching function for call to 'operator delete'

in lib/python3.7/site-packages/taichi/lib I have libdevice.10.bc libtaichi_core.so runtime_cuda.bc runtime_x86_64.bc taichi_core.so

yuanming-hu commented 4 years ago

Hi @MrBurnst , please see here: https://github.com/yuanming-hu/taichi/issues/312

uljad commented 4 years ago

Hello, I am having the same problem with several scripts. I followed the instructions to install the legacy version. the ls is: CMakeCache.txt libccd.so libpartio.so Makefile CMakeFiles libccd.so.2 libtaichi_core.so projects cmake_install.cmake libccd.so.2.0 libtaichi_mpm.so taichi_core.so