Closed ghost closed 3 years ago
Matrix had is_global
a year ago: https://github.com/taichi-dev/taichi/blob/89157b2/python/taichi/lang/matrix.py#L93-L101
But not anymore, it seems: https://github.com/taichi-dev/taichi/blob/master/python/taichi/lang/matrix.py
https://github.com/taichi-dev/taichi/pull/2050#issuecomment-760775596 :slightly_smiling_face:
If I temporarily delete is_global
part, then I get this error:
$ python3 -c "import tina; print(tina)"
[Tina] version 0.1.1
[Taichi] version 0.7.31, llvm 10.0.0, commit fa68168a, linux, python 3.8.10
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/constantine/.local/lib/python3.8/site-packages/tina/__init__.py", line 22, in <module>
from .hacker import *
File "/home/constantine/.local/lib/python3.8/site-packages/tina/hacker.py", line 8, in <module>
and f(x, y, z))(ti.Matrix.element_wise_writeback_binary)) or setattr(ti.TaichiOperations, '__pos__',
File "/home/constantine/.local/lib/python3.8/site-packages/taichi/__init__.py", line 30, in __getattr__
raise AttributeError(f"module '{__name__}' has no attribute '{attr}'")
AttributeError: module 'taichi' has no attribute 'TaichiOperations'
I guess Tina is not up to date with the latest Taichi yet :slightly_smiling_face:
Removing TaichiOperations
part yields:
$ python3 -c "import tina; print(tina)"
[Tina] version 0.1.1
[Taichi] version 0.7.31, llvm 10.0.0, commit fa68168a, linux, python 3.8.10
[Tina] Taichi properties hacked
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/constantine/.local/lib/python3.8/site-packages/tina/__init__.py", line 22, in <module>
from .hacker import *
File "/home/constantine/.local/lib/python3.8/site-packages/tina/hacker.py", line 50, in <module>
def _():
File "<string>", line 1, in <lambda>
File "/home/constantine/.local/lib/python3.8/site-packages/tina/hacker.py", line 57, in _
from taichi.lang.transformer import ASTTransformerBase, ASTTransformerPreprocess
ImportError: cannot import name 'ASTTransformerPreprocess' from 'taichi.lang.transformer' (/home/constantine/.local/lib/python3.8/site-packages/taichi/lang/transformer.py)
Sorry for assuming too much in Taichi internal design :) Using pip install taichi==0.6.8
may fix the issue for now.
无法顺畅的大口呼吸,是活着的最好证明
---Original--- From: @.> Date: Mon, Sep 6, 2021 12:54 PM To: @.>; Cc: @.***>; Subject: Re: [taichi-dev/taichi_three] A fresh installation fails verify installation test (type object 'Matrix' has no attribute 'is_global') (#50)
Removing TaichiOperations part yields:
$ python3 -c "import tina; print(tina)" [Tina] version 0.1.1 [Taichi] version 0.7.31, llvm 10.0.0, commit fa68168a, linux, python 3.8.10 [Tina] Taichi properties hacked Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/constantine/.local/lib/python3.8/site-packages/tina/init.py", line 22, in <module> from .hacker import * File "/home/constantine/.local/lib/python3.8/site-packages/tina/hacker.py", line 50, in <module> def (): File "<string>", line 1, in <lambda> File "/home/constantine/.local/lib/python3.8/site-packages/tina/hacker.py", line 57, in from taichi.lang.transformer import ASTTransformerBase, ASTTransformerPreprocess ImportError: cannot import name 'ASTTransformerPreprocess' from 'taichi.lang.transformer' (/home/constantine/.local/lib/python3.8/site-packages/taichi/lang/transformer.py)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
@archibate cool, thanks!
Taichi install looks good:
Tina install looks good:
Running the
python -c "import tina; print(tina)"
test from the README throws this error:Thanks in advance! :)