SilSinn9801
16th August 2022, 20:45
Hello,
I had recently upgraded my version of VapourSynth (AMD64) from R45 to R58 (plus installed Python 3.10 as required by R58), & even though I copied all VS-related Python scripts (vsutils.py, havsfunc.py, etc.) from their previous Python location (no longer remember what Py version did I have) to the new one (C:\Program Files\Python310\Lib\site-packages\vapoursynth), VS no longer detects them when I try to preview a VPY script in VapourSynth Editor r19:
Failed to evaluate the script:
Python exception: No module named 'vsutils'
Traceback (most recent call last):
File "src\cython\vapoursynth.pyx", line 2886, in vapoursynth._vpy_evaluate
File "src\cython\vapoursynth.pyx", line 2887, in vapoursynth._vpy_evaluate
File "D:\fakepath\TH09_07.VPY", line 2, in
import vsutils as vsu
ModuleNotFoundError: No module named 'vsutils'
I attest that vsutils previously worked fine for me under R45 as per these two previous threads:
http://forum.doom9.org/showthread.php?t=176288
http://forum.doom9.org/showthread.php?t=176375
Did R58 change something about how & where to load Py scripts? Or is this a specific Py3.10 issue?
EDIT: this is how I try to import vsutils & other Py scripts into my script (the same methodology that worked for me since those two archived threads above well into August 2021, the last time I recall using R45):
from vapoursynth import core
import vsutils as vsu
import havsfunc as haf
import functools
import sys
import math
vsufuncs = vsu.vsutils()
I had recently upgraded my version of VapourSynth (AMD64) from R45 to R58 (plus installed Python 3.10 as required by R58), & even though I copied all VS-related Python scripts (vsutils.py, havsfunc.py, etc.) from their previous Python location (no longer remember what Py version did I have) to the new one (C:\Program Files\Python310\Lib\site-packages\vapoursynth), VS no longer detects them when I try to preview a VPY script in VapourSynth Editor r19:
Failed to evaluate the script:
Python exception: No module named 'vsutils'
Traceback (most recent call last):
File "src\cython\vapoursynth.pyx", line 2886, in vapoursynth._vpy_evaluate
File "src\cython\vapoursynth.pyx", line 2887, in vapoursynth._vpy_evaluate
File "D:\fakepath\TH09_07.VPY", line 2, in
import vsutils as vsu
ModuleNotFoundError: No module named 'vsutils'
I attest that vsutils previously worked fine for me under R45 as per these two previous threads:
http://forum.doom9.org/showthread.php?t=176288
http://forum.doom9.org/showthread.php?t=176375
Did R58 change something about how & where to load Py scripts? Or is this a specific Py3.10 issue?
EDIT: this is how I try to import vsutils & other Py scripts into my script (the same methodology that worked for me since those two archived threads above well into August 2021, the last time I recall using R45):
from vapoursynth import core
import vsutils as vsu
import havsfunc as haf
import functools
import sys
import math
vsufuncs = vsu.vsutils()