JuliaPy / PyCall.jl

Package to call Python functions from the Julia language
MIT License
1.45k stars 186 forks source link

Error building PyCall with julia-1.8.5 due to Cryptography version #1023

Closed hhaensel closed 1 year ago

hhaensel commented 1 year ago

After installing Julia1.8.5 building of PyCall.jl fails with

AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'

The following workaround from https://github.com/aws/aws-sam-cli/issues/4527#issuecomment-1368871248 helped in my case:

Under a command prompt enter

pip install --force-reinstall "cryptography==38.0.4"
hhaensel commented 1 year ago

I just realised that pyopenssl 23.00 has been released, so a

conda update --all

should do the job if cryptography has been installed by conda. In my case I needed to remove cryptography exlicitly first.

pip uninstall cryptography

and re-add via conda. - My bad!