Closed yjhp1016 closed 2 years ago
Hi,
This error is due to taichi == 1.0.3
modifications on the type factory
API. A temporal solution is to switch back to taichi == 1.0.2
and wait for developers to update the taichi_elements
code.
Just now merged https://github.com/taichi-dev/taichi_elements/pull/100, could you try again? @yjhp1016 Many thanks! :-)
Just now merged #100, could you try again? @yjhp1016 Many thanks! :-)
I just checked, problem solved! Thanks! 👍
Hi I got an error when trying to run a demo demo_3d_bunnies.py, is it caused by using wrong version? Thanks
[Taichi] version 1.0.3, llvm 10.0.0, commit fae94a21, win, python 3.9.12 C:\ProgramData\Anaconda3\lib\site-packages\taichi__init__.py:69: DeprecationWarning: ti.ext_arr is deprecated. Please use ti.types.ndarray instead. warnings.warn( Namespace(show=False, frames=300, res=256, out_dir=None) [Taichi] Starting on arch=cuda Traceback (most recent call last): File "d:\s01jy0\work\taichi_elements\demo\demo_3d_bunnies.py", line 67, in
mpm = MPMSolver(res=(R, R, R),
File "d:\s01jy0\work\taichi_elements\engine\mpm_solver.py", line 107, in init
ci21 = ti.type_factory.custom_int(21, True)
File "C:\ProgramData\Anaconda3\lib\site-packages\taichi__init.py", line 80, in getattr
raise AttributeError(f"module '{name__}' has no attribute '{attr}'")
AttributeError: module 'taichi' has no attribute 'type_factory'