Skip to content

[Bug/Question] AttributeError: module 'drjit' has no attribute 'syntax' #22

@willytrek

Description

@willytrek

https://mitsuba.readthedocs.io/en/stable/src/rendering/scripting_renderer.html
image

When I try to run this code in PyCharm, I encounter the following error:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[58], line 4
      1 # Accumulated result
      2 result = mi.Float(0)
----> 4 @dr.syntax
      5 def my_loop(result, si, rng, ambient_ray_count):
      6     # Loop iteration counter
      7     i = mi.UInt32(0)
      9     while (si.is_valid() & (i < ambient_ray_count)):
     10         # 1. Draw some random numbers

AttributeError: module 'drjit' has no attribute 'syntax'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions