pyosl icon indicating copy to clipboard operation
pyosl copied to clipboard

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

Open rsegecin opened this issue 2 months ago • 0 comments

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.

rsegecin avatar May 02 '24 05:05 rsegecin