https://bugs.documentfoundation.org/show_bug.cgi?id=151695

Rafael Lima <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW
                 CC|                            |[email protected]

--- Comment #2 from Rafael Lima <[email protected]> ---
I just stumbled upon this issue... I guess the reason you're getting this error
is because you're using your OS python interpreter instead of using
LibreOffice's own python interpreter.

In this case, you need to set the proper PYTHONPATH

export PYTHONPATH=/usr/lib/libreoffice/program:/usr/lib/python3/dist-packages

Note:
/usr/lib/libreoffice/program   --> this is where scriptforge.py is located
/usr/lib/python3/dist-packages --> this is where uno.py is located

So you need to set this first before launching the interpreter.

I'll update the help page accordingly:
https://help.libreoffice.org/latest/en-US/text/sbasic/shared/03/sf_intro.html

In summary, this is not a bug in ScriptForge nor LibreOffice... but an
improvement in documentation is required.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to