This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Vapoursynth on LMDE
#11
gave it another try:

Install Hybrid:
  • opened a terminal
  • make sure the system iss up-to-date using:
    sudo apt update && sudo apt upgrade -y && sudo apt autoremove && sudo apt -y autoclean && sudo -y autopurge
  • went to https://www.selur.de/downloads and copied the downloadlink to 'Hybrid Linux64bit (with base tools and most dependencies)'
  • downloaded the file into my home folder:
    wget https://www.selur.de/sites/default/files/hybrid_downloads/Hybrid_20220320_Linux.7z
    (this download is just for the current version)
  • I extracted the download into my home folder:
    7z x Hybrid_20220320_Linux.7z
  • create a folder for the configs
    mkdir ~.hybrid
  • created a misc.ini in that folder using:
    nano ~/.hybrid/misc.ini
    with the follwing content:
    [General]
    ignoreTools=DivX265;neroAacEnc
  • download the latest tsMuxeR from https://github.com/justdan96/tsMuxer/act...2852491399
    and extracting the tsMuxeR file into the ~/hybrid-folder and then call 'chmod +x ~/hybrid/tsMuxeR'.
    now I Hybrid should successfully start when using:
    ~/hybrid/Hybrid
  • remove the download by calling:
    rm Hybrid_20220320_Linux.7z

If Hybrid itself works, install Python 3.10 since LMDE 5 comes with Python 3.9.2, but Vapoursynth R59 only support Python 3.8 and Python 3.10:
  • install needed dependencies for building Python 3.10 using:
    sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev
  • download latest Pythong 3.10.6:
    wget https://www.python.org/ftp/python/3.10.6/Python-3.10.6.tgz
  • extract the download using:
    tar -xf Python-3.10.6.tgz
  • change into the Python folder:
    cd Python-3.10.6
  • configure Python for compilation
    ./configure --enable-optimizations --enable-shared CFLAGS=-fPIC CXXFLAGS=-fPIC
    (maybe instead of 'CFLAGS=-fPIC CXXFLAGS=-fPIC' '--enable-pic' also works)
  • compile Python using:
    make -j 16
    (replace 16 with the number or physical cpu cores your system has)
  • install python 3.10
    sudo make install
  • making sure calling python3 will call the new 3.10 version.
    python3 --version
  • making sure that python also points to python3 by installing 'python-is-python3'
    sudo apt-get install python-is-python3
    and caling:
    sudo update-alternatives --install /usr/bin/python python /usr/local/bin/python3 1
  • removing the download and the source code using:
    cd
    sudo rm -rf Python-3.10.6*
  • extending LD_LIBRARY_PATH
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    and add
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    to ~/.profile (nano ~/.profile)
    and
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    to ~.bashrc (nano ~/.bashrc)
  • installing pip using:
    curl -O https://bootstrap.pypa.io/get-pip.py
    sudo pyhton get-pip.pypip
    sudo ln -s /usr/bin/pip /usr/local/bin/pip
    rm get-pip.py

Now that you have Python 3.10 we need to compile and install Vapoursynth by:
  • donwload the build-vapoursynth.sh script:
    sudo apt-get -y install git && git clone https://github.com/Selur/hybrid-vapoursynth-addon.git
  • adjust the build-vapoursynth.sh
    cd hybrid-vapoursynth-addon/
    nano build-vapoursynth.sh
    remove the lines
    python3-pip \
        lib$python3dotx \
        lib$python3dotx-dev \
  • start the script
    ./build-vapoursynth.sh
    adjust ~/.bashrc
    nano ~/.bashrc
    by adding:
    export LD_LIBRARY_PATH=/usr/local/lib:~/opt/vapoursynth/lib:~/opt/vapoursynth/lib/python3.10/site-packages
    export PATH="~/opt/vapoursynth/bin:$PATH"
    adjust ~/.profile
    nano ~/.profile
    by adding:
    LD_LIBRARY_PATH=~/opt/vapoursynth/lib:~/opt/vapoursynth/lib/python3.10/site-packages
    PYTHONPATH=~/opt/vapoursynth/lib/python3.10/site-packages
    PATH="~/opt/vapoursynth/bin:$PATH"
    PATH="~/.local/bin:$PATH"

    assuming everything worked, closing the terminal and calling 'vspipe --version' should work, but here it gives me 'Failed to initialize VSScript' and I have no clue why :/
Reply
#12
Thumbs Up 
Wow - thank you for going to all that effort. Really appreciate that.  I'll have to spend some time reading through all of that.
Reply
#13
I've followed your second lot of instructions and when I get to the Python section and run this command
sudo python get-pip.py
I receive the following error:
'python: error while loading shared libraries: libpython3.10.so.1.0: cannot open shared object file: No such file or directory'

Prior to that I did receive the following Warning message after running - this occurred after the command finished running.
sudo make install
'WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv'

Not sure where I've gone wrong.
Reply
#14
You are probably pointing to the wrong python file.
Try pointing to the python3.10 binary instead of using python in general.
Closing and opening the terminal might also help.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)