Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Still not able to get module uno (python 2.7)

Pascal Tremblay
on 12/3/14, 7:11 AM 3,705 views

Hello there! 

I'm still unable to install report_aeroo_ooo to work in my odoo 8 on ubuntu 14.04.

I get error on install :

« Unable to install module "report_aeroo_ooo" because an external dependency is not met: No module named uno »

I'm searching the best way to get uno for python2.7 on my ubuntu 14.04.



Pascal Tremblay

--Pascal Tremblay--
| 5 2 7
Alma, Canada
--Pascal Tremblay--

Pascal Tremblay
On 12/3/14, 12:41 PM

Ho yes! Rock N roll! I was able to install aeroo_reports_ooo!

I used this script, line by line (https://raw.githubusercontent.com/lukebranch/openerp-install-scripts/master/odoo-saas4/ubuntu-14-04/odoo_install.sh) :

# we need some fixes from 14.10
sudo add-apt-repository --enable-source ppa:libreoffice/libreoffice-4-3
# fetch this repository
sudo apt-get update
# update your libreoffice installation
sudo apt-get install libreoffice
# get all build dependencies for libreoffice
sudo apt-get build-dep libreoffice
# that strangely enough doesn't come with the above
sudo apt-get install gcj-jdk python-dev
# get the actual source code
cd /tmp
apt-get source libreoffice
# the folder name is versioned
cd libreoffice*
# we want to have python2
sed -ie 's/^\(ENABLE_PYTHON2=\)n$/\1y/' debian/rules
# and we add the package description to the control file (this is from the debian package)
echo "
Package: python-uno
Provides: \${python:Provides}
XB-Python-Version: \${python:Versions}
Section: oldlibs
Priority: extra
Architecture: alpha amd64 armel armhf hppa i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc powerpcspe ppc64 s390 s390x sparc
Enhances: libreoffice
Depends: libreoffice-core (= \${binary:Version}),
Breaks: libreoffice-common (<< 1:3.5~), libreoffice-core (<< 1:3.5~)
Conflicts: python3-uno, python3.3-uno
Description: Python-UNO bridge (support for old python 2)
 The Python-UNO bridge allows use of the standard LibreOffice API
 with the Python scripting language. It additionally allows
 others to develop UNO components in Python, thus Python UNO components
 may be run within the LibreOffice process and can be called from C++
 or the built in StarBasic scripting language.
 This package is for compatibility with applications/libraries not ported
 to python 3 yet. Prefer python3-uno over this.
Homepage: http://udk.openoffice.org/python/python-bridge.html" >> debian/control
# do the build
dpkg-buildpackage -us -uc
# have coffee. a lot of it
# install updated metapackage and the script provider so as not to depend on python3-uno any more
sudo dpkg --install ../libreoffice_*.deb ../libreoffice-script-provider-python*.deb
# remove python3-uno
sudo apt-get remove python3-uno
# and finally install the package we want
sudo dpkg --install ../python-uno*.deb


Ludo - Neobis

--Ludo - Neobis--
| 2 2 5
Hoogvliet, Netherlands
--Ludo - Neobis--


Ludo - Neobis
On 12/3/14, 7:30 AM

What have you tried under ubuntu? What error do you get when installing using apt-get or easy_install?



| 5 3 6
Jakarta, Indonesia
On 12/3/14, 8:12 AM

Since Ubuntu 13.10 OpenOffice/LibreOffice has ceased supporting pyuno for version 2.x of Python.  They only provide pyuno for Python 3.x (http://askubuntu.com/questions/418225/how-do-i-install-the-python-uno-package).  I'm not aware of any workaround available yet.  So, your best bet is to downgrade the Ubuntu version to 12.04.

My Ubuntu will stay in 14.04 for sure. I'm searching the best way to get python-uno 2.7 on my ubuntu 14.04.

Pascal Tremblay
on 12/3/14, 8:20 AM

In this moment, trying this : https://gist.github.com/hbrunn/6f4a007a6ff7f75c0f8b

Pascal Tremblay
on 12/3/14, 8:21 AM

Let us know the result.

on 12/3/14, 8:39 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


Asked: 12/3/14, 7:11 AM
Seen: 3705 times
Last updated: 5/15/16, 7:59 PM