Description: I wrote macro in calc file,wrote python scrpit in macro directory. I executed the script add got error. error message from scriptforge is "NOSCRIPTERROR". But the script exists. Actual error is that the script imports library which is not exists. Steps to Reproduce: 1.create ods file and put macro bellow Sub Main GlobalScope.BasicLibraries.loadLibrary("ScriptForge") session = CreateScriptService("Session") sRange=session.ExecutePythonScript(session.SCRIPTISPERSONAL, "util.py$str_format", "{}{}:{}{}","A",1,"B",10) print(sRange) End Sub 2.create util.py C:\Users\_USER_\AppData\Roaming\LibreOffice\4\user\scripts\python\util.py import not_present #error def str_format(fmt,*params): s = fmt.format(*params) return s 3.run macro Actual Results: error message from scriptforge is bellow Error NOSCRIPTERROR x A Library: ScriptForge Service: Session Method: ExecutePythonScript Arguments: [Scope], Script, argO[, arg1] A serious error has been detected in your code on argument : « Script ». | The requested Python script could not be located in the given libraries and modules. « Scope » = user « Script » = util.py$strformat THE EXECUTION IS CANCELLED. Do you want to receive more information about the ‘ExecutePythonScript" method ? dom | DZD, Expected Results: error message from scriptforge is "IMPORTERROR". Reproducible: Always User Profile Reset: No Additional Info: Version: 25.8.4.2 (X86_64) Build ID: 290daaa01b999472f0c7a3890eb6a550fd74c6df CPU threads: 12; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Raster; VCL: win Locale: ja-JP (ja_JP); UI: ja-JP Calc: threaded
Created attachment 205303 [details] error message
Created attachment 205304 [details] calc ods
Created attachment 205305 [details] python macro