With your help I created a Libreoffice python-makro which runs perfect in Ubuntu20.04.
Some users need my macro in Windows10. So I installed (in my Windows dual boot) LibreOffice Community Version 7.1.5.2 and via pip the required openpyxl module.
repeating the command
py -3.8 -m pip install openpyxl
I get:
Requirement already satisfied: openpyxl in c:…\appdata\local\programs\python\python38\lib\site-packages (3.0.8)
Requirement already satisfied: et-xmlfile in c:…\appdata\local\programs\python\python38\lib\site-packages (from openpyxl) (1.1.0)
But when I start the macro via Llibreoffice → macros–> python -->macroname
I get an error saying:
…(<class ‘ImportError’>: No module named ‘openpyxl’ (or ‘openpyxl.load_workbook’ is unknown)…
any idea how to get the macro running in windows10