Good evening,

I happened to compile invenio with LibreOffice 4.x (--with-openoffice-python=/opt/libreoffice4.0/program/python) but it seems that versions 4.x contain python 3.x, and thus /opt/invenio/bin/inveniounoconv cannot run properly (there are important changes in print becoming print() and in exceptions).
(I now remember hitting that same wall in the past too, but...)

The question is:
What do I have to do to 'tell' invenio to use LibreOffice 3.6 python WITHOUT COMPILING EVERYTHING from source again? (don't ask...)

What I tried already:
I changed "CFG_PATH_OPENOFFICE_PYTHON = /opt/libreoffice3.6/program/python" inside invenio-autotools.conf
and rerun inveniocfg --update-all
Now inveniocfg --list conains the correct OFFICE_PYTHON path.

FYI, I also changed the 1st line in /opt/invenio/bin/inveniounoconv to: #!/opt/libreoffice3.6/program/python

But when executing /opt/invenio/bin/inveniounoconv, I STILL get the following error:
Traceback (most recent call last):
  File "/opt/invenio/bin/inveniounoconv", line 50, in <module>
    from invenio.websubmit_file_converter import CFG_OPENOFFICE_TMPDIR
ImportError: No module named invenio.websubmit_file_converter

(ipython produces no error for the same line)

I even tried using "CFG_PATH_OPENOFFICE_PYTHON = /usr/bin/python" (because invenio/websubmit_file_converter.py exists only in system's site-packages) the but I see the same error.

I'm a bit lost here :(


Best regards,
Theodoropoulos Theodoros

Reply via email to