OpusGang / awsmfunc

awesome VapourSynth functions
MIT License
17 stars 4 forks source link

FrameInfo relies on a deprecated (?) attribute. #25

Closed cold-nagai closed 11 months ago

cold-nagai commented 11 months ago
File "/usr/lib/python3.11/site-packages/vsengine/vpy.py", line 219, in _execute
    runpy.run_path(str(script), module.__dict__, module.__name__)
  File "<frozen runpy>", line 291, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "/usr/lib/python3.11/site-packages/vspreview/core/vsenv.py", line 36, in _monkey_runpy_func
    glob_dict = orig_runpy_run_code(*args, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen runpy>", line 88, in _run_code
  File "/home/nix-encode/broken-frameinfo/example.py", line 12, in <module>
    src = awf.FrameInfo(src2, "Source")
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/awsmfunc/base.py", line 1262, in FrameInfo
    clip = core.sub.Subtitle(clip, text=[padding_title + title], style=style)
           ^^^^^^^^
  File "src\cython\vapoursynth.pyx", line 2628, in vapoursynth._CoreProxy.__getattr__
  File "src\cython\vapoursynth.pyx", line 2483, in vapoursynth.Core.__getattr__
AttributeError: No attribute with the name sub exists. Did you mistype a plugin namespace?
quietvoid commented 11 months ago

Did you install the subtext plugin? It hasn't been built-in for a while now.

cold-nagai commented 11 months ago

Kudos.