Log in

View Full Version : VapourSynth on Linux-Mint


Video_Junky
15th October 2018, 21:33
Hi everyone,

I'm a Linux newbee, and try to make VapourSynth working on Linux Mint 19.
I have installed VapourSynth from the Ubuntu repository, and everything looks fine till the moment i want to import a module (havsfunc), Then I get the error-message "No module named 'havsfunc'". This is my script:

import vapoursynth as vs
core = vs.get_core()
import havsfunc as haf
clip = core.ffms2.Source(source='Tape0001-Clip0017.avi')
clip.set_output()

I was not able to find the file vapoursynth.conf, so I create one in the folder /.config/vapoursynth, with the line "UserPluginDir=/home/username/vapoursynth/plugins".
Maybe this file isn't read by vapoursynth.

Anyone knows what i'm doing wrong?
Thanks in advanced.

Are_
16th October 2018, 00:34
Python modules are not plug-ins, they go in python's module load directory.

Open a prompt and execute:
python -c "import site; print(site.getsitepackages())"
There is were havsfunc.py should reside.

python -m site --user-site

Will probably give you your user-local directory so you don't have to mess with root stuff and taint your system.

Video_Junky
16th October 2018, 13:47
Hi Are_

Thanks you for your fast reply.
I have tried what you proposed to me.
And it's working now.
I have 2 versions of Python on my laptop (2.7 & 3.7).
In stead of 2.7, I should put the "py-files" in the 3.7 version.

Thanks again for your help.

Best regards,:)