Skip to content
Simon Reichel edited this page May 19, 2017 · 35 revisions

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

Then checkout the release version you want to use (in this example version 0.7.*):

git checkout release-0.7

In case you want to switch to a different release version use the same syntax to switch to the respective release branch. Alternatively, you can download the individual release version 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 setup.py in the top level directory. Do so by using these commands from a commandline:

   python3 setup.py

Under Windows you need to make sure that you run Python version 3. py -3 setup.py should work. Otherwise, check this ressource. 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 this file.

Installation via zip file (any platform)

Blender allows to directly install add-ons from zip files, however the zip file you can download from GitHub has all its contents in a subfolder called 'phobos' while Blender expects no such subfolder. You can therefore download the zip, extract it and zip everything within the extracted 'phobos' folder and use this new file for installation. We may provide a zip file with a stable version for download in the future. TODO make this come true

To install the add-on in Blender, open File->User Preferences->Addons and hit Install from zip file.

Activating Phobos in Blender

To activate Phobos in Blender, go to Files -> User Preferences -> Addons and search for 'Phobos' (it should be 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

Updating

To update your current installation you just need to pull changes for the release you are working on and run the installation script again:

git pull
python3 setup.py

However, it might be, that you are using a release which is not maintained anymore, which will not receive bugfixes or updates. In that case updating will not change anything. Consider switching to a different release then.

Switching to a different release

To switch to a new release, you need to first update your local copy of Phobos and then checkout the respective release branch (NEWERVERSION, eg. 0.7 or 1.1):

git fetch
git checkout release-NEWERVERSION

After you switched to the different release follow the instructions in updating.

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