Skip to content

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

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'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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