Jump to content

Python 3.8.13 for Windows XP SP3


Recommended Posts

  • 3 weeks later...

Posted
On 27 January 2024 at 7:28 AM, gxlydlyf said:

Can I use pyinstaller to package a program?

Yes, I am using Pyinstaller 4.10 under Windows XP with Visual Studio 2010 to package XP compatible binaries of LOKI the IOC scanner.  Needless to say I have installed cmalex's XP compatible build of Python 3.8.13.

Posted (edited)
On 03 January 2024 at 2:38 AM, dmiranda said:

Hi there, @cmalex. I've been trying to set up pyton 3.8 in xp, but the instructions in PythonXP\README are not enough for me, poor illiterate folk, to make it work. Could you explain in more detail (as in spoonfed) how to set it up, and what items to include in path to run it? Thank you very much.

I reorganized the contents of cmalex's distribution of Python 3.8.13 and made a simple batch file to install it along with shortcuts, file associations and environment variables.  You can download it here:

File: Python 3.8.1350 For XP.7z (4Shared)
File: Python 3.8.1350 For XP.7z (Google Drive)

MD5: F7F1C486DDAEB417B0D46431947D3E18
SHA-1: CD5876AFD726029F713451E9F15AACB230CCB3EE
SHA-256: C05D4F6F092565DEB8C7E89F9DB763605841FA865767936B945B9374F3E98AB6
Build Date: 14/07/2022
Size: 42.8 MB

I intend to make a proper installer one day, but at least in this form you can see what is included and make modifications to suit your needs.

Enclosed are batch files to temporarily set environment variables if you want to run more than one version of Python on a drive.

Note: 4Shared is blocked in the UK.  Use a VPN server located in the United States or the Netherlands.

CP28_Env.bat CP34_Env.bat CP35_Env.bat

Edited by Zorba the Geek
Error in Install.bat. Microsoft deleted everything in my OneDrive. Bastards.
Posted (edited)

I have made a new binary build of LOKI the indicator of compromise scanner, and have downgraded yara-python from version 4.3 to version 4.2.3 to eliminate the error message:

"TypeError: 'yara.StringMatch' object is not subscriptable"

The explanation in the release notes for version 4.3 is as follows:

Quote

Important note: This release introduces backward incompatible changes to the yara-python API.

Specifically, the strings field in the yara.Match object has changed from an array of tuples (<offset>, <string identifier>, <string data>) to an array of yara.StringMatch objects. If your program iterates over the matched strings you will need to update your program accordingly.

File: Loki-0.46.2-xp.zip (Google Drive)
File: Loki-0.46.2-xp.zip (4Shared)
MD5: 8D646734522303FCCD1058DFA126C11D
SHA-1: E8F32E0F03AA55E5F3A419AFDBD47ED42E12F8EA
Size: 24.5 MB
Build date: 11/02/2024

Once unzipped the package does no need to be installed, except that an XP compatible build of bcrypt.dll must be in your path, and the IPV6 protocol must be installed from your Local Area Connection.

The relevant Python modules to build LOKI under Windows XP are:

colorama                           0.4.6
future                                0.18.3
netaddr                             0.8.0
psutil                                 5.6.1
pyinstaller                         4.10
rfc5424-logging-handler   1.4.3
python                               3.8.13    
pywin32                             300
WMI                                   1.5
yara-python                       4.2.3

Note: 4Shared is blocked in the UK.  Use a VPN sever located in the United States or the Netherlands.

Edited by Zorba the Geek
Microsoft deleted the contents of my OneDrive. Bastards.
Posted (edited)
On 2/12/2024 at 10:31 PM, Zorba the Geek said:

I reorganized the contents of cmalex's distribution of Python 3.8.13 and made a simple batch file to install it along with shortcuts, file associations and environment variables.  You can download it here:

File: Python 3.8.1350.7z (OneDrive)
MD5: b7c47b9d98f8998aae7ff6759fcc0684
SHA-1: e5adb30b8631a7a8790554bbcd14e8bdab84831a
Build Date: 14/07/2022
Size: 42.8 MB

I intend to make a proper installer one day, but at least in this form you can see what is included and make modifications to suit your needs.

Hi, great package!

Just check line 56 in Install.bat. It should be %SystemDrive% instead of %ProgramFilest%. Also using %%SystemDrive%% to keep them as variables in registry could be fine too.

And line 68 have unneeded colon (:) in InstallDir %SystemDrive%:. SystemDrive returns drive with colon like C:

Edited by George King
Posted (edited)
On 18 February 2024 at 1:05 PM, George King said:

Just check line 56 in Install.bat. It should be %SystemDrive% instead of %ProgramFilest%. Also using %%SystemDrive%% to keep them as variables in registry could be fine too.

And line 68 have unneeded colon (:) in InstallDir %SystemDrive%:. SystemDrive returns drive with colon like C:

Thanks for pointing out the errors.  Line 56 was thus:

Reg.exe add "HKLM\SOFTWARE\Classes\Python.File\Shell\editwithidle\shell\edit38-32\command" /ve /t REG_SZ /d "\"%ProgramFilest%\Python38\pythonw.exe\" -m idlelib \"%%L\" %%*" /f

When it should have been:

Reg.exe add "HKLM\SOFTWARE\Classes\Python.File\Shell\editwithidle\shell\edit38-32\command" /ve /t REG_SZ /d "\"%SystemDrive%\Python38\pythonw.exe\" -m idlelib \"%%L\" %%*" /f

I shall re-upload Python 3.8.1350.7z with these corrections.

