-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: module 'taichi' has no attribute 'var' #364
Comments
Hi,
Please remove your taichi repo and env variables - they will fight against pip. |
remove what? |
Please remove all four env vars. |
Share my experience here:
Seem that CXXABI's is not satisfied. So I give up Ubuntu. Using Mac. |
Traceback (most recent call last): how to solve this ? |
Could you try run |
Your fractal.py is too old to run on latest Taichi. AFAIK Taichi v1.0 already deprecated ti.var. Please download the latest fractal.py on github to replace it.
无法顺畅的大口呼吸,是活着的最好证明
…---Original---
From: ***@***.***>
Date: Sun, May 29, 2022 09:52 AM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [taichi-dev/taichi] AttributeError: module 'taichi' has no attribute 'var' (#364)
Hi, I am having the same issue on macOS Monterey 12.4 (MacBook Pro 2018) with the latest Taichi
python fractal.py [Taichi] version 1.0.2, llvm 10.0.0, commit 14f0acb, osx, python 3.8.0 [Taichi] Starting on arch=metal Traceback (most recent call last): File "fractal.py", line 6, in <module> pixels = ti.var(dt=ti.f32, shape=(n * 2, n)) File "/Users/jacky/anaconda3/envs/cg/lib/python3.8/site-packages/taichi/__init__.py", line 82, in __getattr__ raise AttributeError(f"module '{__name__}' has no attribute '{attr}'") AttributeError: module 'taichi' has no attribute 'var'
I also tried Taichi-nightly 0.5.11 on my laptop and repeated the steps on a borrowed macOS Monterey 12.3 but the same error is still there (so I doubt probably because of the system?).
Could you give any suggestions on this?
Thank you
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
I use ubutnu16.04.
I installed taichi using command:
python3 -m pip install taichi-nightly
And installing Taichi Library using command:
And set the environment path:
But when i run the example fractal.py:
Anything wrong?
The text was updated successfully, but these errors were encountered: