pyosl
pyosl copied to clipboard
AttributeError: module 'ast' has no attribute 'NodeVisitor'
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.