Setting Up the Toolbox Environment

Before running the Toolbox, we need to first setup the virtual environment using the pyenv module.

Firstly, we need to create the directory in which the virtual environment will be generated in:

mkdir -p ~/.local/share/datastream/virtenv&&echo SUCCESS

If the command above is successful (SUCCESS is printed in the terminal) we’re ready to create the virtual environment using Python’s built in venv module:

python3 -m venv ~/.local/share/datastream/virtualenv/ftb&&echo SUCCESS

Again if “SUCCESS” is printed in the terminal then we’re ready to move on to installing the required modules. Next, we need to activate the virtual environment before we can install the required modules:

cd ~/.local/share/datastream/virtualenv/ftb/bin&&source activate

You should now see “(ftb)” prefixed to your prompt. We are now ready to install the pip modules:

./pip install tqdm requests PySimpleGUI Pillow

That’s it for the first set of dependencies, we now must take care of the last set. For this step, your going to need to install the appropriate TKinter and ImageTK libraries using your distro’s package manager. Below are the packages for each distro:

Distro BaseTKinter PackageImageTK Package
Debianpython3-tkpython3-pil.imagetk
Archtkpython-pillow

Once the python modules and repo packages are installed, you should now be ready to run the Toolbox. CD to the Toolbox’s installation directory, and execute the bootstrap.sh file to start the Toolbox using the python virtual environment:

chmod +x bootstrap.sh&&./bootstap.sh

Leave a comment

Design a site like this with WordPress.com
Get started