Zeronet: OpenSSL not working on 64-bit Windows

Created on 23 Sep 2018  路  3Comments  路  Source: HelloZeroNet/ZeroNet

Step 1: Please describe your environment

  • ZeroNet version: 0.6.3 (rev3576)
  • Operating system: Windows 10, 64 bit
  • Web browser: Firefox
  • Tor status: error
  • Opened port: yes
  • Special configuration: none

Step 2: Describe the problem:

Steps to reproduce:

  1. Buy 64-bit processor
  2. Install 64-bit Windows
  3. Run ZeroNet

Observed Results:

I get:

Internal error: WindowsError: [Error 193] %1 is not a valid Win32 application
UiWebsocket.py line 81 > UiWebsocket.py line 267 > CryptMessagePlugin.py line 34 > CryptMessagePlugin.py line 14 > CryptMessage.py line 8 > builtins.py line 96 > __init__.py line 16 > builtins.py line 96 > openssl.py line 504 > openssl.py line 501 > openssl.py line 73 > __init__.py line 366

This happens because the DDL ZeroNet uses to load OpenSSL is 32-bit. However, my Python is 64-bit, and a 64-bit application cannot use a 32-bit DLL.

Expected Results:

It works.

Temporary Solution:

Install 32-bit Python.

enhancement

Most helpful comment

Yes, it's a known problem, there is only 32bit distribution of ZeroNet right now. (it works on both 32bit and 64bit windows)

You can fix it by replacing the dlls in src/lib/opensslVerify with https://indy.fulgan.com/SSL/openssl-1.0.2p-x64_86-win64.zip ones.

With moving to python3 it's also planned to remove the lib dir and use systems installed ones (with PIP) or the bundled ones in case of binary distributions, so we can have both 32bit and 64bit versions for windows.

All 3 comments

Yes, it's a known problem, there is only 32bit distribution of ZeroNet right now. (it works on both 32bit and 64bit windows)

You can fix it by replacing the dlls in src/lib/opensslVerify with https://indy.fulgan.com/SSL/openssl-1.0.2p-x64_86-win64.zip ones.

With moving to python3 it's also planned to remove the lib dir and use systems installed ones (with PIP) or the bundled ones in case of binary distributions, so we can have both 32bit and 64bit versions for windows.

Is this still an issue ? I think I don't face on latest win dist !
@HelloZeroNet

Yeah, it can be closed (actually we have only binaries for 64bit currently)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BenMcLean picture BenMcLean  路  3Comments

DaniellMesquita picture DaniellMesquita  路  3Comments

blurHY picture blurHY  路  3Comments

blurHY picture blurHY  路  3Comments

iShift picture iShift  路  3Comments