Skip to content
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

Build without LLVM backend leads to Python Taichi unusable #4882

Closed
k-ye opened this issue Apr 28, 2022 · 2 comments
Closed

Build without LLVM backend leads to Python Taichi unusable #4882

k-ye opened this issue Apr 28, 2022 · 2 comments
Assignees
Labels
potential bug Something that looks like a bug but not yet confirmed

Comments

@k-ye
Copy link
Member

k-ye commented Apr 28, 2022

Describe the bug

ti
Traceback (most recent call last):
  File "/home/yekuang/miniconda3/envs/taichi-dev/bin/ti", line 33, in <module>
    sys.exit(load_entry_point('taichi', 'console_scripts', 'ti')())
  File "/home/yekuang/miniconda3/envs/taichi-dev/bin/ti", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/home/yekuang/miniconda3/envs/taichi-dev/lib/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/home/yekuang/miniconda3/envs/taichi-dev/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/home/yekuang/Github/taichi/python/taichi/__init__.py", line 3, in <module>
    from taichi._funcs import *
  File "/home/yekuang/Github/taichi/python/taichi/_funcs.py", line 3, in <module>
    from taichi.lang import impl, matrix, ops
  File "/home/yekuang/Github/taichi/python/taichi/lang/__init__.py", line 1, in <module>
    from taichi.lang import impl, simt
  File "/home/yekuang/Github/taichi/python/taichi/lang/impl.py", line 6, in <module>
    from taichi._lib import core as _ti_core
  File "/home/yekuang/Github/taichi/python/taichi/_lib/__init__.py", line 1, in <module>
    from taichi._lib.utils import ti_core as core
  File "/home/yekuang/Github/taichi/python/taichi/_lib/utils.py", line 165, in <module>
    _print_taichi_header()
  File "/home/yekuang/Github/taichi/python/taichi/_lib/utils.py", line 150, in _print_taichi_header
    llvm_version = ti_core.get_llvm_version_string()
AttributeError: module 'taichi._lib.core.taichi_core' has no attribute 'get_llvm_version_string'

This makes AOT really hard to use, as I have to switch between Taichi with and without LLVM. Let's make this one of the goals #4832 can resolve as well.

@k-ye k-ye added the potential bug Something that looks like a bug but not yet confirmed label Apr 28, 2022
@taichi-ci-bot taichi-ci-bot moved this to Untriaged in Taichi Lang Apr 28, 2022
@qiao-bo qiao-bo mentioned this issue Apr 28, 2022
13 tasks
@Leonz5288 Leonz5288 moved this from Untriaged to Todo in Taichi Lang Apr 29, 2022
@k-ye
Copy link
Member Author

k-ye commented Jun 9, 2022

Similar to #5112

@qiao-bo qiao-bo self-assigned this Jun 9, 2022
@qiao-bo qiao-bo moved this from Todo to In Progress in Taichi Lang Jun 9, 2022
@qiao-bo
Copy link
Contributor

qiao-bo commented Jun 9, 2022

close this as fixed by #5113

@qiao-bo qiao-bo closed this as completed Jun 9, 2022
Repository owner moved this from In Progress to Done in Taichi Lang Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
potential bug Something that looks like a bug but not yet confirmed
Projects
Status: Done
Development

No branches or pull requests

2 participants