ChHarding / TouchTerrain_jupyter_docker

Image for running Touchterrain standalone via a jupyter notebook
15 stars 4 forks source link

Error when using GPX #8

Closed ultrasouls closed 1 year ago

ultrasouls commented 1 year ago

I'm getting an error when I use a .gpx file for args["importedGPX"]

When I get the error, if I go back and comment out that line and use the args["importedGPX"] = None
the error is resolved.

Also, my GPX file is working fine as it shows up on the geemap when I'm going to select the area to print. The error only comes up when running the Generating the STL model file code.

Warning 1: PROJ: proj_create_from_database: Open of /usr/local/share/proj failed Warning 1: The definition of projected CRS EPSG:32614 got from GeoTIFF keys is not the same as the one from the EPSG registry, which may cause issues during reprojection operations. Set GTIFF_SRS_SOURCE configuration option to EPSG to use official parameters (overriding the ones from GeoTIFF keys), or to GEOKEYS to use custom values from GeoTIFF keys and drop the EPSG code. ERROR 1: PROJ: proj_create_from_database: Open of /usr/local/share/proj failed

AssertionError Traceback (most recent call last) Cell In[41], line 2 1 # create zipfile under tmp with the STL file of the terrain model ----> 2 totalsize, full_zip_file_name = TouchTerrain.get_zipped_tiles(**args) 3 print("Created zip file", full_zip_file_name, "%.2f" % totalsize, "Mb")

File /TouchTerrain/standalone/touchterrain/common/TouchTerrainEarthEngine.py:902, in get_zipped_tiles(DEM_name, trlat, trlon, bllat, bllon, polygon, polyURL, poly_file, importedDEM, printres, ntilesx, ntilesy, tilewidth, basethick, zscale, fileformat, tile_centered, CPU_cores_to_use, max_cells_for_memory_only, temp_folder, zip_file_name, no_bottom, bottom_image, ignore_leq, lower_leq, unprojected, only, original_query_string, no_normals, projection, use_geo_coords, importedGPX, gpxPathHeight, gpxPixelsBetweenPoints, gpxPathThickness, map_img_filename, smooth_borders, offset_masks_lower, fill_holes, min_elev, **otherargs) 900 if importedGPX != None and importedGPX != []: 901 from touchterrain.common.TouchTerrainGPX import addGPXToModel
--> 902 addGPXToModel(pr, npim, dem, importedGPX, 903 gpxPathHeight, gpxPixelsBetweenPoints, gpxPathThickness, 904 trlat, trlon, bllat, bllon) 906 # clip values? 907 if ignore_leq != None:

File /TouchTerrain/standalone/touchterrain/common/TouchTerrainGPX.py:233, in addGPXToModel(pr, npim, dem, importedGPX, gpxPathHeight, gpxPixelsBetweenPoints, gpxPathThickness, trlat, trlon, bllat, bllon) 231 source = osr.SpatialReference() 232 s_res = source.ImportFromEPSG(4326) # This is WGS84, return of 0 => OK --> 233 if s_res != 0: assert False, "addGPXToMode(): source.ImportFromEPSG(4326) returned error" + str(s_res) 235 for gpxFile in importedGPX: 236 pr(f"process gpx file: {gpxFile}")

AssertionError: addGPXToMode(): source.ImportFromEPSG(4326) returned error6

ChHarding commented 1 year ago

I did run into this just before Christmas. Turns out b/c the Dockerfile uses conda, everything runs in a base env. I had assumed something would activate base but it wasn’t - and still everything runs fine. Except GDAL, the complicated, arcane beast that it is, which needs to go through some sort of init to know where the projection stuff is. (Finding that out was quite a fishing expedition :) For this to happen first the shell script /usr/local/etc/profile.d/conda.sh has to be run, which set up where conda's commands like activate are, which are ofc also shell scripts! Only after does conda activate base work.

Need to activate base conda env so that GDAL projection stuff works

source /usr/local/etc/profile.d/conda.sh # inits conda commands for bash conda activate base

You could run this manually but I’ve also added it to the top of the run_touchterrain.sh script:

