deployment issue in builds #60
Answered
by
giswqs
amccorketutoring
asked this question in
Q&A
-
I have everything done but I having trouble with a file path not being recognized even though the file is in my directory. github repository: |
Beta Was this translation helpful? Give feedback.
Answered by
giswqs
May 6, 2025
Replies: 1 comment
-
Avoid using absolute file paths in notebook examples. Absolute file paths are not accessible by GitHub Actions, which are Linux-based VMs. File paths on your Windows won't be the same as the one on Linux. gdf_buildings = gpd.read_file(r"C:\Users\Alex\Documents\GeoMorphProject1\data\KnoxCounty_Buildings.geojson") Use relative file paths like this: gdf_buildings = gpd.read_file("../../../data/KnoxCounty_Buildings.geojson") |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
giswqs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Avoid using absolute file paths in notebook examples. Absolute file paths are not accessible by GitHub Actions, which are Linux-based VMs. File paths on your Windows won't be the same as the one on Linux.
Use relative file paths like this: