TouchTerrain_jupyter_docker
TouchTerrain_jupyter_docker copied to clipboard
No Module Named gdal
When running TouchTerrain_jupyter_starters_binder
I get to the section that says
# import packages
import os.path
from glob import glob
import k3d
from random import randint
from shutil import rmtree
import zipfile
from geojson import Polygon
import geemap
from touchterrain.common import TouchTerrainEarthEngine as TouchTerrain
from touchterrain.common.TouchTerrainGPX import *
args = TouchTerrain.initial_args # default args
and I get the error
ModuleNotFoundError Traceback (most recent call last)
File /TouchTerrain/standalone/touchterrain/common/TouchTerrainEarthEngine.py:52
51 try:
---> 52 import gdal
53 except ImportError as err:
ModuleNotFoundError: No module named 'gdal'
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last)
File /usr/local/lib/python3.10/site-packages/osgeo/__init__.py:30, in swig_import_helper()
29 try:
---> 30 return importlib.import_module(mname)
31 except ImportError:
File /usr/local/lib/python3.10/importlib/__init__.py:126, in import_module(name, package)
125 level += 1
--> 126 return _bootstrap._gcd_import(name[level:], package, level)
File <frozen importlib._bootstrap>:1050, in _gcd_import(name, package, level)
File <frozen importlib._bootstrap>:1027, in _find_and_load(name, import_)
File <frozen importlib._bootstrap>:1006, in _find_and_load_unlocked(name, import_)
File <frozen importlib._bootstrap>:674, in _load_unlocked(spec)
File <frozen importlib._bootstrap>:571, in module_from_spec(spec)
File <frozen importlib._bootstrap_external>:1176, in create_module(self, spec)
File <frozen importlib._bootstrap>:241, in _call_with_frames_removed(f, *args, **kwds)
ImportError: /lib/x86_64-linux-gnu/libz.so.1: version `ZLIB_1.2.9' not found (required by /usr/local/lib/python3.10/site-packages/osgeo/../../.././libpng16.so.16)
During handling of the above exception, another exception occurred:
ModuleNotFoundError Traceback (most recent call last)
Cell In[5], line 10
8 from geojson import Polygon
9 import geemap
---> 10 from touchterrain.common import TouchTerrainEarthEngine as TouchTerrain
11 from touchterrain.common.TouchTerrainGPX import *
12 args = TouchTerrain.initial_args # default args
File /TouchTerrain/standalone/touchterrain/common/TouchTerrainEarthEngine.py:54
52 import gdal
53 except ImportError as err:
---> 54 from osgeo import gdal
56 import time
57 import random
File /usr/local/lib/python3.10/site-packages/osgeo/__init__.py:46
42 raise ImportError(traceback_string + '\n' + msg)
43 return importlib.import_module('_gdal')
---> 46 _gdal = swig_import_helper()
47 del swig_import_helper
49 __version__ = _gdal.__version__ = _gdal.VersionInfo("RELEASE_NAME")
File /usr/local/lib/python3.10/site-packages/osgeo/__init__.py:43, in swig_import_helper()
41 traceback_string = ''.join(traceback.format_exception(*sys.exc_info()))
42 raise ImportError(traceback_string + '\n' + msg)
---> 43 return importlib.import_module('_gdal')
File /usr/local/lib/python3.10/importlib/__init__.py:126, in import_module(name, package)
124 break
125 level += 1
--> 126 return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_gdal'
Sorry for another bug, I'm just trying to get things working locally :-(
I’m rebuilding the dicker image right now, maybe that fixes this issue.
On Dec 7, 2022, at 13:12, Matt Hunt @.@.>> wrote:
When running ``
I get to the section that says
import packages
import os.path from glob import glob import k3d from random import randint from shutil import rmtree import zipfile from geojson import Polygon import geemap from touchterrain.common import TouchTerrainEarthEngine as TouchTerrain from touchterrain.common.TouchTerrainGPX import * args = TouchTerrain.initial_args # default args
and I get the error
ModuleNotFoundError Traceback (most recent call last) File /TouchTerrain/standalone/touchterrain/common/TouchTerrainEarthEngine.py:52 51 try: ---> 52 import gdal 53 except ImportError as err:
ModuleNotFoundError: No module named 'gdal'
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last) File /usr/local/lib/python3.10/site-packages/osgeo/init.py:30, in swig_import_helper() 29 try: ---> 30 return importlib.import_module(mname) 31 except ImportError:
File /usr/local/lib/python3.10/importlib/init.py:126, in import_module(name, package) 125 level += 1 --> 126 return _bootstrap._gcd_import(name[level:], package, level)
File
File
File
File
File
File
File
ImportError: /lib/x86_64-linux-gnu/libz.so.1: version `ZLIB_1.2.9' not found (required by /usr/local/lib/python3.10/site-packages/osgeo/../../.././libpng16.so.16)
During handling of the above exception, another exception occurred:
ModuleNotFoundError Traceback (most recent call last) Cell In[5], line 10 8 from geojson import Polygon 9 import geemap ---> 10 from touchterrain.common import TouchTerrainEarthEngine as TouchTerrain 11 from touchterrain.common.TouchTerrainGPX import * 12 args = TouchTerrain.initial_args # default args
File /TouchTerrain/standalone/touchterrain/common/TouchTerrainEarthEngine.py:54 52 import gdal 53 except ImportError as err: ---> 54 from osgeo import gdal 56 import time 57 import random
File /usr/local/lib/python3.10/site-packages/osgeo/init.py:46 42 raise ImportError(traceback_string + '\n' + msg) 43 return importlib.import_module('_gdal') ---> 46 _gdal = swig_import_helper() 47 del swig_import_helper 49 version = _gdal.version = _gdal.VersionInfo("RELEASE_NAME")
File /usr/local/lib/python3.10/site-packages/osgeo/init.py:43, in swig_import_helper() 41 traceback_string = ''.join(traceback.format_exception(*sys.exc_info())) 42 raise ImportError(traceback_string + '\n' + msg) ---> 43 return importlib.import_module('_gdal')
File /usr/local/lib/python3.10/importlib/init.py:126, in import_module(name, package) 124 break 125 level += 1 --> 126 return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_gdal'
— Reply to this email directly, view it on GitHubhttps://github.com/ChHarding/TouchTerrain_jupyter_docker/issues/6, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEYDF5LATXKQGRSGA7NHBZDWMDOS7ANCNFSM6AAAAAASXGJU24. 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
Any luck rebuilding the image, I noticed that it wasn't updated on docker hub yet
No, soon, it’s giving me some error sqlite3 that I don’t understand. I’ve ask our IT guys for help. While this is going on, would using a jupyter notebook on colab be an alternative?
It’s described here: https://github.com/ChHarding/TouchTerrain_for_CAGEO (which I just updated) the notebook is this: http://colab.research.google.com/github/ChHarding/TouchTerrain_for_CAGEO/blob/master/TouchTerrain_jupyter_starters_colab.ipynb
On Dec 8, 2022, at 09:25, Matt Hunt @.@.>> wrote:
Any luck rebuilding the image, I noticed that it wasn't updated on docker hub yet
— Reply to this email directly, view it on GitHubhttps://github.com/ChHarding/TouchTerrain_jupyter_docker/issues/6#issuecomment-1342899397, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEYDF5IX4E277C2VLKQ4OWLWMH4VTANCNFSM6AAAAAASXGJU24. 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
Matt,
I managed to rebuild the image and have run a quick test. The only thing I cannot get to work is the k3D based preview of the STL, but that should not be vital. See if that works for you.
Cheers
Chris
On Dec 8, 2022, at 11:35, Harding, Chris [GE AT] @.@.>> wrote:
No, soon, it’s giving me some error sqlite3 that I don’t understand. I’ve ask our IT guys for help. While this is going on, would using a jupyter notebook on colab be an alternative?
It’s described here: https://github.com/ChHarding/TouchTerrain_for_CAGEO (which I just updated) the notebook is this: http://colab.research.google.com/github/ChHarding/TouchTerrain_for_CAGEO/blob/master/TouchTerrain_jupyter_starters_colab.ipynb
On Dec 8, 2022, at 09:25, Matt Hunt @.@.>> wrote:
Any luck rebuilding the image, I noticed that it wasn't updated on docker hub yet
— Reply to this email directly, view it on GitHubhttps://github.com/ChHarding/TouchTerrain_jupyter_docker/issues/6#issuecomment-1342899397, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEYDF5IX4E277C2VLKQ4OWLWMH4VTANCNFSM6AAAAAASXGJU24. 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