-
Notifications
You must be signed in to change notification settings - Fork 562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
oletools 0.54.2 install fails on PyPy on Windows due to cryptography missing OpenSSL #473
Comments
I still get an error when installing oletools 0.56 on PyPy 2.7 on Windows: decalage2/ViperMonkey#106 The only solution seems to make msoffcrypto-tool an optional dependency, as it was the case until oletools 0.54.1. |
I found a way to fix this with a conditional dependency in setup.py and requirements.txt: msoffcrypto-tool will only be installed if the platform is not PyPy or not Windows (which is the same as not(PyPy and Windows)):
This also contributes to fixing decalage2/ViperMonkey#106 |
…t PyPy3 on Linux (fixes decalage2#473)
…t PyPy3 on Linux (fixes decalage2#473)
…t PyPy3 on Linux (fixes decalage2#473)
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:
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
The text was updated successfully, but these errors were encountered: