mintproject / mic

Model Insertion Checker
https://mic-cli.readthedocs.io/en/latest/
5 stars 3 forks source link

No such file or directory for HAND-TauDEM #306

Open dhardestylewis opened 4 years ago

dhardestylewis commented 4 years ago

mic pkg trace does not appear to detect when it has taken place deeper in the directory hierarchy than the parent directory of mic/mic.yaml. Therefore, it does not copy input files into the correct subdirectory structure when in the run script. I have briefly attempted to modify the run script, but I have not yet figured out exactly how to fix this issue.

(hand-taudem) root@b503a871836e:/tmp/mint# mic pkg run -f mic/mic.yaml
MIC needs to create new directory mic/executions/09_22_21_17_58 to run the model component Do you want to continue [Y/n]: 
Create a execution directory /tmp/mint/mic/executions/09_22_21_17_58
Copying the inputs
Source: /tmp/mint/mic/data
Destination: /tmp/mint/mic/executions/09_22_21_17_58/src
Running
./run   -i1 /tmp/mint/mic/executions/09_22_21_17_58/src/regions/Texas/Travis-10m/Travis-DEM-10m-HUC120902050408buf.tif  -o1 travis-dem-10m-huc120902050408bufdd-vis_cpg.cpg -o2 travis-dem-10m-huc120902050408bufdd-vis_prj.prj -o3 travis-dem-10m-huc120902050408bufdd-vis_json.json -o4 travis-dem-10m-huc120902050408bufdd-vis_shp.shp -o5 travis-dem-10m-huc120902050408bufdd_tif.tif -o6 travis-dem-10m-huc120902050408bufdd-vis_dbf.dbf -o7 travis-dem-10m-huc120902050408bufdd-vis_shx.shx -o8 travis-dem-10m-huc120902050408bufdd-vis_tif.tif 
/bin/bash: /opt/conda/envs/hand-taudem/lib/libtinfo.so.6: no version information available (required by /bin/bash)
/tmp/mint/mic/executions/09_22_21_17_58/src/io.sh: line 80: travis-dem-10m-huc120902050408buf_tif=/tmp/mint/mic/executions/09_22_21_17_58/src/regions/Texas/Travis-10m/Travis-DEM-10m-HUC120902050408buf.tif: No such file or directory
Failed
Something is wrong. You can report this problem at https://bit.ly/2zR1Tew
(hand-taudem) root@b503a871836e:/tmp/mint# ls /tmp/mint/mic/executions/09_22_21_17_58/src
hand-2.1.0.sh  output.sh  run.orig
io.sh          run        Travis-DEM-10m-HUC120902050408buf.tif
issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.91. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

dgarijo commented 4 years ago

@dhardestylewis, can you please share:

the trace command captures all system calls, so it's definitely not tracking only the parent folder (we have tested this). Why should mic copy a directory structure? I think it should either copy the files, or if you use a folder, then a zip file with the directory structure you are using.