-
Notifications
You must be signed in to change notification settings - Fork 19
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
ciroh-ngen-image build is broken with ngen latest #137
Comments
The last successful ngen commit id is f91e2ea, and I create a branch ngen-commit-f91e2ea. |
@benlee0423 is this for x86 build? |
This issue appears to be the same as the one in the singularity thread (CIROH-UA/NGIAB-HPCInfra#12) As mentioned in that thread: https://github.com/CIROH-UA/NGIAB-CloudInfra/actions/runs/8426072053/job/23074620878#step:4:814 Shows that numpy is in https://github.com/CIROH-UA/NGIAB-CloudInfra/actions/runs/8426072053/job/23074620878#step:4:810 NOAA-OWP/ngen#755 updated the pybind module in an attempt to fix up some other path issues related to pybind/pybind11#4471 but it appears that the issue may not be entirely resolved upstream (pybind/pybind11#4654). I would suggest using a virtual environment for the ngen build and runtime which installs numpy and other required python modules in that environment. This seems to avoid many of the potential path issues such as the one seen in this issue. This is the reccomendation from the ngen depndencies documentation as well. |
unless docker has been updated with a better way of doing this, a python venv can be created like this ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH" I'd make the changes myself but I've got to head to class in 2 minutes |
After investigating this further, the issue with the docker build can be fixed by using a more recent release of pybind11 NGIAB-CloudInfra/docker/Dockerfile.ngen Line 31 in e433e85 This line should do it RUN cd /ngen/ngen/extern && rm -rf pybind11 && git clone https://github.com/pybind/pybind11.git && cd pybind11 && git checkout v2.11.0 It's what I've used in this dockerfile I've been working on to build ngen as fast as possible for testing. The latest version of pybind11 2.13.1 also works, but I figured it would be best to use the next most recent release after the version currently pinned in the ngen repo (pinned is 2.10.4, next after that is 2.11). It looks like there are plans to increase pybind11 to 2.12 NOAA-OWP/ngen#837 which will also fix this. It should also fix CIROH-UA/NGIAB-HPCInfra#12, and will likely fix NOAA-OWP/DMOD#630. |
@benlee0423 - possible to recheck on this when you get chance. |
@arpita0911patel |
@arpita0911patel |
Thank you Ben |
Closing as the PR gets merged. |
Short description explaining the high-level reason for the new issue.
Current behavior
Action is broken for the following error message.
Expected behavior
Build the image without any error
Steps to replicate behavior (include URLs)
Screenshots
The text was updated successfully, but these errors were encountered: