Jump to content

Python 3.5 Runtime Redistributable backported to XP


FranceBB

Recommended Posts


20 minutes ago, 404notfound said:

Oh, one important thing.


_socket.pyd
  ws2_32.dll
    inet_ntop
    inet_pton

These are missing.

I can fix that .

Please can you check someother py files for me ?

Thanks my friend

Link to comment
Share on other sites

Hmmm, the registry settings I had in mind are relevant to py.exe launcher, which is useful for managing multiple python versions rather than a portable package.
https://www.python.org/dev/peps/pep-0514/
https://pastebin.com/Da2NYpTd

How these work is that py.exe will launch appropiate python(w).exe according to registry settings and beginning of script.
#!python2
#!python3
#!python3.4
#!python2.7

It's good to know when installing new python into place.
Also another note is when installing on x64 system with x86 python, is changed reg path.
[HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\Python\PythonCore\...

Link to comment
Share on other sites

On 12/5/2018 at 3:11 AM, 404notfound said:

I did a little doohickey, untested.
Throw it in python directory.

patch.zip

C:\Temp\python-3.7.1>python
Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:05:16) [MSC v.1915 32 bit (Intel)] on win32
>>> import socket
>>> import _socket
>>> ^Z

C:\Temp\python-3.7.1>python get-pip.py
Collecting pip
  Downloading https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37
/pip-18.1-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 728kB/s
Collecting setuptools
  Downloading https://files.pythonhosted.org/packages/e7/16/da8cb8046149d50940c6110310983abb359bbb8cbc3539e6bef95c29428a
/setuptools-40.6.2-py2.py3-none-any.whl
(573kB)
    100% |████████████████████████████████| 573kB 819kB/s
Collecting wheel
  Downloading https://files.pythonhosted.org/packages/ff/47/1dfa4795e24fd6f93d5d58602dd716c3f101cfd5a77cd9acbe519b44a0a9
/wheel-0.32.3-py2.py3-none-any.whl
Installing collected packages: pip, setuptools, wheel
Successfully installed pip setuptools wheel

Everything works perfectly! :)

UPDATE:

Just FYI - ws2_32.dll from Extended Kernel for XP (ExtendedXP) works great too.

Edited by -SnooPY-
Link to comment
Share on other sites

When trying to install something with pip, you may encounter an error:

[Errno 0] Error: 'lib2to3 \\ Grammar3.7.1.final.0.pickle'

The easiest workaround I found here.

Hope this is helpful. Good luck to all! :)

 

Edited by -SnooPY-
Link to comment
Share on other sites

  • 1 month later...

I apologize, but did anyone try to run ProxHTTPSProxyMII v1.5 under WinXP?
I managed to overcome several difficulties, but I suspect another incompatibility with ws2_32.dll in _openssl.cp37-win32.pyd. Unfortunately, the replacement for ws2_xx.dll didn't give the expected result. What other ideas could there be?

Edited by -SnooPY-
Fix direct link
Link to comment
Share on other sites

The versions of ProxHTTPSProxyMII we've been using all derive from version 1.4 of the original, but apparently it's still being maintained by the original author, and last June a version 1.5 was released with some changes:

Quote

Version 1.5 (20180616)
--------------
+ SubjectAltNames support for DNS and IP
- Leading '*' in commonname.
* Generated cert's Subject field still uses '*' due to some hosts using more characters than allowed.
Example: 18cfdfd73150f69310ab-4d842a0601d0ae955a714605e7fb6d6f.ssl.cf2.rackcdn.com.

Edit: The link @-SnooPY- provided had Python code only. I guess that's what @-SnooPY- is trying to get working with Python 3.7.

The full version, compiled with Python 3.4, is at http://jjoe.proxfilter.net/ProxHTTPSProxyMII/files/ProxHTTPSProxyMII 1.5 34cx_freeze5.0.1urllib3v1.22Win32OpenSSL_Light-1_0_2o-1_1_0h.zip. (Whew; what a file name)

Edited by Mathwiz
Link to comment
Share on other sites

4 hours ago, dencorso said:

I use it (Rev. 2n) regularly. @Dave-H uses it all the time, IIRR. Maybe the revision you're using is too old. Do PM @heinoganda for a newer one, before doing anything else... Good luck!

Honestly, I did not quite understand your answer. I meant that I can't use the OpenSSL module in Python 3.7.1, which is discussed in this topic.

C:\Temp\python-3.7.1>python
Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:05:16) [MSC v.1915 32 bit (Intel)] on win32
>>> import ssl
>>> ssl.OPENSSL_VERSION
'OpenSSL 1.1.0i  14 Aug 2018'
>>> import OpenSSL
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Temp\python-3.7.1\Lib\site-packages\OpenSSL\__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "C:\Temp\python-3.7.1\Lib\site-packages\OpenSSL\crypto.py", line 16, in <module>
    from OpenSSL._util import (
  File "C:\Temp\python-3.7.1\Lib\site-packages\OpenSSL\_util.py", line 6, in <module>
    from cryptography.hazmat.bindings.openssl.binding import Binding
  File "C:\Temp\python-3.7.1\Lib\site-packages\cryptography\hazmat\bindings\openssl\binding.py", line 14, in <module>
    from cryptography.hazmat.bindings._openssl import ffi, lib
ImportError: DLL load failed: The specified module could not be found.
>>> ^Z

C:\Temp\python-3.7.1>

Does anyone know how to fix it? Thanks a lot.

Link to comment
Share on other sites

I continue to talk to myself. :) It turned out that _openssl.cp37-win32.pyd contains bcrypt.dll in the import table. But in WinXP this library is physically missing.

bcrypt.jpg.c57c1a628a026c0a0fce9b0592b3dd9f.jpg

Edited by -SnooPY-
Added a screnshot
Link to comment
Share on other sites

1 hour ago, Mathwiz said:

So you need a legal bcrypt.dll that runs on XP. ReactOS? Wine?

I don’t think bcrypt.dll is really needed here. Version 1.5, which you mentioned above, does not need any additional libraries. I just hoped that it was possible to do a thing like this patch for ws2_32.dll that implements only two missing functions.

Link to comment
Share on other sites

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...