[Solved] Setting editor (Pycharm) with lib path

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
Bastien
Posts: 61
Joined: Mon May 12, 2014 2:45 pm

[Solved] Setting editor (Pycharm) with lib path

Post by Bastien »

Hi,
I'm using Pycharm to develop and there's something irritating, modules aren't introspected as it should. I defined the python interpretor as /opt/libreoffice/program/python but it has no effect and modules are unreachable (even the python/pythonpath which is defined in my ~/.profile). I would appreciate any suggestion!
Last edited by Bastien on Thu Mar 07, 2019 9:40 pm, edited 1 time in total.
LibreOffice 6.2.3.2 on Ubuntu 19.04
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Setting editor (Pycharm) with lib path

Post by Villeroy »

It should work well with the integrated ppa version of LibreOffice.
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
Bastien
Posts: 61
Joined: Mon May 12, 2014 2:45 pm

Re: Setting editor (Pycharm) with lib path

Post by Bastien »

I feel ashamed but what is the integrated ppa?
LibreOffice 6.2.3.2 on Ubuntu 19.04
User avatar
RoryOF
Moderator
Posts: 34618
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Setting editor (Pycharm) with lib path

Post by RoryOF »

The integrated ppa version is the version in the Ubuntu or other linux distro repositories. Such versions are supposedly fine-tuned to the operating system, so they should include any necessary support files. I think you can install that version by (in a terminal)

Code: Select all

 sudo apt install libreoffice*
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Setting editor (Pycharm) with lib path

Post by Villeroy »

The ppa version is the one which is installed by default when you install Ubuntu. It resides in /usr/lib/libreoffice and uses the same version of Python3 as the rest of the system.
That version works very well for me. BUT I found an annoying glitch that might bother you: The menu bar of the MRI window does not work with this version. The drop-down menues are blank.
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
User avatar
RoryOF
Moderator
Posts: 34618
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Setting editor (Pycharm) with lib path

Post by RoryOF »

Have you informed Hanya, Villeroy?
https://github.com/hanya/MRI
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
User avatar
RoryOF
Moderator
Posts: 34618
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Setting editor (Pycharm) with lib path

Post by RoryOF »

Recently revised version of MRI at
https://github.com/hanya/MRI/releases
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Bastien
Posts: 61
Joined: Mon May 12, 2014 2:45 pm

Re: Setting editor (Pycharm) with lib path

Post by Bastien »

And in case, one manually installed LibO?

Hum, the easiest solution: reinstall system version and it works. Thanks!
LibreOffice 6.2.3.2 on Ubuntu 19.04
Post Reply