[cid:26DA2B7A-C40A-43B0-AB96-F0F924498C16]

Let me know if that solved it.

Cheers

Chris

On Jan 15, 2023, at 19:58, ultrasouls @.**@.>> wrote:

I'm getting an error when I use a .gpx file for args["importedGPX"]

When I get the error, if I go back and comment out that line and use the args["importedGPX"] = None the error is resolved.

Also, my GPX file is working fine as it shows up on the geemap when I'm going to select the area to print. The error only comes up when running the Generating the STL model file code.

That’s b/c gee map can natively read GPX files

Warning 1: PROJ: proj_create_from_database: Open of /usr/local/share/proj failed Warning 1: The definition of projected CRS EPSG:32614 got from GeoTIFF keys is not the same as the one from the EPSG registry, which may cause issues during reprojection operations. Set GTIFF_SRS_SOURCE configuration option to EPSG to use official parameters (overriding the ones from GeoTIFF keys), or to GEOKEYS to use custom values from GeoTIFF keys and drop the EPSG code. ERROR 1: PROJ: proj_create_from_database: Open of /usr/local/share/proj failed

AssertionError Traceback (most recent call last) Cell In[41], line 2 1 # create zipfile under tmp with the STL file of the terrain model ----> 2 totalsize, full_zip_file_name = TouchTerrain.get_zipped_tiles(**args) 3 print("Created zip file", full_zip_file_name, "%.2f" % totalsize, "Mb")

File /TouchTerrain/standalone/touchterrain/common/TouchTerrainEarthEngine.py:902, in get_zipped_tiles(DEM_name, trlat, trlon, bllat, bllon, polygon, polyURL, poly_file, importedDEM, printres, ntilesx, ntilesy, tilewidth, basethick, zscale, fileformat, tile_centered, CPU_cores_to_use, max_cells_for_memory_only, temp_folder, zip_file_name, no_bottom, bottom_image, ignore_leq, lower_leq, unprojected, only, original_query_string, no_normals, projection, use_geo_coords, importedGPX, gpxPathHeight, gpxPixelsBetweenPoints, gpxPathThickness, map_img_filename, smooth_borders, offset_masks_lower, fill_holes, min_elev, **otherargs) 900 if importedGPX != None and importedGPX != []: 901 from touchterrain.common.TouchTerrainGPX import addGPXToModel --> 902 addGPXToModel(pr, npim, dem, importedGPX, 903 gpxPathHeight, gpxPixelsBetweenPoints, gpxPathThickness, 904 trlat, trlon, bllat, bllon) 906 # clip values? 907 if ignore_leq != None:

File /TouchTerrain/standalone/touchterrain/common/TouchTerrainGPX.py:233, in addGPXToModel(pr, npim, dem, importedGPX, gpxPathHeight, gpxPixelsBetweenPoints, gpxPathThickness, trlat, trlon, bllat, bllon) 231 source = osr.SpatialReference() 232 s_res = source.ImportFromEPSG(4326) # This is WGS84, return of 0 => OK --> 233 if s_res != 0: assert False, "addGPXToMode(): source.ImportFromEPSG(4326) returned error" + str(s_res) 235 for gpxFile in importedGPX: 236 pr(f"process gpx file: {gpxFile}")

AssertionError: addGPXToMode(): source.ImportFromEPSG(4326) returned error6

— Reply to this email directly, view it on GitHubhttps://github.com/ChHarding/TouchTerrain_jupyter_docker/issues/8, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEYDF5PVIYMZMVKOCKEL34LWSSTNBANCNFSM6AAAAAAT4GPQRU. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Chris Harding Associate Professor Department of Geological & Atmospheric Sciences Touchterrain.geol.iastate.eduhttp://Touchterrain.geol.iastate.edu

ultrasouls commented 1 year ago

Thanks so much. I'll give it a try in the next couple of days.

ChHarding commented 1 year ago

Understood. I just checked and I did upload a new image (with those additions to the run shell script) to docker hub, so you should only need to get the current image and run the container.

On Jan 18, 2023, at 12:44, ultrasouls @.**@.>> wrote:

Thanks so much. I'll give it a try in the next couple of days.

— Reply to this email directly, view it on GitHubhttps://github.com/ChHarding/TouchTerrain_jupyter_docker/issues/8#issuecomment-1387561509, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEYDF5JX6GBXS7DJ42WCEC3WTA2YTANCNFSM6AAAAAAT4GPQRU. You are receiving this because you commented.Message ID: @.***>

Chris Harding Associate Professor Department of Geological & Atmospheric Sciences Touchterrain.geol.iastate.eduhttp://Touchterrain.geol.iastate.edu

ultrasouls commented 1 year ago

Hmmm. We made progress. I ran it and received the following new errors:

INFO:root:Using GeoJSON polygon for masking with 5 points INFO:root:Log for creating 3D model tile(s) for 10m_-99.19_29.63

INFO:root:DEM_name = USGS/3DEP/10m INFO:root:trlat = 29.66628749 INFO:root:trlon = -99.15314786 INFO:root:bllat = 29.59871351 INFO:root:bllon = -99.23160014 INFO:root:printres = 0.4 INFO:root:ntilesx = 1 INFO:root:ntilesy = 1 INFO:root:tilewidth = 120 INFO:root:basethick = 0 INFO:root:zscale = 1.5 INFO:root:fileformat = STLb INFO:root:no_bottom = False INFO:root:unprojected = False INFO:root:nonormals = True INFO:root: process started: 01:11:24.025569 INFO:root: Region (lat/lon): 29.66628749 -99.15314786 (top right) 29.59871351 -99.23160014 (bottom left) INFO:root:center at [-99.192374, 29.6325005] UTM 14 N , EPSG:32614 INFO:root:lon/lat size in degrees: [0.07845227999999338, 0.06757397999999881] INFO:root:Earth Engine raster: USGS/3DEP/10m Log for creating 3D model tile(s) for 10m-99.19_29.63

DEM_name = USGS/3DEP/10m trlat = 29.66628749 trlon = -99.15314786 bllat = 29.59871351 bllon = -99.23160014 printres = 0.4 ntilesx = 1 ntilesy = 1 tilewidth = 120 basethick = 0 zscale = 1.5 fileformat = STLb no_bottom = False unprojected = False no_normals = True

process started: 01:11:24.025569

Region (lat/lon): 29.66628749 -99.15314786 (top right) 29.59871351 -99.23160014 (bottom left) center at [-99.192374, 29.6325005] UTM 14 N , EPSG:32614 lon/lat size in degrees: [0.07845227999999338, 0.06757397999999881] requesting 25.324335446353384 m resolution from EarthEngine Earth Engine raster: USGS/3DEP/10m INFO:root:URL for geotiff is: https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/thumbnails/25b194b9a084972a37b5770c4ad5e364-e3833adb15299ab1ca9a0f280301853c:getPixels URL for geotiff is: https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/thumbnails/25b194b9a084972a37b5770c4ad5e364-e3833adb15299ab1ca9a0f280301853c:getPixels INFO:root: geotiff size: 0.27557945251464844 Mb INFO:root: cell size 25.324335446353384 m, upper left corner (x/y): 477642.2908536712 3281780.630492935 geotiff size: 0.27557945251464844 Mb cell size 25.324335446353384 m, upper left corner (x/y): 477642.2908536712 3281780.630492935 Warning 1: PROJ: proj_create_from_database: Open of /usr/local/share/proj failed Warning 1: The definition of projected CRS EPSG:32614 got from GeoTIFF keys is not the same as the one from the EPSG registry, which may cause issues during reprojection operations. Set GTIFF_SRS_SOURCE configuration option to EPSG to use official parameters (overriding the ones from GeoTIFF keys), or to GEOKEYS to use custom values from GeoTIFF keys and drop the EPSG code. ERROR 1: PROJ: proj_create_from_database: Open of /usr/local/share/proj failed

