Have you seen this weird error before?
See original GitHub issue`--------------------------------------------------------------------------- IndexError Traceback (most recent call last) <ipython-input-2-bda6c4325f04> in <module> 1 from geetools import ui 2 ----> 3 Map = ui.Map() 4 Map.show()
~/anaconda3/lib/python3.7/site-packages/geetools/ui/ipymap.py in init(self, tabs, **kwargs) 79 80 # Asset Manager Widget —> 81 asset_manager = ipytools.AssetManager(self) 82 83 # Layers
~/anaconda3/lib/python3.7/site-packages/geetools/ui/ipytools.py in init(self, map, **kwargs) 310 # Thumb height 311 self.thumb_height = kwargs.get(‘thumb_height’, 300) –> 312 self.root_path = ee.data.getAssetRoots()[0][‘id’] 313 314 # Map
IndexError: list index out of range`
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (6 by maintainers)
Top GitHub Comments
Just for anybody who comes up with this error (like 5 students of mine). If print(ee.data.getAssetRoots()) returns [] or ipygee Map show fails, then go to the javascript web earth engine console, click on the asset tab (on the right) and make sure your asset folder exists (e.g. user/yourname/)
this issue il live and kicking and should not be closed
the solution proposed by @torresrua is not working in my context. I have
print(ee.data.getAssetRoots())
correctly returning list of length 1 in web editor, butee.data.getAssetRoots()
returns[]
in python API, and apparently there no issue with credential permissions.