alexfree Posted December 30, 2021 Posted December 30, 2021 I recently got the latest version of Python 3.6, Python 3.6.15 working on Windows XP SP3. Since Python 3.4 is the latest official version for XP, this allows the use of many more Python programs like YouTube-DLP. You can get WinXP_Python-3.6.15 on my website. 3
Montana Slim Posted January 2, 2022 Posted January 2, 2022 Am I correct in thinking you need Cygwin installed to even run this? Maybe why nobody replied to your reddit winxp post... 1
genieautravail Posted January 2, 2022 Posted January 2, 2022 @cmalex has already compiled Python 3.7 for XP more than one year ago: As the official release of yt-dlp doesn't works on XP, I'm using this version of python for compiling yt-dlp as a temporary replacement for youtube.dl on XP. No more issue for downloading from youtube website.
nicolaasjan Posted January 15, 2022 Posted January 15, 2022 (edited) On 1/2/2022 at 10:15 PM, genieautravail said: @cmalex has already compiled Python 3.7 for XP more than one year ago: As the official release of yt-dlp doesn't works on XP, I'm using this version of python for compiling yt-dlp as a temporary replacement for youtube.dl on XP. No more issue for downloading from youtube website. Compiling yt-dlp fails here : C:\Documents and Settings\User\Bureaublad\yt-dlp-master>python pyinst.py Traceback (most recent call last): File "pyinst.py", line 6, in <module> from PyInstaller.utils.hooks import collect_submodules File "C:\Python37\Lib/site-packages\PyInstaller\utils\hooks\__init__.py", line 1012, in <module> from .gi import * File "C:\Python37\Lib/site-packages\PyInstaller\utils\hooks\gi.py", line 16, i n <module> from ...depend.bindepend import findSystemLibrary File "C:\Python37\Lib/site-packages\PyInstaller\depend\bindepend.py", line 43, in <module> import pefile ModuleNotFoundError: No module named 'pefile' And then: C:\Documents and Settings\User\Bureaublad\yt-dlp-master>pip install pefile Collecting pefile Using cached https://files.pythonhosted.org/packages/ee/e1/a7bd302cf5f74547431 b4e9b206dbef782d112df6b531f193bb4a29fb1b9/pefile-2021.9.3.tar.gz Collecting future (from pefile) Using cached https://files.pythonhosted.org/packages/45/0b/38b06fd9b92dc2b68d5 8b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar.gz ERROR: Complete output from command python setup.py egg_info: ERROR: Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\DOCUME~1\User\LOCALS~1\Temp\pip-install-pvvu2pzh\future\setup .py", line 86, in <module> import src.future ModuleNotFoundError: No module named 'src' ---------------------------------------- ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\DOCUME~ 1\User\LOCALS~1\Temp\pip-install-pvvu2pzh\future\ WARNING: You are using pip version 19.1.1, however version 21.3.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' comm and. How did you get the necessary modules? Edited February 5, 2022 by nicolaasjan
nicolaasjan Posted January 16, 2022 Posted January 16, 2022 However running yt-dlp directly from the source directory works: python ./yt_dlp/__main__.py -v [debug] Command-line config: ['-v'] [debug] User config "C:\Documents and Settings\Nico\Application Data\yt-dlp\config.txt": ['-i', '--no-mtime', '--add-metadata', '--embed-thumbnail', '-o', '~/Bureaublad/%(title)s.%(ext)s', '-f', 'bestvideo[height<=1080][ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'] [debug] Encodings: locale cp1252, fs utf-8, out cp1252 (No ANSI), err cp1252 (No ANSI), pref cp1252 [debug] yt-dlp version 2022.01.15 [6223f67a8] (source) [debug] Plugins: ['SamplePluginIE', 'SamplePluginPP'] [debug] Python version 3.7.1 (CPython 32bit) - Windows-XP-5.1.2600-SP3 [debug] exe versions: ffmpeg N-105053-gc417616-Reino (setts,fdk), ffprobe N-105053-gc417616-Reino [debug] Optional libraries: mutagen, sqlite, websockets [debug] Proxy map: {} Usage: __main__.py [OPTIONS] URL [URL...] __main__.py: error: You must provide at least one URL. Type yt-dlp --help to see a list of all options.
alexfree Posted February 27, 2022 Author Posted February 27, 2022 On 1/1/2022 at 8:02 PM, Montana Slim said: Am I correct in thinking you need Cygwin installed to even run this? Maybe why nobody replied to your reddit winxp post... Not neccesarily, it should be possible to copy the required cygwin dlls into the same directory as the the python3.6m.exe
alexfree Posted February 28, 2022 Author Posted February 28, 2022 On 1/16/2022 at 3:14 AM, nicolaasjan said: @VistaLover Any ideas? I had no issues using dlp with my python. Also the 3.6.15 is newer then 3.7.1 from a year ago (not in version number but release date).
nicolaasjan Posted June 24, 2022 Posted June 24, 2022 (edited) On 2/28/2022 at 1:05 AM, alexfree said: I had no issues using dlp with my python. Also the 3.6.15 is newer then 3.7.1 from a year ago (not in version number but release date). Finally got it working. Just copied over the entire 'Lib' and 'Scripts' directories from a Python 3.7 x86 install on Windows Vista (with Pyinstaller 3.5). Only had to omit the websockets module because of an error (edited the file 'pyinst.py' in the source). [debug] Command-line config: ['-vU'] [debug] User config "C:\Documents and Settings\Nico\Application Data\yt-dlp\config.txt": ['--no-mtime', '--add-metadata', '--embed-thumbnail', '--convert-thumbnails', 'jpg', '--ppa', 'ffmpeg:-metadata synopsis=""', '-o', '~/Desktop/%(title)s.%(ext)s', '-f', 'bestvideo[height<=1080][ext=mp4][vcodec!*=av01]+bestaudio[ext=m4a]/best[ext=mp4]/best', '--downloader', 'aria2c', '--downloader-args', 'aria2c:-x 10 -s 10 -j 10 -k 1M --log-level=info --file-allocation=none'] [debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out cp1252 (No VT), error cp1252 (No VT), screen cp1252 (No VT) [debug] yt-dlp version 2022.06.24 [379a4f161] (win32_exe) [debug] Python version 3.7.1 (CPython 32bit) - Windows-XP-5.1.2600-SP3 [debug] Checking exe version: ffmpeg -bsfs [debug] Checking exe version: ffprobe -bsfs [debug] exe versions: ffmpeg N-106824-gf3b7ba2-Reino (fdk,setts), ffprobe N-106824-gf3b7ba2-Reino [debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.06.15, mutagen-1.45.1, sqlite3-2.6.0 [debug] Proxy map: {} [debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest Latest version: 2022.06.22.1, Current version: 2022.06.24 yt-dlp is up to date (2022.06.24) [Edit] Dropped 3.7 in favour of 3.8. 🙂 Link in my signature now points to yt-dlp built with Python 3.8. See this thread. Edited February 9, 2023 by nicolaasjan
Zorba the Geek Posted April 25, 2023 Posted April 25, 2023 (edited) The link to alexfree's website where you can obtain the source code is broken, so I have uploaded it to my 4Shared account from where you can download it at the following links File: winxp_python3.6.15-src.zip (4Shared) File: winxp_python3.6.15-src.zip (Google Drive) MD5: 4CAE917675AE7F91F03808F026EA619C SHA-1: 2668E14644007B6A15EF1201E8741353C36CDDFF SHA-256: 0F564388025A843DEFF31AC8AA4CE808369D160D4C417BF0ED53249D04EA38B6 Release date: 26/12/2021 Size: 27.6 MB I have succeeded in compiling it according to the instructions given in readme.txt, and I would be interested in reading about other people's experience of doing the compile. I am mainly concerned about identifying where are the components of this Python 3.6 are located because as far as I can tell they are scattered around both Cygwin and the source folder. Once I identify them I ought to be able to assemble them into a package that can be archived or shared. As far as I can tell this python can be run outside of Cygwin as it is linked to a few Cygwin dlls such as Cygwin1.dll, Cygintl-8dll and Cyggcc_5-1.dll which can be included in the distribution. Note: 4Shared is blocked in the UK. Use VPN servers located in the United States or the Netherlands. Edited October 26 by Zorba the Geek
Zorba the Geek Posted October 26 Posted October 26 II have assembled the compiled Python modules and their Cygwin dependencies into a working Python distribution that you may like to try. File: Python Cygwin 3.6 For WinXP.zip (4Shared) File: Python Cygwin 3.6 For WinXP.zip (Google Drive) MD5: 03FE603F49192CC85B5B6A3F25A15E93 SHA-1: 7C22DA570A0ACD653E4AEF772E684B810E135ED8 SHA-256: D6CA468E4FDBB604DECB36EBE664958FA7C8273388A10D03A999EDAD3882A41C Build date: 25/04/2023 Size: 28.9 MB Of course the minimum 3.x Python version required in the latest applications is 3.7, so a new source code would have to be released to make an XP compatible build under Cygwin. I may contact the developer to request a new 3.7 build or else give instructions on how to create a 3.7 source. Note: 4Shared is blocked in the UK. Use VPN servers located in the United States or the Netherlands.
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