AssertionError Traceback (most recent call last) Cell In[34], line 2 1 # create zipfile under tmp with the STL file of the terrain model ----> 2 totalsize, full_zip_file_name = TouchTerrain.get_zipped_tiles(**args) 3 print("Created zip file", full_zip_file_name, "%.2f" % totalsize, "Mb")

File /TouchTerrain/standalone/touchterrain/common/TouchTerrainEarthEngine.py:902, in get_zipped_tiles(DEM_name, trlat, trlon, bllat, bllon, polygon, polyURL, poly_file, importedDEM, printres, ntilesx, ntilesy, tilewidth, basethick, zscale, fileformat, tile_centered, CPU_cores_to_use, max_cells_for_memory_only, temp_folder, zip_file_name, no_bottom, bottom_image, ignore_leq, lower_leq, unprojected, only, original_query_string, no_normals, projection, use_geo_coords, importedGPX, gpxPathHeight, gpxPixelsBetweenPoints, gpxPathThickness, map_img_filename, smooth_borders, offset_masks_lower, fill_holes, min_elev, **otherargs) 900 if importedGPX != None and importedGPX != []: 901 from touchterrain.common.TouchTerrainGPX import addGPXToModel
--> 902 addGPXToModel(pr, npim, dem, importedGPX, 903 gpxPathHeight, gpxPixelsBetweenPoints, gpxPathThickness, 904 trlat, trlon, bllat, bllon) 906 # clip values? 907 if ignore_leq != None:

File /TouchTerrain/standalone/touchterrain/common/TouchTerrainGPX.py:233, in addGPXToModel(pr, npim, dem, importedGPX, gpxPathHeight, gpxPixelsBetweenPoints, gpxPathThickness, trlat, trlon, bllat, bllon) 231 source = osr.SpatialReference() 232 s_res = source.ImportFromEPSG(4326) # This is WGS84, return of 0 => OK --> 233 if s_res != 0: assert False, "addGPXToMode(): source.ImportFromEPSG(4326) returned error" + str(s_res) 235 for gpxFile in importedGPX: 236 pr(f"process gpx file: {gpxFile}")

AssertionError: addGPXToMode(): source.ImportFromEPSG(4326) returned error6

ChHarding commented 1 year ago

That’s still the same GPX error I think. But now you don’t actually import a GPX file, right? SO I’m guessing it has something to do with the GeoJSON polygon you specified(?) Can you email me the jupyter notebook you’re using?

On Jan 18, 2023, at 19:13, ultrasouls @.**@.>> wrote:

Hmmm. We made progress. I ran it and received the following new errors:

INFO:root:Using GeoJSON polygon for masking with 5 points INFO:root:Log for creating 3D model tile(s) for 10m_-99.19_29.63

INFO:root:DEM_name = USGS/3DEP/10m INFO:root:trlat = 29.66628749 INFO:root:trlon = -99.15314786 INFO:root:bllat = 29.59871351 INFO:root:bllon = -99.23160014 INFO:root:printres = 0.4 INFO:root:ntilesx = 1 INFO:root:ntilesy = 1 INFO:root:tilewidth = 120 INFO:root:basethick = 0 INFO:root:zscale = 1.5 INFO:root:fileformat = STLb INFO:root:no_bottom = False INFO:root:unprojected = False INFO:root:nonormals = True INFO:root: process started: 01:11:24.025569 INFO:root: Region (lat/lon): 29.66628749 -99.15314786 (top right) 29.59871351 -99.23160014 (bottom left) INFO:root:center at [-99.192374, 29.6325005] UTM 14 N , EPSG:32614 INFO:root:lon/lat size in degrees: [0.07845227999999338, 0.06757397999999881] INFO:root:Earth Engine raster: USGS/3DEP/10m Log for creating 3D model tile(s) for 10m-99.19_29.63

DEM_name = USGS/3DEP/10m trlat = 29.66628749 trlon = -99.15314786 bllat = 29.59871351 bllon = -99.23160014 printres = 0.4 ntilesx = 1 ntilesy = 1 tilewidth = 120 basethick = 0 zscale = 1.5 fileformat = STLb no_bottom = False unprojected = False no_normals = True

process started: 01:11:24.025569

