[solved] Unable to call a Python extension routine from Basic

Hi,

As per OpenOffice specs, calling a Python extension macro is possible. I able to do so when the Python macro is stored in a document or in the user/Scripts/python directory but unable to get it functioning when the Python macro resides within an extension. I may surely be doing something wrong.

I am attaching a Writer doc with functioning & failing example codes and instructions for anyone to review:
docConsole macro is functioning while oxtConsole macro fails to locate/load the Python script resulting in “Object variable not set” error message.

Tested with LibreOficePortable 6.0.4.2, LibreOffice 5.4.7.2 and OpenOfficePortable 4.1.5

Thanks in advance for your assistance in that matter.
Console.odt

link: Scripting Framework URI Specification

I have been unable to do so and may surely be doing something wrong

What does “unable” mean? Please never omit what you get (e.g., error messages - they might be different on your system).

And also please never omit important information about your setup (like OS details).

Thanks Mike,
I amended this post as you suggest

Hi Mike

Thanks for your interest as well as your prompt answer.
However the docConsole macro is actually functioning fine, it’s the ‘oxtConsole’ that fails.
Should I assume you made a typo in the last sentence of your mail?

Cordially

@LibreOfficiant When posting a question on multiple forums, please note this to eliminate duplicate effort.

Cross-posted here → Unable to call a Python extension macro from Basic

Fix and detailed solution can be found in OpenOffice.org english forum.