In hack.py, the statement _old_element_wise_binary = ti.Matrix._element_wise_binary generates directly an AttributeError.
steps to reproduce (python3.11) :
- pip install taichi taichi_glsl
in a file example.py:
2) import taichi_glsl as ts
this statement will do from .hack import * that generates the error:
AttributeError: type object 'Matrix' has no attribute '_element_wise_binary'
In hack.py, the statement
_old_element_wise_binary = ti.Matrix._element_wise_binarygenerates directly an AttributeError.steps to reproduce (python3.11) :
in a file example.py:
2)
import taichi_glsl as tsthis statement will do
from .hack import *that generates the error:AttributeError: type object 'Matrix' has no attribute '_element_wise_binary'