Region (lat/lon): 29.66628749 -99.15314786 (top right) 29.59871351 -99.23160014 (bottom left) center at [-99.192374, 29.6325005] UTM 14 N , EPSG:32614 lon/lat size in degrees: [0.07845227999999338, 0.06757397999999881] requesting 25.324335446353384 m resolution from EarthEngine Earth Engine raster: USGS/3DEP/10m INFO:root:URL for geotiff is: https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/thumbnails/25b194b9a084972a37b5770c4ad5e364-e3833adb15299ab1ca9a0f280301853c:getPixels URL for geotiff is: https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/thumbnails/25b194b9a084972a37b5770c4ad5e364-e3833adb15299ab1ca9a0f280301853c:getPixels INFO:root: geotiff size: 0.27557945251464844 Mb INFO:root: cell size 25.324335446353384 m, upper left corner (x/y): 477642.2908536712 3281780.630492935 geotiff size: 0.27557945251464844 Mb cell size 25.324335446353384 m, upper left corner (x/y): 477642.2908536712 3281780.630492935 Warning 1: PROJ: proj_create_from_database: Open of /usr/local/share/proj failed Warning 1: The definition of projected CRS EPSG:32614 got from GeoTIFF keys is not the same as the one from the EPSG registry, which may cause issues during reprojection operations. Set GTIFF_SRS_SOURCE configuration option to EPSG to use official parameters (overriding the ones from GeoTIFF keys), or to GEOKEYS to use custom values from GeoTIFF keys and drop the EPSG code. ERROR 1: PROJ: proj_create_from_database: Open of /usr/local/share/proj failed

AssertionError Traceback (most recent call last) Cell In[34], line 2 1 # create zipfile under tmp with the STL file of the terrain model ----> 2 totalsize, full_zip_file_name = TouchTerrain.get_zipped_tiles(**args) 3 print("Created zip file", full_zip_file_name, "%.2f" % totalsize, "Mb")

File /TouchTerrain/standalone/touchterrain/common/TouchTerrainEarthEngine.py:902, in get_zipped_tiles(DEM_name, trlat, trlon, bllat, bllon, polygon, polyURL, poly_file, importedDEM, printres, ntilesx, ntilesy, tilewidth, basethick, zscale, fileformat, tile_centered, CPU_cores_to_use, max_cells_for_memory_only, temp_folder, zip_file_name, no_bottom, bottom_image, ignore_leq, lower_leq, unprojected, only, original_query_string, no_normals, projection, use_geo_coords, importedGPX, gpxPathHeight, gpxPixelsBetweenPoints, gpxPathThickness, map_img_filename, smooth_borders, offset_masks_lower, fill_holes, min_elev, **otherargs) 900 if importedGPX != None and importedGPX != []: 901 from touchterrain.common.TouchTerrainGPX import addGPXToModel --> 902 addGPXToModel(pr, npim, dem, importedGPX, 903 gpxPathHeight, gpxPixelsBetweenPoints, gpxPathThickness, 904 trlat, trlon, bllat, bllon) 906 # clip values? 907 if ignore_leq != None:

File /TouchTerrain/standalone/touchterrain/common/TouchTerrainGPX.py:233, in addGPXToModel(pr, npim, dem, importedGPX, gpxPathHeight, gpxPixelsBetweenPoints, gpxPathThickness, trlat, trlon, bllat, bllon) 231 source = osr.SpatialReference() 232 s_res = source.ImportFromEPSG(4326) # This is WGS84, return of 0 => OK --> 233 if s_res != 0: assert False, "addGPXToMode(): source.ImportFromEPSG(4326) returned error" + str(s_res) 235 for gpxFile in importedGPX: 236 pr(f"process gpx file: {gpxFile}")

AssertionError: addGPXToMode(): source.ImportFromEPSG(4326) returned error6

— Reply to this email directly, view it on GitHubhttps://github.com/ChHarding/TouchTerrain_jupyter_docker/issues/8#issuecomment-1396315649, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEYDF5I5P7NSNTUCI6HMOGDWTCINBANCNFSM6AAAAAAT4GPQRU. You are receiving this because you commented.Message ID: @.***>

Chris Harding Associate Professor Department of Geological & Atmospheric Sciences Touchterrain.geol.iastate.eduhttp://Touchterrain.geol.iastate.edu

ultrasouls commented 1 year ago

Hey Chris,

This only happens when I am importing a GPX file. Otherwise it works great.

I'll email you a copy of the file in just a minutes.

Thanks so much for the support.

ultrasouls commented 1 year ago

MBTouchTerrain_jupyter_for_starters.zip

Here ya go.

ChHarding commented 1 year ago

So I successfully used your notebook with a gpx path from the gpu-test folder, example_path.gpx and another gpu file from there as I don’t have your Bandera.gpx file. Can you try it with example_path.gpx (or have you already?) Or send me Bandera.gpx and I’ll try it here. BTW I did notice that it will only process the first of the 2 gpx files I gave it but lets make it work for you with one file first.

On Jan 19, 2023, at 08:13, ultrasouls @.**@.>> wrote:

MBTouchTerrain_jupyter_for_starters.ziphttps://github.com/ChHarding/TouchTerrain_jupyter_docker/files/10457483/MBTouchTerrain_jupyter_for_starters.zip

Here ya go.

— Reply to this email directly, view it on GitHubhttps://github.com/ChHarding/TouchTerrain_jupyter_docker/issues/8#issuecomment-1397043132, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEYDF5NAW447EFVEWVDUVM3WTFDYZANCNFSM6AAAAAAT4GPQRU. You are receiving this because you commented.Message ID: @.***>

Chris Harding Associate Professor Department of Geological & Atmospheric Sciences Touchterrain.geol.iastate.eduhttp://Touchterrain.geol.iastate.edu

ChHarding commented 1 year ago

I also just added a line to the run script that will show info about the activate base env. I’ve made a new image but you can just add this line

conda info

after

conda activate base On Jan 22, 2023, at 14:29, Harding, Chris [GE AT] @.**@.>> wrote:

So I successfully used your notebook with a gpx path from the gpu-test folder, example_path.gpx and another gpu file from there as I don’t have your Bandera.gpx file. Can you try it with example_path.gpx (or have you already?) Or send me Bandera.gpx and I’ll try it here. BTW I did notice that it will only process the first of the 2 gpx files I gave it but lets make it work for you with one file first.

On Jan 19, 2023, at 08:13, ultrasouls @.**@.>> wrote:

MBTouchTerrain_jupyter_for_starters.ziphttps://github.com/ChHarding/TouchTerrain_jupyter_docker/files/10457483/MBTouchTerrain_jupyter_for_starters.zip

Here ya go.

— Reply to this email directly, view it on GitHubhttps://github.com/ChHarding/TouchTerrain_jupyter_docker/issues/8#issuecomment-1397043132, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEYDF5NAW447EFVEWVDUVM3WTFDYZANCNFSM6AAAAAAT4GPQRU. You are receiving this because you commented.Message ID: @.***>

Chris Harding Associate Professor Department of Geological & Atmospheric Sciences Touchterrain.geol.iastate.eduhttp://touchterrain.geol.iastate.edu/

Chris Harding Associate Professor Department of Geological & Atmospheric Sciences Touchterrain.geol.iastate.eduhttp://Touchterrain.geol.iastate.edu

ultrasouls commented 1 year ago

Thanks so much for all of your help. As I was getting ready to make the changes I realized that when I run the ./run_touchterrain.sh command I get the following error from the conda activate base line.

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. To initialize your shell, run

$ conda init <SHELL_NAME>

Currently supported shells are:

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'.

I spent about 30 mins and looked at several forums to resolve this error but couldn't get it to work. Sorry, I have a fair knowledge of linux and python, but I wasn't able to resolve this issue.

ChHarding commented 1 year ago

I’ve also only been able to stitch this together after reading a lot of esoteric forum posts but as I understand it, before jupyter notebook is run the bas conda env needs to be activated with

conda activate base

But, conda is apparently set up in a way that conda is set up is that activate only works if it’s been “prepared” with

