Bug 99242 - programs\python.exe and core\bin\python.exe fail to execute on windows xp sp3
Summary: programs\python.exe and core\bin\python.exe fail to execute on windows xp sp3
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.0.0.0.alpha0+ Master
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-12 11:00 UTC by Quinton
Modified: 2018-09-01 00:26 UTC (History)
2 users (show)

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 Quinton 2016-04-12 11:00:18 UTC
The following python executables fail to work on Windows XP SP3 32 bit versions.

The "c:\Program Files\LibreOffice 5\program\python.exe" app fails silently. 

"c:\Program Files\LibreOffice 5\program\python-core-x.x.x\bin\python.exe" fails stating that it is not a valid win32 application.

This is causing our existing Libre Python scripts to fail.
Comment 1 Adolfo Jayme Barrientos 2016-04-17 00:13:06 UTC
Note that XP is an obsolete platform – the oldest Microsoft-supported OS is now Windows 7 SP1, and if your hardware can run Windows 7, you should be running Windows 10 instead (or something else).

We may be pulling the plug on Windows XP soon — to quote one of TDF’s engineers (bug 97226 comment 24), “XP [is] only supported out of courtesy/because it still builds for it”.
Comment 2 raal 2016-04-17 06:24:04 UTC
Heelo Quinton, please attach test file with python script. Thanks
Comment 3 Quinton 2016-04-18 06:04:40 UTC
(In reply to raal from comment #2)
> Heelo Quinton, please attach test file with python script. Thanks

Hi Raal,

Here is sample output, hope it will illustrate the problem.

###Python caller fails silently
C:\Documents and Settings\Quinton>"c:\Program Files\LibreOffice 5\program\python.exe"

C:\Documents and Settings\Quinton>

###Python not a vallid win32 app error occurs
C:\Documents and Settings\Quinton>"c:\Program Files\LibreOffice 5\program\python-core-3.3.0\bin\python.exe"

GUI Error msg box stating: Python.exe is not a valid Win32 application.

Access is denied.
C:\Documents and Settings\Quinton>
Comment 4 Quinton 2016-04-18 06:11:13 UTC
(In reply to Adolfo Jayme from comment #1)
> Note that XP is an obsolete platform – the oldest Microsoft-supported OS is
> now Windows 7 SP1, and if your hardware can run Windows 7, you should be
> running Windows 10 instead (or something else).
> 
> We may be pulling the plug on Windows XP soon — to quote one of TDF’s
> engineers (bug 97226 comment 24), “XP [is] only supported out of
> courtesy/because it still builds for it”.

Hi Adolfo,

I noticed some of the builds seem to specify Vista is required. We will use the other OS's when it becomes required. A workaround for this problem is to run a standalone Python 3.3 install and add this to the script,

libre_path=r"c:\Program Files\LibreOffice 5"
sofficebin=r"%s\program\soffice.exe"%(libre_path)
sys.path.append(r"%s\program"%libre_path)
os.environ["URE_BOOTSTRAP"] = r"vnd.sun.star.pathname:%s\program\fundamental.ini"%libre_path
os.environ["PATH"] += r";%s\URE\bin"%libre_path

Regards Quinton
Comment 5 Aron Budea 2017-07-10 03:12:27 UTC
Confirmed using 5.4.0.1 / Windows XP SP3. Since 5.4 is still supposed to support Windows XP, for now this should be considered a bug.
Comment 6 QA Administrators 2018-07-11 02:40:05 UTC Comment hidden (obsolete)
Comment 7 Aron Budea 2018-09-01 00:26:36 UTC
Since 5.4 reached EOL and Windows XP isn't supported anymore, closing this as WONTFIX.