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

Errors if results directory is outside the open-gira repo path on machine #142

Open
itrcrisks opened this issue Jul 27, 2023 · 2 comments
Open

Comments

@itrcrisks
Copy link

Snakemake rules assume that the 'results' directory should be in the path /open-gira/results.
However if I want to create results in a path ex: /Desktop/project/results, I get an error.
It happened when executing the workflow:
snakemake --cores 1 -- /Desktop/project/results/jamaica-latest_filter-road/edges.geoparquet

@thomas-fred
Copy link
Contributor

Hey Raghav, which rule was it that broke? Can you post the relevant few lines of output?

@itrcrisks
Copy link
Author

Error while reading config file '../../..//Users/raghavpant/Desktop/Jamaica_project/results/json/jamaica-latest_extracts/slice-0.geojson':
JSON error at offset 0: The document is empty.
[Thu Jul 27 17:07:06 2023]
Error in rule slice:
jobid: 3
input: /Users/raghavpant/Desktop/Jamaica_project/results/input/OSM/jamaica-latest_filter-road.osm.pbf, /Users/raghavpant/Desktop/Jamaica_project/results/json/jamaica-latest_extracts/slice-0.geojson
output: /Users/raghavpant/Desktop/Jamaica_project/results/slices/jamaica-latest_filter-road/slice-0.osm.pbf
shell:

    WORKDIR=$(dirname /Users/raghavpant/Desktop/Jamaica_project/results/slices/jamaica-latest_filter-road/slice-0.osm.pbf)
    mkdir -p $WORKDIR &&
    cd $WORKDIR &&
    osmium extract --set-bounds --overwrite --no-progress --config ../../..//Users/raghavpant/Desktop/Jamaica_project/results/json/jamaica-latest_extracts/slice-0.geojson ../../..//Users/raghavpant/Desktop/Jamaica_project/results/input/OSM/jamaica-latest_filter-road.osm.pbf
    
    (one of the commands exited with non-zero exit code; note that snakemake uses bash strict mode!)

Shutting down, this might take some time.
Exiting because a job execution failed. Look above for error message
Complete log: .snakemake/log/2023-07-27T170505.269345.snakemake.log

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

No branches or pull requests

2 participants