Repository navigation
[ERROR] Unable to access runtimes index at https://www.python.org/ftp/... #355
Description
Activity
Forgot to mention the 'bundled' directory referenced in the response to the command does not exist.
So the URL for FTP root actually has a slash at the end, and if you omit that then you get a 404. The index is definitely there.
And the bundled directory is intentionally omitted from the MSI (that should be documented somewhere, but it'll be an obscure note for administrators, not a normal user concern).
The problem appears to be that Wine does not support any of the WinHTTP APIs that we use for downloads. We don't officially support Wine, so there's nothing we're going to do about it, but what you might be able to do is copy the
urllibdirectory from a Python 3.14 Lib into theruntimedirectory, and also the_ssl.pydand_socket.pyd. That ought to be enough for the urllib fallback to enable, and I'm pretty sure the socket module works okay under Wine.We don't include that by default because we don't want to be subjected to OpenSSL's vulnerabilities, since they force us to release updates every time they do. As long as we only use Windows's own APIs, users will get the fixes automatically.
Hopefully that's helpful! Good luck
Also, if you'd like to package together a Wine-compatible version of the install manager, feel free. We won't distribute it from python.org, to avoid confusing the vast majority of users (who are not on Wine), but you're fine to distribute it anywhere you like.
And a side note: you'll want
py exec -3.7with a dot, since just-37won't match (there's no Python thirty seven out yet 😉 )Hi, I'm running into the same issue trying to get a bundled python application working under wine (it's a utility for another application I have to run in that wine instance, so it needs to run in the same environment).
So I am trying your suggestion... I found urllib in my pyenv 3.14 directory and copied that to the runtime dir, but where can I get _ssl.pyd and _socket.pyd from? I could not locate them.
Also, what can I do about missing "runtimes index" file fallback-index.json? The /bundled folder it's supposed to be in does not exist at all, as far as I can tell.
where can I get _ssl.pyd and _socket.pyd from?
They are part of a normal Windows distribution of Python, usually in the
DLLsdirectory.what can I do about missing "runtimes index" file fallback-index.json?
You can create it or ignore the error. In the MSIX package, it's present so that users can always get the latest version of Python without needing network, but it's omitted from the MSI to reduce the size and allow/encourage administrators to bundle their own preferred defaults.
Install source and version
winget install 9NQ7512CXL7TVersion:
Describe the bug
At a Debian command prompt I typed 'wine pymanager exec -37' and got the error log as the response.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Whatever is supposed to happen. This was literally my first use of pymanager.
Additional context
The MSI was downloaded on 29 May 2026 (yesterday). I just checked 'https://www.python.org/ftp' in my browser and got 'Error 404: File not found'.
I suppose doing this on a Windows installation will get the same outcome.
I suppose it's possible the downloadable MSI has not caught up yet!
Log file attatched.
python_install_20260530191245_292.log