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

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
follencavale
Posts: 3
Joined: Tue May 06, 2008 7:13 pm
Location: France

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

Post 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.
Last edited by Hagar Delest on Tue Jun 10, 2008 2:04 pm, edited 3 times in total.
Reason: tagged the thread as Solved.
User avatar
AndrewZ
Volunteer
Posts: 633
Joined: Mon Oct 08, 2007 1:25 am
Location: Colorado, USA

Re: [Python] OOo2.4

Post 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.
* Did you solve your problem? Do others a favor: Post the solution
* Visit OpenOffice.org Ninja (blog) and OpenOffice.org Ninja Wiki for news, previews, troubleshooting, etc.
OOo 3.0.X on Fedora 9 + XP
follencavale
Posts: 3
Joined: Tue May 06, 2008 7:13 pm
Location: France

Re: [Python] OOo2.4

Post 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.
User avatar
Villeroy
Volunteer
Posts: 31345
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: [Python] OOo2.4

Post 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.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
follencavale
Posts: 3
Joined: Tue May 06, 2008 7:13 pm
Location: France

Re: [Python] OOo2.4

Post by follencavale »

Thank you Villeroy.

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