Bug 147650 - ScriptForge Fails to Run Python Demo LO V7.3.1.1
Summary: ScriptForge Fails to Run Python Demo LO V7.3.1.1
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
7.3.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ScriptForge
  Show dependency treegraph
 
Reported: 2022-02-25 12:17 UTC by flywire
Modified: 2024-02-08 12:21 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Error window (14.37 KB, image/png)
2022-02-25 12:17 UTC, flywire
Details

Note You need to log in before you can comment on or make changes to this bug.
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.