Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#18493 - [openoffice-base] Add a python path export to /etc/profile.d/openoffice.sh

Attached to Project: Arch Linux
Opened by Tom (reztho) - Sunday, 28 February 2010, 11:40 GMT
Last edited by Andreas Radke (AndyRTR) - Wednesday, 31 March 2010, 20:11 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Adding this line to /etc/profile.d/openoffice.sh:
export PYTHONPATH='/usr/lib/openoffice/basis-link/program/'

, it will be possible to use unopkg externally in python system-wide.

Additional info:
* package version(s)
openoffice-base 3.2.0-1

Steps to reproduce:
- Run python and try: import uno. It will fail.
- Run the export line.
- Try again. It will work succesfully.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Wednesday, 31 March 2010, 20:11 GMT
Reason for closing:  Implemented
Comment by Tom (reztho) - Sunday, 28 February 2010, 19:14 GMT
Actually the line should be:
export PYTHONPATH=$PYTHONPATH:/usr/lib/openoffice/basis-link/program/

, so it won't override the PYTHONPATH export from other packages.

If you wonder why this is needed, some programs need the unopkg python binding like mendeley desktop:
http://feedback.mendeley.com/forums/4941-mendeley-feedback/suggestions/457333-debian-openoffice-writer-unopkg-failed

Loading...