I made the batch file by monitoring the changes made to the system by installing an official Python 3.8 distribution and saving the changes to the registry as a reg file which was then converted into a batch file using RegConvert.  In the registry paths were not written as variables, so I had to convert them to variables in the batch file.

Edited by Zorba the Geek
  • 2 months later...
Posted
On 7/10/2022 at 6:35 AM, cmalex said:

mitmproxy 6.0.3 (patched with zstandard from WHL folder).

Can you specify how you installed mitmproxy?

I have used https://mitmproxy.org/downloads/#6.0.2/ and other versions.

Installation successful, but error when running mitmweb --help

 

err_mitm6.0.2_p3.9.PNG

  • 5 months later...
Posted (edited)
On 3/13/2023 at 5:30 AM, nicolaasjan said:

Well, there is mine. ;)

https://github.com/nicolaasjan/yt-dlp/releases/latest/download/yt-dlp_x86_Windows-XP.zip

(manually uploaded; not part of the GitHub CI workflow)

 

That said, I ran into the same problems as you did.

Grabbed 'pyconfig.h' from a Py3.7 install and didn't have to change anything in it (there were no errors any more while compiling).

Disclaimer: I'm not a programmer.

Thank you for this; I was actually looking to update the Python installation to run an OS-independent package of yt-dlp, but you you've the job already.

Edited by naaloh
  • 2 weeks later...
Posted

@Zorba the Geek

Greetings :) ; all your "OneDrive" links inside this thread are not accessible here :( ; all redirect to a Microsoft login page :realmad: now...

E.g., your Feb 12th 2024 link in this comment does this for me: 

https://onedrive.live.com/download?resid=993BA94307E5CD88%21984&authkey=!APTkuAtsiWMQQNc

 => 

https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=162&ct=1728603475&rver=7.5.2205.0&wp=MBI_SSL_SHARED&wreply=https:%2F%2Fonedrive.live.com%2Fdownload%3Fresid%3D993BA94307E5CD88%2521984%26authkey%3D!APTkuAtsiWMQQNc&lc=1032&id=250206&cbcxt=sky&cbcxt=sky

Can you help, please? Has the "authkey" expired? Are the packages no longer available

Thanks for any insight :) ...

Posted (edited)

Hello thread, what file exactly i need for SSE-only system?

 

python2.jpg

python.jpg

Edited by S75
  • 3 weeks later...
Posted
On 11 October 2024 at 12:45 AM, VistaLover said:

@Zorba the Geek

Greetings :) ; all your "OneDrive" links inside this thread are not accessible here :( ; all redirect to a Microsoft login page :realmad: now...

Thanks for any insight :) ...

Without giving notice Microsoft blocked access to OneDrive from my Microsoft account so I had to create a new OneDrive account and start again.  With the new OneDrive account direct downloads now involves a complicated procedure involving base64 encoding of the URL, so I opened a Google Drive account and uploaded all my shared files there.  I am now revising all the links to my shared files in this forum which is really time consuming.  The link that you mentioned has been revised to point to the file on Google Drive.

Posted

I am considering making an XP compatible build of Electrum the BitTorrent client as a Windows executable.  The whole thing is written in pure Python, so I compilation of C++ code is not required.  All the dependencies like pyqt5 are included with the distribution as pure Python code, so I may not need to install them.  Perhaps I am being naive, but I cannot see why Python code should be incompatible with XP as long as the the Python interpreter supports XP.

Any insights and suggestions would be appreciated.

Posted
11 hours ago, Zorba the Geek said:

The link that you mentioned has been revised to point to the file on Google Drive.

Thank you ever so much :thumbup (though the 4Shared link works fine in my location, too :P ); BTW, "Python 3.8.1350 For XP.7z" seems kinda wrong; I would settle myself for just 3.8.13 as the CPython version; if "3.8.1350" was meant to denote "file version" of python.exe. pythonw.exe, python3.dll and python38.dll, am afraid all four display their file version as "3.8.13150(.1013)" ...

Cheers :) ...

Posted (edited)

Thank you very much for all of this. I wanted to share some points:

1) Wheels that work in my setup taken from original PythonXP (some in different folders, so check):

cffi-1.14.6-cp38-cp38-win32.whl

cryptography-3.4.8-cp38-cp38-win32

lxml-4.9.1-cp38-cp38-win32.whlnumpy-1.24.0.dev0+481.gb89a1d2-cp38-cp38-win32.whl
matplotlib-3.3.4-cp38-cp38-win32.whl ---> installing this one gets the latest pillowl
opencv_python-4.7.0.72-cp38-cp38-win32.whl
psutil-5.6.7-cp38-cp38-win32.whl
pyjq-2.5.2-cp38-cp38-win32.whl
sip-6.6.2-cp36-abi3-win32.whl
sip-6.6.2-cp37-abi3-win32.whl
wxPython-4.2.1a1-cp38-cp38-win32.whl
zstandard-0.18.0-cp38-cp38-win32.whl

2) tcl8.6 and tkl8.6 (as in zorba's and cmalex folders) don't work. Doing the following seems to make the trick:

move root\wish86t.exe and root\tclsh86t.exe into root\TCL\tclsh86t.exe and root\TCL\wish86t.exe
move the following folders from root\TLC to root\Lib (only files get left in TLC)

dde1.4, itcl4.2.2, nmake,reg1.3, sqlite3.36.0, tlcl8, tdbc1.1.3, tdbcmysql1.1.3, tdbcodbc1.1.3,
tdbcpostgres1.1.3, tdbcsqlite31.1.3, thread2.8.7, tcl8.6, tk8.6

Cheers!

Edited by dmiranda

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...