Zorba the Geek Posted February 12, 2024 Posted February 12, 2024 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.
Zorba the Geek Posted February 12, 2024 Posted February 12, 2024 (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 October 26, 2024 by Zorba the Geek Error in Install.bat. Microsoft deleted everything in my OneDrive. Bastards. 2
Zorba the Geek Posted February 12, 2024 Posted February 12, 2024 (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 October 26, 2024 by Zorba the Geek Microsoft deleted the contents of my OneDrive. Bastards. 1
dmiranda Posted February 13, 2024 Posted February 13, 2024 (edited) Thanks so much for that, perhaps it may allow me to run R-Studio in XP, instead of linux-mint, @Zorba the Geek Edited February 13, 2024 by dmiranda completeness
George King Posted February 18, 2024 Posted February 18, 2024 (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 February 18, 2024 by George King 1
Zorba the Geek Posted February 22, 2024 Posted February 22, 2024 (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 February 22, 2024 by Zorba the Geek 1
FarmerNFS Posted April 22, 2024 Posted April 22, 2024 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
naaloh Posted September 29, 2024 Posted September 29, 2024 (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 September 29, 2024 by naaloh 1
VistaLover Posted October 10, 2024 Posted October 10, 2024 @Zorba the Geek Greetings ; all your "OneDrive" links inside this thread are not accessible here ; all redirect to a Microsoft login page 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 ...
S75 Posted October 11, 2024 Posted October 11, 2024 (edited) Hello thread, what file exactly i need for SSE-only system? Edited October 11, 2024 by S75
Zorba the Geek Posted October 26, 2024 Posted October 26, 2024 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 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. 1
Zorba the Geek Posted October 26, 2024 Posted October 26, 2024 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. 1
VistaLover Posted October 26, 2024 Posted October 26, 2024 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 (though the 4Shared link works fine in my location, too ); 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 ...
dmiranda Posted October 28, 2024 Posted October 28, 2024 (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 October 28, 2024 by dmiranda 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now