Skip to content
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

Crash when importing some packages (including numpy) with Node.js 16 on Ubuntu 22.04 / OpenSSL 3 #30

Open
mmomtchev opened this issue Dec 1, 2022 · 2 comments
Labels
wontfix This will not be worked on

Comments

@mmomtchev
Copy link
Owner

pymport('numpy') on Node.js 16.x / Ubuntu 22.04 leads to a crash because of conflict between the two OpenSSL versions

@mmomtchev
Copy link
Owner Author

Temporary solution is to either use Node.js 18.x or Ubuntu 20.04

@mmomtchev mmomtchev changed the title Python's own OpenSSL conflicts with OpenSSL in Node.js 16 on Ubuntu 22.04 Crash when importing some packages (including numpy) with Node.js 16 on Ubuntu 22.04 / OpenSSL 3 Dec 2, 2022
@mmomtchev mmomtchev added the wontfix This will not be worked on label Dec 2, 2022
@mmomtchev
Copy link
Owner Author

mmomtchev commented Dec 2, 2022

This problem does not have a solution - if pymport is built against an existing Python library built itself against OpenSSL 3.0 - as is the case with the system-provided Python on Ubuntu 22.04 - this won't be compatible with Node.js 16.x which contains OpenSSL 1.1 with exported symbols.

The only possible solutions are:

  • Use the builtin Python interpreter
  • Use Node.js 18 or later
  • as a last resort, if Node.js 16.x and an external Python interpreter is absolutely required, rebuild this Python to use OpenSSL 1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant