Log in

View Full Version : Vapoursynth install on Linux


perforator
26th January 2016, 18:39
Does anyone have a working clear (and correct) instruction on how Vapoursynth should be installed?
I guess preferably based from source, as the different Linux distributions add "ifs" and "buts" as fore myself I currently use Linux Mint 17.3 and "uname -a" tells "3.13.0-24-generic #47-Ubuntu SMP...." and as Mint is based on Ubuntu which is based on Debian maybe I'm just making it hard on my self!

On the "official page" it starts by saying one should use Python 3.5, which wasn't in the Mint repositories, no problem, easy enough to get it, configure, compile and install.

Moving on to installing FFMS2 (which by the way would not install earlier, probably because I missed the first instruction on installing Python) :o Well , not it worked! :D
ZIMG works after the Python first was installed. :)
Off to the Vapoursynth install and it all goes well after adding the packages as instructed for Ubuntu. :) (or was it prior when installing ZIMG?)

Either way, "vspipe -v" "Failed to initialize VapourSynth environment"
With some luck I find this, https://www.doom9.org/showpost.php?p=1754141&postcount=1891
It is just that it refers to Python 3.4 !! :sly:
And when I try to add my first plugin it tells me I don't have a working Vapoursynth. :(

So, now what?
How do I uninstall Python 3.5, do I have to?
Do I have to reinstall all the other components?
Am I better off changing Linux distribution?

:helpful:

jmartinr
26th January 2016, 20:36
Look 2 posts down: http://forum.doom9.org/showpost.php?p=1754304&postcount=1893
Does that solve it? I'm on Mint too and I've got it working. And I guess that Python 3.5 should do the Job too.
And when I try to add my first plugin it tells me I don't have a working Vapoursynth.
What's the literal error message you get?

perforator
27th January 2016, 12:20
The error I get is...

~$ <path> /VapourSynth-BM3D $ ./configure
CXXFLAGS/LDFLAGS checking...
warning: pkg-config or pc files not found, lib detection may be inaccurate.
checking for vapoursynth headers...
error: vapoursynth checking failed.
error: VapourSynth.h might not be installed.

Then I ran, "vspipe -v" which gives me...
VapourSynth Video Processing Library
Copyright (c) 2012-2016 Fredrik Mellbin
Core R30
API R3.4
Options: -

So then I run python and try with the first step in a script, "import vapoursynth as vs" and get...

Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import vaportsynth as vs
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named vaportsynth
>>> exit
Use exit() or Ctrl-D (i.e. EOF) to exit
>>> quit
Use quit() or Ctrl-D (i.e. EOF) to exit
>>>

It looks as I also have Python 2.7 !!

Then I start with /usr/local/bin/python3.5 and run the same import command...
Python 3.5.1 (default, Jan 26 2016, 15:21:42)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import vaporsynth as vs
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'vaporsynth'
>>> import vapoursynth as vs
_frozen_importlib:222: RuntimeWarning: compiletime version 3.4 of module 'vapoursynth' does not match runtime version 3.5
>>>

and the "python setup.py install" didn't go through... :(
File "setup.py", line 1893
exec(f.read(), globals(), fficonfig)
SyntaxError: unqualified exec is not allowed in function 'configure_ctypes' it contains a nested function with free variables

sl1pkn07
27th January 2016, 12:26
>>> import vaportsynth as vs

>>> import vaporsynth as vs

is vapoursynth XD

Monarc
27th January 2016, 12:36
I guess preferably based from source, as the different Linux distributions add "ifs" and "buts" as fore myself I currently use Linux Mint 17.3 and "uname -a" tells "3.13.0-24-generic #47-Ubuntu SMP...." and as Mint is based on Ubuntu which is based on Debian maybe I'm just making it hard on my self!

Am I better off changing Linux distribution?

Or try ppa?

https://launchpad.net/~djcj/+archive/ubuntu/vapoursynth

perforator
27th January 2016, 13:55
is vapoursynth XD

Thanks! I noticed that, but as you can see, it it didn't like the python version anyway.

jackoneill
27th January 2016, 14:00
The Python version is fine. That was just a warning. You can go back to where you compiled Python 3.5 and run 'make uninstall'. You can use any version starting with 3. Version 3.5 is only required in Windows. That's what you read, isn't it, the Windows installation instructions?

perforator
27th January 2016, 14:06
Or try ppa?

https://launchpad.net/~djcj/+archive/ubuntu/vapoursynth

Thanks! I'll try that. Should I uninstall (remove) the current one first?

perforator
27th January 2016, 14:23
The Python version is fine. That was just a warning. You can go back to where you compiled Python 3.5 and run 'make uninstall'. You can use any version starting with 3. Version 3.5 is only required in Windows. That's what you read, isn't it, the Windows installation instructions?

You are so right!! :eek:

So should I uninstall Python 3.5 and get 3.4 instead (nicer without error messages)?
I recall running Python 3.5 with "make altinstall" (on recommendation), so maybe (if I get it right) there is room for a 3.4 version as well? Though it might confuse me later.
I like the PPA track, is that available for Python and FMMS2 as well?

Do I need to clean things up first?