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

[v1.7.0][Bug] Fix Voxel Editor error with "voxel_editor.py" #8380

Closed
jim19930609 opened this issue Oct 24, 2023 · 0 comments
Closed

[v1.7.0][Bug] Fix Voxel Editor error with "voxel_editor.py" #8380

jim19930609 opened this issue Oct 24, 2023 · 0 comments
Milestone

Comments

@jim19930609
Copy link
Contributor

Reproduce

cd voxel_editor
python3 voxel_editor.py

Log

Traceback (most recent call last):
  File "/home/taichigraphics/workspace/TaichiRepos/Release/voxel_editor/voxel_editor.py", line 329, in <module>
    main()
  File "/home/taichigraphics/workspace/TaichiRepos/Release/voxel_editor/voxel_editor.py", line 322, in main
    renderer.accumulate()
  File "/home/taichigraphics/workspace/TaichiRepos/Release/voxel_editor/renderer.py", line 438, in accumulate
    self.render()
  File "/home/taichigraphics/workspace/TaichiRepos/Release/taichi/python/taichi/lang/kernel_impl.py", line 1168, in __call__
    raise type(e)("\n" + str(e)) from None
taichi.lang.exception.TaichiCompilationError: 
File "/home/taichigraphics/workspace/TaichiRepos/Release/voxel_editor/renderer.py", line 327, in render:
        ti.block_dim(256)
        ^^^^^^^^^^^^
Traceback (most recent call last):
  File "/home/taichigraphics/workspace/TaichiRepos/Release/taichi/python/taichi/lang/ast/ast_transformer_utils.py", line 27, in __call__
    return method(ctx, node)
  File "/home/taichigraphics/workspace/TaichiRepos/Release/taichi/python/taichi/lang/ast/ast_transformer.py", line 1040, in build_Attribute
    node.ptr = getattr(node.value.ptr, node.attr)
  File "/home/taichigraphics/workspace/TaichiRepos/Release/taichi/python/taichi/__init__.py", line 23, in __getattr__
    raise AttributeError(f"module '{__name__}' has no attribute '{attr}'")
AttributeError: module 'taichi' has no attribute 'block_dim'
@github-project-automation github-project-automation bot moved this to Untriaged in Taichi Lang Oct 24, 2023
@jim19930609 jim19930609 added this to the v1.7.0 milestone Oct 24, 2023
@github-project-automation github-project-automation bot moved this from Untriaged to Done in Taichi Lang Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant