https://bugs.documentfoundation.org/show_bug.cgi?id=163404

            Bug ID: 163404
           Summary: pythonscript.py getPackageName2PathMap method errors
                    because it uses depreciated thePackageManagerFactory.
           Product: LibreOffice
           Version: 24.8.1.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Description:
In getPackageName2PathMap of pythonscript.py it creates an instance of
thePackageManagerFactory. When the getPackageName2PathMap method is called it
result in a error.

The fix is to use: "/singletons/com.sun.star.deployment.ExtensionManager"

See My fix for OooDev here:
https://github.com/Amourspirit/python_ooo_dev_tools/blob/main/ooodev/uno_helper/py_script/python_script.py

Steps to Reproduce:
Call PythonScriptProvider(ctx, "user:uno_packages")
or
PythonScriptProvider(ctx, "share:uno_packages")

Actual Results:
Errors

Expected Results:
No Error


Reproducible: Always


User Profile Reset: No

Additional Info:
My fix above solved the issue for OooDev

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to