source /usr/local/etc/profile.d/conda.sh

If you look into that shell script you all see how it sets up all conda “verbs’ that way.

So try this:

Run the install script, then type in these:

source /usr/local/etc/profile.d/conda.sh # inits conda commands for bash conda activate base conda info cd /TouchTerrain/standalone jupyter notebook --ip 0.0.0.0 --port 8888 --no-browser --allow-root

I’m particularly interested if source /usr/local/etc/profile.d/conda.sh works for you. If it does, the rest should also work.

Cheers

Chris

On Jan 23, 2023, at 12:33, ultrasouls @.**@.>> wrote:

Thanks so much for all of your help. As I was getting ready to make the changes I realized that when I run the ./run_touchterrain.sh command I get the following error from the conda activate base line.

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. To initialize your shell, run

$ conda init

Currently supported shells are:

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'.

I spent about 30 mins and looked at several forums to resolve this error but couldn't get it to work. Sorry, I have a fair knowledge of linux and python, but I wasn't able to resolve this issue.

— Reply to this email directly, view it on GitHubhttps://github.com/ChHarding/TouchTerrain_jupyter_docker/issues/8#issuecomment-1400797477, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEYDF5MY7DBCKTOY57LNSNDWT3FHTANCNFSM6AAAAAAT4GPQRU. You are receiving this because you commented.Message ID: @.***>

Chris Harding Associate Professor Department of Geological & Atmospheric Sciences Touchterrain.geol.iastate.eduhttp://Touchterrain.geol.iastate.edu

ultrasouls commented 1 year ago

No joy.

source /usr/local/etc/profile.d/conda.sh

/bin/sh: 1: source: not found

ChHarding commented 1 year ago

Try this before your for the source

bash (return)

On Jan 23, 2023, at 14:40, ultrasouls @.**@.>> wrote:

No joy.

source /usr/local/etc/profile.d/conda.sh

/bin/sh: 1: source: not found

— Reply to this email directly, view it on GitHubhttps://github.com/ChHarding/TouchTerrain_jupyter_docker/issues/8#issuecomment-1400950768, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEYDF5NS5AJNRGKMMLUHDJ3WT3UEZANCNFSM6AAAAAAT4GPQRU. You are receiving this because you commented.Message ID: @.***>

Chris Harding Associate Professor Department of Geological & Atmospheric Sciences Touchterrain.geol.iastate.eduhttp://Touchterrain.geol.iastate.edu

ultrasouls commented 1 year ago

Thanks so much! It worked. I really appreciate your help.

I was able to generate a model with the gpx incorporated into it. The thing I was doing wrong was not going into bash...

I did the following in the CLI:

bash conda activate base conda init ./run_touchterrain.sh

ChHarding commented 1 year ago

Cool! I hopefully just fixed this by making the run script spawn a bash shell and then run the rest:

[cid:4CF8E69F-E8FF-44D6-B148-3129FD265CF5]

Just add #! /bin/bash in your script and it should work even if you’ve not manually starting bash first.

So can I ask what the gpx tracks are form and what the project is about?

Cheers

Chris

On Jan 23, 2023, at 16:08, ultrasouls @.**@.>> wrote:

Thanks so much! It worked. I really appreciate your help.

I was able to generate a model with the gpx incorporated into it. The thing I was doing wrong was not going into bash...

I did the following in the CLI:

bash conda activate base conda init ./run_touchterrain.sh

— Reply to this email directly, view it on GitHubhttps://github.com/ChHarding/TouchTerrain_jupyter_docker/issues/8#issuecomment-1401062425, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEYDF5O7TAKQUC36HVXJLVTWT36O7ANCNFSM6AAAAAAT4GPQRU. You are receiving this because you commented.Message ID: @.***>

Chris Harding Associate Professor Department of Geological & Atmospheric Sciences Touchterrain.geol.iastate.eduhttp://Touchterrain.geol.iastate.edu

ultrasouls commented 1 year ago

Great work. I'll download the new load and test it in the next few days.

I really do appreciate all the help.