Skip to content

oletools 0.54.2 install fails on PyPy on Windows due to cryptography missing OpenSSL #473

@decalage2

Description

@decalage2

When attempting to install oletools 0.54.2 on PyPy on Windows using pip, the msoffcrypto-tool package is required, which in turn requires cryptography. It looks like cryptography on PyPy (unlike on CPython) is not statically linked to OpenSSL, and it fails to install when it cannot find OpenSSL to compile it:

build\temp.win32-2.7\Release\_openssl.c(498) : fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory
error: command 'C:\\Users\\xxx\\AppDats\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2

Ref about cryptography install: https://cryptography.io/en/latest/installation/
Workaround:
Use oletools 0.54.1, which does not require msoffcrypto-tool, until a fix is found:
pypy -m pip install oletools==0.54.1

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions