Bug 166294 - Python component issues warning when launched
Summary: Python component issues warning when launched
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
24.8.0.0 alpha0+
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-22 18:55 UTC by prrvchr
Modified: 2025-04-22 19:11 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description prrvchr 2025-04-22 18:55:29 UTC
Description:
With LibreOffice 24.8.x and 25.2.x when launching a Python component the following warnings are displayed:

> Could not find platform independent libraries <prefix>
> Could not find platform dependent libraries <exec_prefix>
> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]

Steps to Reproduce:
1. On LibreOffice on Linux launched from a terminal start a Python component
2. You will see the error message on the console:
> Could not find platform independent libraries <prefix>
> Could not find platform dependent libraries <exec_prefix>
> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]

Actual Results:
Error message on the console.

Expected Results:
No error message on the console.


Reproducible: Always


User Profile Reset: No

Additional Info:
On Linux LibreOffice 24.2.x don't give any warning when launching a Python component and the value of sys.prefix is:  /opt/libreoffice24.2/program/../program/python-core-3.8.20

On Linux LibreOffice 24.8.x and 25.2.x give warning when launching a Python component and the value of sys.prefix is: /python-inst
Comment 1 prrvchr 2025-04-22 19:11:08 UTC
Only LibreOffice 24.8.x give warning.

On Linux LibreOffice 25.2.x don't give any warning when launching a Python component and the value of sys.prefix is:  /usr