Hi,
In data mercoledì 19 novembre 2014 09:06:06, Surendran Karippadath ha scritto:
> But that is not true in this case; See this
>
> surendran@angeli-acer:/opt/openoffice4/program$ ./python
> Python 2.7.6 (default, Apr 22 2014, 12:20:11)
> [GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
Interesting that OpenOffice 4.x is still shipping Python 2.x. I see from:
[...]
$ sudo tar zxvf Apache_OpenOffice_4.1.0_Linux_x86_install-deb_en-US.tar.gz
$ cd en-US/DEBS
$ dpkg -i *.deb
$ cd desktop-integration
$ dpkg -i *.deb
$ ls /etc/openoffice4/python*
python, python.bin
$ cd /opt/invenio-1.1.4
$ sudo sh /opt/invenio/etc/build/config.nice --with-openoffice-
python=/etc/openoffice4/program/python.bin
[...]
that there are two python executable. I suspect "python" is a wrapper around
"python.bin" that correctly set environment variables to make the OpenOffice
Python modules available...
Can you try with both executables to run:
[1]: import uno
And see which one answer? "uno" is the Python bridge to OpenOffice and must be
reachable for the test to work.
Best regards,
Samuele
--
Samuele Kaplun
Invenio Developer ** <http://invenio-software.org/>
INSPIRE Service Manager ** <http://inspirehep.net/>