Menu Close

AttributeError: module ‘vapoursynth’ has no attribute ‘get_core’

I was trying to use YoloCR when suddenly VapourSynth-Editor keep spitting out this error:

Failed to evaluate the script:
Python exception: module 'vapoursynth' has no attribute 'get_core'

Traceback (most recent call last):
File "src/cython/vapoursynth.pyx", line 2832, in vapoursynth._vpy_evaluate
File "src/cython/vapoursynth.pyx", line 2833, in vapoursynth._vpy_evaluate
File "/mnt/Storage/others-arch/yolocr/YoloResize.vpy", line 11, in
core=vs.get_core()
AttributeError: module 'vapoursynth' has no attribute 'get_core'

After searching around, apparently, get_core() is no longer available in the latest VapourSynth version.

Solution

First, you need to identify where is get_core() is being called. You can see an example taken from YoloResize.vpy.

AttributeError: module 'vapoursynth' has no attribute 'get_core' 1

change get_core() to core

AttributeError: module 'vapoursynth' has no attribute 'get_core' 2

That is all.

5 1 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x