I am in a process of installing a local Blender Flamenco server on Debian Stretch. So I first downloaded all the source files for key components:
- Flamenco: https://developer.blender.org/diffusion/F/repository/master/
- Pillar: https://developer.blender.org/source/pillar/repository/master/
- Pillar Python SDK: https://developer.blender.org/source/pillar-python-sdk/
I did this using GIT which I first installed using sudo apt install git
and then:
git clone git://git.blender.org/flamenco.git
git clone git://git.blender.org/pillar.git
git clone git://git.blender.org/pillar-python-sdk.git
Then I opened the top directory of the Flamenco using cd flamenco
and I opened the README.md
file which states that in order to install Flamenco you have to pass these five steps:
- Install requirements with
pip install -r requirements-dev.txt
- Install Flamenco Server locally with
pip install -e .
- Add Flamenco as Pillar extension to our project
- Give a user 'subscriber' or 'demo' role to obtain flamenco-use capability, or set up your own mapping from role to flamenco-use and flamenco-view capabilities
- Run ./gulp
So I first executed pip install -r requirements-dev.txt
which failed when trying to install mypy
component. It failed because pip
uses python2
which is softlinked to python2.7
on Debian Stretch, but mypy
needs python3
which is softlinked to python 3.5
on Debian Stretch. So I had to execute this using pip3
instead of pip
:
pip3 install -r requirements-dev.txt
This resulted in an error:
current_app: 'PillarServer' = LocalProxy(_get_current_app)
^
SyntaxError: invalid syntax
I solved this error with a help of experts on Stack overflow (topic) where they told me that syntax used is actually Python 3.6, so I installed Python 3.6 from GIT Hub (here) using commands:
wget https://github.com/chriskuehl/python3.6-debian-stretch/releases/download/v3.6.3-1-deb9u1/{python3.6_3.6.3-1.deb9u1_amd64,python3.6-minimal_3.6.3-1.deb9u1_amd64,python3.6-dev_3.6.3-1.deb9u1_amd64,libpython3.6_3.6.3-1.deb9u1_amd64,libpython3.6-minimal_3.6.3-1.deb9u1_amd64,libpython3.6-stdlib_3.6.3-1.deb9u1_amd64,libpython3.6-dev_3.6.3-1.deb9u1_amd64}.deb
sudo dpkg -i *.deb
In order for this to work I had to delete the softlink /usr/bin/python3
which was pointing to python 3.5 and create a new softlink /usr/bin/python3
pointing to Python 3.6:
sudo rm /usr/bin/python3
sudo ln -s /usr/bin/python3.6 /usr/bin/python3
And then I again used command pip3 install -r requirements-dev.txt
which worked. The installation of dependancies succeeded so first point of the procedure was done. Next point was to execute pip install -e .
(still inside flamenco
directory) but I rather used:
pip3 install -e .
And this worked as well. But now I am stuck! Third point is totally indescriptive. So how in the whole universe I should know what these next steps mean:
- Add Flamenco as Pillar extension to our project
- Give a user 'subscriber' or 'demo' role to obtain flamenco-use capability, or set up your own mapping from role to
flamenco-use
andflamenco-view
capabilities- Run
./gulp
Well gulp
is inside flamenco
directory but I can't figure out the two steps preceeding it. Any help from Blender community would be welcome.