You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
ImportError occurs when I import taichi from python.
To Reproduce
Since I was trying to use genesis which uses taichi internally, reproduction include installation of these packages, but seems clear that it is an issue related to taichi.
(genesis) root@instance-14489:~# python
Python 3.10.16 (main, Dec 11 2024, 16:24:50) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import taichi
Share object taichi_python import failed, check this page for possible solutions:
https://docs.taichi-lang.org/docs/install
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/data/ephemeral/conda/envs/genesis/lib/python3.10/site-packages/taichi/__init__.py", line 1, in <module>
from taichi._funcs import *
File "/data/ephemeral/conda/envs/genesis/lib/python3.10/site-packages/taichi/_funcs.py", line 3, in <module>
from taichi.lang import impl, ops
File "/data/ephemeral/conda/envs/genesis/lib/python3.10/site-packages/taichi/lang/__init__.py", line 1, in <module>
from taichi.lang import impl, simt
File "/data/ephemeral/conda/envs/genesis/lib/python3.10/site-packages/taichi/lang/impl.py", line 6, in <module>
from taichi._lib import core as _ti_core
File "/data/ephemeral/conda/envs/genesis/lib/python3.10/site-packages/taichi/_lib/__init__.py", line 1, in <module>
from taichi._lib.utils import ti_python_core as core
File "/data/ephemeral/conda/envs/genesis/lib/python3.10/site-packages/taichi/_lib/utils.py", line 110, in <module>
ti_python_core = import_ti_python_core()
File "/data/ephemeral/conda/envs/genesis/lib/python3.10/site-packages/taichi/_lib/utils.py", line 57, in import_ti_python_core
raise e from None
File "/data/ephemeral/conda/envs/genesis/lib/python3.10/site-packages/taichi/_lib/utils.py", line 46, in import_ti_python_core
from taichi._lib.core import taichi_python as core # pylint: disable=C0415
ImportError: libX11.so.6: cannot open shared object file: No such file or directory
>>>
(genesis) root@instance-14489:~# ti diagnose
Share object taichi_python import failed, check this page for possible solutions:
https://docs.taichi-lang.org/docs/install
Traceback (most recent call last):
File "/data/ephemeral/conda/envs/genesis/bin/ti", line 5, in <module>
from taichi._main import main
File "/data/ephemeral/conda/envs/genesis/lib/python3.10/site-packages/taichi/__init__.py", line 1, in <module>
from taichi._funcs import *
File "/data/ephemeral/conda/envs/genesis/lib/python3.10/site-packages/taichi/_funcs.py", line 3, in <module>
from taichi.lang import impl, ops
File "/data/ephemeral/conda/envs/genesis/lib/python3.10/site-packages/taichi/lang/__init__.py", line 1, in <module>
from taichi.lang import impl, simt
File "/data/ephemeral/conda/envs/genesis/lib/python3.10/site-packages/taichi/lang/impl.py", line 6, in <module>
from taichi._lib import core as _ti_core
File "/data/ephemeral/conda/envs/genesis/lib/python3.10/site-packages/taichi/_lib/__init__.py", line 1, in <module>
from taichi._lib.utils import ti_python_core as core
File "/data/ephemeral/conda/envs/genesis/lib/python3.10/site-packages/taichi/_lib/utils.py", line 110, in <module>
ti_python_core = import_ti_python_core()
File "/data/ephemeral/conda/envs/genesis/lib/python3.10/site-packages/taichi/_lib/utils.py", line 57, in import_ti_python_core
raise e from None
File "/data/ephemeral/conda/envs/genesis/lib/python3.10/site-packages/taichi/_lib/utils.py", line 46, in import_ti_python_core
from taichi._lib.core import taichi_python as core # pylint: disable=C0415
ImportError: libX11.so.6: cannot open shared object file: No such file or directory
Additional comments
Since ti do not work, I manually figured out environment information as below. Please let me know if you need another informations. Thank you.
(genesis) root@instance-14489:~# uname -a
Linux instance-14489 5.4.0-99-generic #112-Ubuntu SMP Thu Feb 3 13:50:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
(genesis) root@instance-14489:~# cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
(genesis) root@instance-14489:~# gcc --version
bash: gcc: command not found
(genesis) root@instance-14489:~# g++ --version
bash: g++: command not found
(genesis) root@instance-14489:~# nvidia-smi
Mon Jan 6 14:36:24 2025
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.161.08 Driver Version: 535.161.08 CUDA Version: 12.2 ||-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC || Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |||| MIG M. ||=========================================+======================+======================|| 0 Tesla V100-SXM2-32GB On | 00000000:00:05.0 Off | Off || N/A 34C P0 37W / 300W | 0MiB / 32768MiB | 0% Default |||| N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes: || GPU GI CI PID Type Process name GPU Memory || ID ID Usage ||=======================================================================================|| No running processes found |
+---------------------------------------------------------------------------------------+
The text was updated successfully, but these errors were encountered:
Describe the bug
ImportError occurs when I import taichi from python.
To Reproduce
Since I was trying to use genesis which uses taichi internally, reproduction include installation of these packages, but seems clear that it is an issue related to taichi.
Log/Screenshots
Additional comments
Since
ti
do not work, I manually figured out environment information as below. Please let me know if you need another informations. Thank you.The text was updated successfully, but these errors were encountered: