I'm trying to run some basic scripts on Linux (Debian), however no python can be found.
Both Python 2 and 3 are present on the system.
$ python -V
Python 2.7.18
$ python3 -V
Python 3.8.5
Video Production Stack Exchange is a question and answer site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation. It only takes a minute to sign up.
Sign up to join this communityI'm trying to run some basic scripts on Linux (Debian), however no python can be found.
Both Python 2 and 3 are present on the system.
$ python -V
Python 2.7.18
$ python3 -V
Python 3.8.5
Based on strace
is seems that fuscript
binary searches for libpython2.7.so
and libpython3.6.so
$ /opt/resolve/libs/Fusion/fuscript -l py3
DaVinci Resolve Script Interpreter
Copyright (C) 2005 - 2020 Blackmagic Design Pty. Ltd.
ERROR: Language 'py3' is not available.
E.g. on Debian based systems this could be installed, if you're lucky and the exact version is available for your distribution.
sudo apt install libpython3.6
The binary looks into several paths one of them is /usr/local/lib/libpython3.6.so
. According to documentation this could be configured by PYTHONPATH
env variable. However it doesn't seem to have any effect.
Using pyenv any Python version can be installed (we need shared libraries - *.so
files):
env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.6.11
then create a symlink:
sudo ln -s $HOME/.pyenv/versions/3.6.11/lib/python3.6 /usr/local/lib/python3.6
sudo ln -s $HOME/.pyenv/versions/3.6.11/lib/libpython3.so /usr/local/lib/libpython3.6.so
Finally console should be working (Resolve will need a restart):
$ /opt/resolve/libs/Fusion/fuscript -l py3 -i
DaVinci Resolve Script Interpreter
Copyright (C) 2005 - 2020 Blackmagic Design Pty. Ltd.
Cannot read termcap database;
using dumb terminal settings.
Py3>
brew install pyenv
. See pyenv documentation.
– Tombart
Mar 22 at 8:20