fridgerator / PyNode

Node - Python Interop
154 stars 14 forks source link

Segmentation fault when importing libs like hashlib, numpy, etc. #44

Closed milliele closed 1 year ago

milliele commented 1 year ago

Just to let future comers avoid executing issues. I encountered segfault when importing numpy from Node.js, but it was all good in python. According to python/cpython#99951, this might be caused by the mismatch between the OpenSSL version used by Node and the one used by Python. Unfortunately, I didn't find any elegant solution. To fix this, we need to rebuild either Python or Node.js from source with correct OpenSSL version.