Skip to content
Simon Reichel edited this page Jan 10, 2018 · 35 revisions

This document aims to provide an instruction to set up Blender and install the Phobos add-on.

Blender installation

Linux

On Linux, Blender can be installed via package manager. In Ubuntu, sudo apt-get install Blender does the trick. However, you may want to check the default version of Blender for your linux version, as these can sometimes be quite outdated. Phobos has been developed for Blender versions >= 2.69 and works best with >= 2.71. As some functionality might not work properly on earlier versions, it might be necessary that you get the latest Blender version yourself, either as a tarball from Blender's website or from a custom package repository with the latest Blender build if available.

Please notice that you have to have glibc installed on your system to run Blender properly.

Windows & Mac

Installing Blender on windows is as simple as downloading the installer from Blender's website and run it. Alternatively, you can download a zip file.

Phobos installation

In order to install Phobos successfully on your system, please follow these instructions word by word.

Python 3

As Blender uses Python 3, this means that if you want it to use the most current package version, you need to install python3. The installation is pretty straightforward. A guide for different platforms can be found here.

YAML

Phobos uses the YAML language for some of its output formats and therefore needs the python module yaml. The easiest way to install is using pip.

Linux

Run these commands from the commandline to install both pip and yaml.

    sudo apt-get install python-pip
    sudo pip3 install PyYaml

Windows

For Windows pip installation follow the instructions here. Afterwards, use this command in the commandline to install yaml:

   pip3 install PyYaml

Getting Phobos

To get Phobos, you can clone its git repository by running:

git clone https://github.com/rock-simulation/phobos.git

Alternatively, you can download the sources as a zip file from GitHub.

After downloading (and eventually uncompressing the archive file) to a local folder on your computer, you need to run the Python file install_phobos.py in the top level directory. Do so by using these commands from a commandline:

   python3 install_phobos.py

Under Windows you need to replace python3 with python. The installation file will automatically check the required yaml installation and configure the Phobos installation.

Please note: The install script will ask you to enter the version of Blender you'd like to use Phobos with. This is important as you might have several versions installed on your system (e.g. for backwards-compatibility) and they use different folders for add-ons. As your answers are saved in a file called installconfig.txt, installing Phobos to a different Blender version requires changing or deleting said file.

Activating Phobos in Blender

To activate Phobos in Blender, go to Files->User Preferences->Addons and search for 'Phobos' (it's in the 'Development' category). Then tick its checkbox to activate Phobos and save your user settings in the lower left corner - if you don't next time Blender starts, Phobos won't be loaded. If Blender displays any errors at this point, you might want to check if you got the above steps right.

Phobos activation

Find Phobos in Blender's user preferences

If everything worked fine you can now find the Phobos toolbar as a tab in the left toolbar panel if you're running Blender >= 2.71, otherwise the Blender GUI elements will be added to the toolbar itself. If you don't see the panel, hit T.

Phobos toolbar

Troubleshooting

If you started the install script before yaml was installed...

Go to ~/.config/blender/BLENDERVERSION/scripts/addons/phobos/ and delete the file yamlpath.conf. Then you can re-run the install script and everything should work.

Clone this wiki locally