Skip to content

AttributeError: module 'ast' has no attribute 'NodeVisitor' #1

@rsegecin

Description

@rsegecin

I've tried to convert an OSL into a GLSL and I've got this output error below. The osl file you can find it here.

 python osl2glsl.py flakes.osl > flakes.glsl
Traceback (most recent call last):
  File "C:\Users\Rinaldi\Sources\pyosl\osl2glsl.py", line 7, in <module>
    import pyosl.glslgen, pyosl.oslparse
  File "C:\Users\Rinaldi\Sources\pyosl\..\pyosl\glslgen.py", line 3, in <module>
    import binascii, collections, inspect, os, re, sys
  File "C:\Users\Rinaldi\AppData\Local\Programs\Python\Python312\Lib\inspect.py", line 1036, in <module>
    class _ClassFinder(ast.NodeVisitor):
                       ^^^^^^^^^^^^^^^
AttributeError: module 'ast' has no attribute 'NodeVisitor'

Thanks.

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