-
Notifications
You must be signed in to change notification settings - Fork 51
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
Getting an error during singularity build #822
Comments
Hi @benlee0423, in #804 we improved the packaging of cd /t-route/src/troute-network
python -m build --no-isolation --wheel .
cd /t-route/src/troute-routing
python -m build --no-isolation --wheel .
# troute-config doesn't use setup.py, use build to make the wheel
cd /t-route/src/troute-config
python -m build . \
# troute-nwm doesn't use setup.py, use build to make the wheel
cd /t-route/src/troute-nwm
python -m build . Im going to close this as resolved, but please re-open if you continue to have issues. |
@aaraney Docker build looks fine with latest t-route, but HPC repo failed with your suggestion.
Additionally, if I bring back t-route code to commit 59a6041, it builds without any error. Line 90 in 59a6041
|
Hey @benlee0423, Ensure that you install Replace #!/bin/bash
current_path=`pwd`
echo "==========================================================="
echo "-- Now loding modules ..."
echo "-----------------------------------------------------------"
source /etc/profile.d/modules.sh
module load mpi
module list
echo "==========================================================="
echo "==========================================================="
echo ""
echo "==========================================================="
echo "-- Now Cloning and Installing NOAA-OWP T-Route ..."
echo "-----------------------------------------------------------"
export FC=gfortran NETCDF=/usr/include
git clone --progress --single-branch --branch master https://github.com/NOAA-OWP/t-route
cd t-route
git submodule update --init
python -m pip install -r requirements.txt
python -m pip install build
./compiler.sh no-e
cd /t-route/src/troute-network
python -m build --no-isolation --wheel .
cd /t-route/src/troute-routing
python -m build --no-isolation --wheel .
# troute-config doesn't use setup.py, use build to make the wheel
cd /t-route/src/troute-config
python -m build --wheel .
cd /t-route/src/troute-nwm
python -m build --wheel .
cd /t-route
cp /t-route/src/troute-network/dist/*.whl /t-route/wheels
cp /t-route/src/troute-routing/dist/*.whl /t-route/wheels
cp /t-route/src/troute-config/dist/*.whl /t-route/wheels
cp /t-route/src/troute-nwm/dist/*.whl /t-route/wheels |
@aaraney Using old commit 59a6041, the build shows the following line in build log file.
But, I don't see any of these in build log from latest t-route with your code change suggestion. |
Just opened a PR that should solve your issues. Please take a look and allow running the GH action. It looks the GH action runner was not run on the branch that has the changes I suggested. |
@aaraney |
@benlee0423, great! Glad that got it sorted out! |
Current behavior
Build t-route with latest code in our HPC singularity build.
Getting the following error message, and build failed.
I think this is due to the change made on the issue #783 and this commit.
Expected behavior
Build without error
Steps to replicate behavior (include URLs)
Screenshots
The text was updated successfully, but these errors were encountered: