Bug 147650

Summary: ScriptForge Fails to Run Python Demo LO V7.3.1.1
Product: LibreOffice Reporter: flywire <flywire0>
Component: BASICAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED NOTABUG    
Severity: normal CC: himajin100000, jp, rafael.palma.lima
Priority: medium    
Version: 7.3.0.3 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 159638    
Attachments: Error window

Description flywire 2022-02-25 12:17:14 UTC
Created attachment 178536 [details]
Error window

ScriptForge macros will not run

To reproduce:
1) Download https://github.com/rafaelhlima/LibOCon_2021_SFCalc Demo
2) Open Sample_File.ods and run a macro from the first few sheets
3) Always returns getModuleByUrl Error

Does not occur in LO v7.4.0.0.alpha0+

Version: 7.3.1.1 (x64) / LibreOffice Community
Build ID: 349cd3ad57dce98d6b54b76f8e9f456ac7d7edb7
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: en-AU (en_AU); UI: en-GB
Calc: threaded
Comment 1 Jean-Pierre Ledure 2022-03-05 15:03:48 UTC
Please retry after having put the
   LibOCon_2021.py
file in the Scripts\python directory of your user profile.

JP
Comment 2 flywire 2022-03-05 21:30:58 UTC
ScriptForge demo is working as expected. A clean install of LibreOffice including user config had removed the Python scripts.

Can a more meaningful error message for python script pathname not found be shown?
Comment 3 Jean-Pierre Ledure 2022-03-06 10:32:39 UTC
The message is issued by the LO ScriptProvider service.
It is very clear:

A Scripting Framework error occurred while running the Python script
vnd.sun.star.script:LibOCon_2021.py$clear_region_a1?
language=Python&location=user

i.e. LO could not find either the script (LibOCon_2021.py) or the def (clear_region_a1).

Notice that the issue happens BEFORE ScriptForge is involved.

I close the bug report.
Comment 4 flywire 2022-03-06 11:19:50 UTC
(In reply to Jean-Pierre Ledure from comment #3)
> LO could not find either the script (LibOCon_2021.py) or the def
> (clear_region_a1)
Now that WOULD be clear.