Skip to content

libhdf5 not defined for juliacall 0.9.25 on M1 runner when using python built with openssl 1.x #615

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

Open
mtsokol opened this issue May 19, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@mtsokol
Copy link

mtsokol commented May 19, 2025

Affects: JuliaCall

Describe the bug

Since 0.9.25 precompilation of HDF5 fails (only) on macos-latest M1 GitHub runner.

Here's an issue where we identified it:
JuliaIO/HDF5.jl#1198

And here's a minimal repository reproducing it:
https://github.com/mtsokol/hdf5-bug
https://github.com/mtsokol/hdf5-bug/actions/runs/15098780219/job/42436980940

Pinning juliacall version to 0.9.24 fixes it:
mtsokol/hdf5-bug#1

Additional context
Looking at the 0.9.25 diff my guess would be that it has something to do with OpenSLL_jll change.

Additionally, I reported 3 weeks ago: JuliaPackaging/Yggdrasil#11077 which was HDF5 dependency juliapkg issue.

I had to pin juliacall only for macos-latest, as pinning it for all environments caused ubuntu-latest to fail with OpenSLL_jll dependency error.

@mtsokol mtsokol added the bug Something isn't working label May 19, 2025
@mkitti
Copy link
Member

mkitti commented May 19, 2025

To be clear, this is not a bug with JuliaCall. It is a feature. It is correctly trying to prevent you from loading incompatible versions of OpenSSL.

OpenSSL 1.x has been out of support for at least a year now. If you still need to use Python 3.10, then find a build with a newer version of OpenSSL.

@mkitti
Copy link
Member

mkitti commented May 19, 2025

One solution here may be to provide an option to override this the OpenSSL version constraint. I suspect this already exists if one explicitly selects OpenSSL at version 3.

@mkitti mkitti changed the title libhdf5 not defined for juliacall 0.9.25 on M1 runner libhdf5 not defined for juliacall 0.9.25 on M1 runner when using python built with openssl 1.x May 22, 2025
@cjdoris
Copy link
Collaborator

cjdoris commented May 24, 2025

The actual error you're seeing looks more like a bug in HDF5. But presumably you're only getting this bug because juliapkg is holding back OpenSSL_jll which holds back HDF5_jll and this older version is not available on M1.

I don't think there's anything to fix on this end. We could provide an option to override the version that is installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants