taichi-dev / taichi_elements

High-performance multi-material continuum physics engine in Taichi
MIT License
483 stars 69 forks source link

module 'taichi' has no attribute 'block_local' #65

Closed charlotte12l closed 3 years ago

charlotte12l commented 3 years ago

I was using taichi latest v0.6.26 but I can't run demo_2d or demo_3d. However, the examples in difftaichi work well in my environment. Is installing blender a must for running demo_2d or demo_3d? Thanks!

File "demo_2d.py", line 21, in mpm.step(8e-3) File "/Users/charlotte/Desktop/study/6.837/project/taichi_elements/engine/mpm_solver.py", line 420, in step self.p2g(dt) File "/Users/charlotte/anaconda3/envs/taichi/lib/python3.6/site-packages/taichi/lang/kernel.py", line 608, in call return self._primal(self._kernel_owner, *args, *kwargs) File "/Users/charlotte/anaconda3/envs/taichi/lib/python3.6/site-packages/taichi/lang/kernel.py", line 502, in call self.materialize(key=key, args=args, arg_features=arg_features) File "/Users/charlotte/anaconda3/envs/taichi/lib/python3.6/site-packages/taichi/lang/kernel.py", line 378, in materialize taichi_kernel = taichi_kernel.define(taichi_ast_generator) File "/Users/charlotte/anaconda3/envs/taichi/lib/python3.6/site-packages/taichi/lang/kernel.py", line 375, in taichi_ast_generator compiled() File "/Users/charlotte/Desktop/study/6.837/project/taichi_elements/engine/mpm_solver.py", line 207, in p2g ti.block_local(self.grid_v.entries) AttributeError: module 'taichi' has no attribute 'block_local'

charlotte12l commented 3 years ago

Sorry, v0.7.8 would work.