Skip to content

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

Closed

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.

Activity

  1. kanzure commented on Sep 6, 2021

    @kanzure
    Collaborator

    Also an issue on alpine.

  2. petertodd commented on Sep 30, 2021

    @petertodd
    Owner

    I'd be happy to accept a pull-req that just changes the name if that's what works on newer versions of windows. I don't know anything about the windows ecosystem, so if people could chime in on what works that'd be great!

  3. added a commit that references this issue on Mar 16, 2023
  4. petertodd commented on Mar 16, 2023

    @petertodd
    Owner

    I believe this is fixed by: #288

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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