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

Adding in the base Dockerfile the installation of hdf5 library and pkg-config #468

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

mikibonacci
Copy link
Member

These pkgs allow to then install h5py via pip without issues.

The installation of pkg-config is required, it was not sufficient to just install the hdf5 and then define the HDF5_DIR environment variable.

then install h5py via pip without issues.

The installation of pkg-config is required, it was not sufficient to just
install the hdf5 and then define the HDF5_DIR environment variable.
Copy link
Contributor

@danielhollas danielhollas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mikibonacci looks good. @unkcpz please take a look as well.

@unkcpz
Copy link
Member

unkcpz commented Jun 11, 2024

I did discuss with @mikibonacci in person last Friday. I totally agree this is a better solution to add the more generic packages. Just take a look at the failed build on arm64. It is a bit weird to find in the logs around the mamba install command there are:

#67 51.75    - aiida-core==2.5.1
#67 51.75    - aiida-core=2.5.1

Also worth to notice quite a lot conda packages are forced to updated, is this all expected? @danielhollas

@danielhollas
Copy link
Contributor

Just take a look at the failed build on arm64.

The build timed-out after two hours. I restarted it now and it went fine so I think this was just Github Actions being slow again, I needed to restart the build on another PR today as well.

#67 51.75    - aiida-core==2.5.1
#67 51.75    - aiida-core=2.5.1

I think this is because we specify the aiida-core version both via mamba install parameter explicitly and also via the constraint file. I can tweak it in another PR to get rid of these confusing lines.

Also worth to notice quite a lot conda packages are forced to updated, is this all expected?

I am not sure but I am not too surprised since we're installing a relatively recent aiida-core version into an old jupyter-stack image. I am hoping that once we update the image to a more recent one with Python 3.10 (working on that in #455) there will be fewer packages that need upgrading.

@danielhollas
Copy link
Contributor

It is a bit weird to find in the logs around the mamba install command there are

I fixed this in #461 as part of this commit 4c0c3b5

@danielhollas danielhollas merged commit 7e70469 into main Jun 11, 2024
16 checks passed
@danielhollas danielhollas deleted the fix/arm64/h5py_pkgconfig branch June 11, 2024 22:36
@danielhollas
Copy link
Contributor

@mikibonacci I am planning to release a new version of the image that will include your change soon, hopefully this week. It would be great if you could pull docker.io/aiidalab/full-stack:edge image and test that you can install QeApp and vibroscopy plugin. It would be even more awesome if you could also test running some short calculation to verify nothing important broke, since I've been doing quite a few changes since the last release. Thank you!

@mikibonacci
Copy link
Member Author

@danielhollas, I will do it today (is it already pushed?) and let you know if something breaks

@danielhollas
Copy link
Contributor

Thanks! The edge tag always points to the last commit on the main branch in this repo.

@mikibonacci
Copy link
Member Author

yeah, I just saw it after my comment! I did a test for the aiidalab-qe-vibroscopy plugin and it was fine, so I think everything is then working properly for the edge tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants