AcademySoftwareFoundation / OpenColorIO

A color management framework for visual effects and animation.
https://opencolorio.org
BSD 3-Clause "New" or "Revised" License
1.76k stars 437 forks source link

python 3.9 and python 3.7 failed to load dynamic on windows #1769

Closed bluearte closed 4 months ago

bluearte commented 1 year ago

I installed it using https://github.com/AcademySoftwareFoundation/OpenColorIO/blob/RB-2.2/share/dev/windows/ocio.bat

modname = "PyOpenColorIO" path = r"C:\ocio_temp\ocio\3.9\install\Release\lib\site-packages\PyOpenColorIO.pyd" loader = importlib.machinery.SourceFileLoader(modname, path) _mod = types.ModuleType(loader.name) loader.exec_module(_mod) Traceback (most recent call last): File "", line 1, in File "", line 846, in exec_module File "", line 983, in get_code File "", line 913, in source_to_code File "", line 228, in _call_with_frames_removed ValueError: source code string cannot contain null bytes

hopefully anyone can help me to solve this problem or am I missing something?