Page 1 of 1

[Solved] [Python] OOo2.4 on Ubuntu 8.04

Posted: Tue May 06, 2008 7:15 pm
by follencavale
Hi there,

I'm having troubleshooting using OOo2.4 on Ubuntu 8.04.
I can't run python macros. In fact, i can't even see them in the macro selector window : I can't find the "HelloWorld.py" in the OOo macros library. However, the file does exist in this following path : "/usr/lib/openoffice/share/Scripts/python/HelloWorld.py".
Do I need some special library or so?

Greetings from France,
follencavale.

Re: [Python] OOo2.4

Posted: Tue May 06, 2008 8:39 pm
by AndrewZ
Run this in a terminal

Code: Select all

dpkg --get-selections | grep -i openoffice 
You may be missing the python/pyuno package for OpenOffice.org.

Re: [Python] OOo2.4

Posted: Wed May 07, 2008 8:35 am
by follencavale
Hi Andrews, thanks for your answer.

Here's what i get :

Code: Select all

$ sudo dpkg --get-selections | grep -i openoffice

openoffice.org-base-core			install
openoffice.org-calc				install
openoffice.org-common			install
openoffice.org-core				install
openoffice.org-draw				install
openoffice.org-gnome				install
openoffice.org-gtk				install
openoffice.org-help-en-gb			install
openoffice.org-help-en-us			install
openoffice.org-help-fr				install
openoffice.org-hyphenation			install
openoffice.org-impress			install
openoffice.org-java-common		install
openoffice.org-l10n-common		install
openoffice.org-l10n-en-gb			install
openoffice.org-l10n-en-za			install
openoffice.org-l10n-fr				install
openoffice.org-style-human			install
openoffice.org-thesaurus-en-au		install
openoffice.org-thesaurus-en-us		install
openoffice.org-writer				install
Do you see something missing?

Code: Select all

$ sudo apt-get install python-uno
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
python-uno est déjà la plus récente version disponible.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
>> It means "python-uno" package is already set up.

Is there someone using OOo 2.4 who's able to get python macros? If so, i think it may be an Ubuntu 8.04 issue.
Thank you.

Re: [Python] OOo2.4

Posted: Wed May 07, 2008 11:24 am
by Villeroy
Just a recommendation since this is not the only issue with Ubuntu's version of this office suite:
[Ubuntu] Installing OOo on Debian and Co.

Re: [Python] OOo2.4

Posted: Wed May 07, 2008 3:13 pm
by follencavale
Thank you Villeroy.

I uninstalled the ubuntu version to set up the original version.
It works fine.