edit:
I just noticed you are running Python v2.7.6, this code will not work (you need to compile FreeCAD with Python 3.5).
Earlier in this post I listed all the depnedencies and cMake edits required to compile on Python 3.5.
Skip the rest of this post if freecad is not compiled with Python 3.5
I went back and found the following in my notes:
Code: Select all
OS: Ubuntu 16.04 LTS
python version 3.3 minimum
freecad 0.17 compiled with Python3
LibreOffice version 5.1.6.2 10m0(Build:2)
The pyuno package is bundled with LibreOffice and located in "/usr/lib/libreoffice/program"
# Install python packages
sudo apt-get install libreoffice libreoffice-script-provider-python
sudo apt-get install python-pip
# Install python modules
sudo pip install unotools
Sal