Skip to content

Invalid DLL file names on Windows OpenSSL 1.1.0 / 1.1.1 #262

@Sam071100

Description

@Sam071100

Currently, on Windows with the newest OpenSSL, I get:

E FileNotFoundError: Could not find module 'libeay32' (or one of its dependencies). Try using the full path with constructor syntax.

Since 1.1.0 (see i.e. https://mta.openssl.org/pipermail/openssl-dev/2016-August/008351.html or issues in other projects like steemit/steem-ruby#20, lian/bitcoin-ruby#302) libeay32 and sseay32 doesn't exist - it seems that the OpenSSL team apparently decided to rename them to libcrypto and libssl.

libeay32.dll -> libcrypto.dll
ssleay32.dll -> libssl.dll

I can get it running only after changing that line to:

_ssl = ctypes.cdll.LoadLibrary(ctypes.util.find_library('ssl') or 'libcrypto-1_1-x64')

I peeked those filenames in "C:\Program Files\Python39\Lib\site-packages\bitcoin\core\key.py" at line 34.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions