Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 16th August 2022, 20:45   #1  |  Link
SilSinn9801
Chiptuner & VapourSynther
 
SilSinn9801's Avatar
 
Join Date: Mar 2019
Location: Scarlet Devil Mansion, Gensōkyō
Posts: 52
vsutils no longer detected by VapourSynth after upgrading from R45 to R58

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:
Code:
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):
Code:
from vapoursynth import core
import vsutils as vsu
import havsfunc as haf
import functools
import sys
import math
vsufuncs = vsu.vsutils()
__________________
SilSinn9801 a.k.a. Silent Sinner in Scarlet
Discord: silsinn9801
Matrix: silsinn9821:matrix.org
YouTube: https://youtube.com/SilentSinnerInScarlet
ニコニコ動画: https://nicovideo.jp/user/68029427

Last edited by SilSinn9801; 16th August 2022 at 20:50. Reason: added for context how I try to invoke vsutils & other Py scripts; fixed misspelled word
SilSinn9801 is offline   Reply With Quote
Old 16th August 2022, 21:06   #2  |  Link
Julek
Registered User
 
Julek's Avatar
 
Join Date: Dec 2020
Posts: 80
The python files should be in C:\Program Files\Python310\Lib\site-packages
Not in C:\Program Files\Python310\Lib\site-packages\vapoursynth

I also recommend to get updated github versions to avoid error with VS new API4

And for fade effects, I recommend this script:
https://github.com/OrangeChannel/vs-transitions
Docs: https://vapoursynth-transitions.read....io/en/latest/
__________________
CPU: AMD 3700X | GPU: RTX 3070Ti | RAM: 32GB 3200MHz
Discord: @Julek#9391 || GitHub
Julek is offline   Reply With Quote
Old 16th August 2022, 21:27   #3  |  Link
SilSinn9801
Chiptuner & VapourSynther
 
SilSinn9801's Avatar
 
Join Date: Mar 2019
Location: Scarlet Devil Mansion, Gensōkyō
Posts: 52
Does Irrational-Encoding-Wizardry/vsutil replace jeremypoulter/vsutils?

Quote:
Originally Posted by Julek View Post
I also recommend to get updated github versions to avoid error with VS new API4
Huh, vsutils (plural) as in https://github.com/jeremypoulter/vsutils has not been updated since 2016, but now there is mention of a vsutil (singular) as in https://github.com/Irrational-Encoding-Wizardry/vsutil which was updated a few days ago (learned this because the most recent version of HolyWus havsfunc just asked me for it). Is singular vsutil a replacement for plural vsutils?
__________________
SilSinn9801 a.k.a. Silent Sinner in Scarlet
Discord: silsinn9801
Matrix: silsinn9821:matrix.org
YouTube: https://youtube.com/SilentSinnerInScarlet
ニコニコ動画: https://nicovideo.jp/user/68029427
SilSinn9801 is offline   Reply With Quote
Old 16th August 2022, 21:35   #4  |  Link
Julek
Registered User
 
Julek's Avatar
 
Join Date: Dec 2020
Posts: 80
Quote:
Originally Posted by SilSinn9801 View Post
Is singular vsutil a replacement for plural vsutils?
No, they are completely different projects.
__________________
CPU: AMD 3700X | GPU: RTX 3070Ti | RAM: 32GB 3200MHz
Discord: @Julek#9391 || GitHub
Julek is offline   Reply With Quote
Old 16th August 2022, 21:53   #5  |  Link
SilSinn9801
Chiptuner & VapourSynther
 
SilSinn9801's Avatar
 
Join Date: Mar 2019
Location: Scarlet Devil Mansion, Gensōkyō
Posts: 52
Now after moving vsutils & other scripts to the new location & refreshing all scripts that had updates, now I get this error:
Code:
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 2890, in vapoursynth._vpy_evaluate
File "src\cython\vapoursynth.pyx", line 2891, in vapoursynth._vpy_evaluate
File "D:\fakepath\TH09_07.VPY", line 7, in 
vsufuncs = vsu.vsutils()
File "C:\Program Files\Python310\lib\site-packages\vsutils.py", line 8, in __init__
self.core = vs.get_core()
AttributeError: module 'vapoursynth' has no attribute 'get_core'
How do I remedy this thing now? (or what should I modify in vsutils.py to make it work now that its creator no longer seems to maintain it since 2016?)

EDIT: my VapourSynth install is now R59 after installing your jvsfunc script via PIP.
__________________
SilSinn9801 a.k.a. Silent Sinner in Scarlet
Discord: silsinn9801
Matrix: silsinn9821:matrix.org
YouTube: https://youtube.com/SilentSinnerInScarlet
ニコニコ動画: https://nicovideo.jp/user/68029427

Last edited by SilSinn9801; 16th August 2022 at 21:56. Reason: adding that now I have R59 since installing jvsfunc via pip just upgraded vapoursynth
SilSinn9801 is offline   Reply With Quote
Old 16th August 2022, 23:13   #6  |  Link
Julek
Registered User
 
Julek's Avatar
 
Join Date: Dec 2020
Posts: 80
Quote:
Originally Posted by SilSinn9801 View Post
File "C:\Program Files\Python310\lib\site-packages\vsutils.py", line 8, in __init__
self.core = vs.get_core()
AttributeError: module 'vapoursynth' has no attribute 'get_core'
Edit vs.get_core() to vs.core
__________________
CPU: AMD 3700X | GPU: RTX 3070Ti | RAM: 32GB 3200MHz
Discord: @Julek#9391 || GitHub
Julek is offline   Reply With Quote
Reply

Tags
python 3.10, vapoursynth r58, vsutils

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 00:15.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.