This question has been flagged
3 Replies
9463 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.

Thanks

Avatar
Discard
Author Best Answer

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}),
         \${misc:Depends},
         \${python:Depends},
         \${shlibs:Depends}
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

Avatar
Discard
Best Answer

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

Avatar
Discard
Best Answer

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.

Avatar
Discard
Author

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.

Author

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

Let us know the result.