Python not see module

24.2.6

Ubuntu22

folder: …user/Scripts/python

file: lib1.py lib2.py

lib1.py:

import lib2
 def run():
    *code*

run script:
./soffice ~/Downloads/test.odt ‘vnd.sun.star.script:lib1.py$run?language=Python&location=user’

error:
no module named ‘lib2’

vmconnect_wvcYuTQBev

Create a PYTHON PATH subdir under the Python one. Move lib2.py there. Try again.

Hope that helps

blocked.gif

its litterally »pythonpath« lowercase, no space!

ps. try to read the given answer!

Hallo

create a subfolder »…/user/Scripts/python/pythonpath« and move »lib2.py« into this subfolder.

it’s working
but everything worked from the folder(/user/Scripts/python) before the crash libreoffice