sepal-contrib / sdg_15.3.1

monitor SDG indicators at plot level
MIT License
3 stars 3 forks source link

OSError (load error) #128

Closed Kinga-11 closed 5 months ago

Kinga-11 commented 6 months ago

When I try to run SDG 15.3.1 I have a OSError: OSError Traceback (most recent call last) Cell In[4], line 1 ----> 1 aoi_tile = aoi.AoiTile(methods=["-POINTS"])

File /usr/local/share/jupyter/kernels/venv-sdg_15.3.1/venv/lib/python3.10/site-packages/sepal_ui/aoi/aoi_tile.py:51, in AoiTile.init(self, methods, gee, vector, admin, asset, folder, mapstyle, **kwargs) 47 self.map.dc.hide() 49 # create the view 50 # the view include the model ---> 51 self.view = AoiView( 52 methods=methods, 53 map=self.map, 54 gee=gee, 55 vector=vector, 56 admin=admin, 57 asset=asset, 58 folder=folder, 59 map_style=map_style, 60 **kwargs 61 ) 62 self.view.elevation = 0 64 # organise them in a layout

File /usr/local/share/jupyter/kernels/venv-sdg_15.3.1/venv/lib/python3.10/site-packages/sepal_ui/aoi/aoiview.py:285, in AoiView.init(self, methods, map, gee, folder, model, map_style, **kwargs) 283 self.w_admin_1 = AdminField(1, self.w_admin_0, gee=gee) 284 self.w_admin_2 = AdminField(2, self.w_admin_1, gee=gee) --> 285 self.w_vector = sw.VectorField(label=ms.aoi_sel.vector) 286 self.w_points = sw.LoadTableField(label=ms.aoi_sel.points) 288 # group them together with the same key as the select_method object

File /usr/local/share/jupyter/kernels/venv-sdg_15.3.1/venv/lib/python3.10/site-packages/sepal_ui/sepalwidgets/inputs.py:934, in VectorField.init(self, label, gee, **kwargs) 932 # set the 3 wigets 933 if not gee: --> 934 self.w_file = FileInput([".shp", ".geojson", ".gpkg", ".kml"], label=label) 935 else: 936 # Don't care about 'types' arg. It will only work with tables. 937 asset_select_kwargs = {"folder": kwargs.pop("folder", None)}

File /usr/local/share/jupyter/kernels/venv-sdg_15.3.1/venv/lib/python3.10/site-packages/sepal_ui/sepalwidgets/inputs.py:268, in FileInput.init(self, extensions, folder, label, v_model, clearable, root, cache, **kwargs) 254 p_style = json.loads((ss.JSON_DIR / "progress_bar.json").read_text()) 255 self.loading = v.ProgressLinear( 256 indeterminate=False, 257 background_color=color.menu, 258 color=p_style["color"][v.theme.dark], 259 ) 261 self.file_list = v.List( 262 dense=True, 263 color=color.menu, 264 flat=True, 265 v_model=True, 266 maxheight="300px", 267 style="overflow: auto;", --> 268 children=[v.ListItemGroup(children=self._get_items(), v_model="")], 269 ) 271 self.file_menu = v.Menu( 272 min_width="400px", 273 max_width="400px", (...) 288 ], 289 ) 291 self.reload = v.Btn( 292 icon=True, 293 color="primary", 294 children=[v.Icon(children=["fa-solid fa-sync-alt"])], 295 )

File /usr/local/share/jupyter/kernels/venv-sdg_15.3.1/venv/lib/python3.10/site-packages/sepal_ui/sepalwidgets/inputs.py:411, in FileInput._get_items(self) 408 list_dir = [el for el in folder.glob("*") if not el.name.startswith(".")] 410 if self.extensions: --> 411 list_dir = [ 412 el for el in list_dir if el.is_dir() or el.suffix in self.extensions 413 ] 415 if folder in self.cache_dirs: 416 if self.cache_dirs[folder]["files"] == list_dir:

File /usr/local/share/jupyter/kernels/venv-sdg_15.3.1/venv/lib/python3.10/site-packages/sepal_ui/sepalwidgets/inputs.py:412, in (.0) 408 list_dir = [el for el in folder.glob("*") if not el.name.startswith(".")] 410 if self.extensions: 411 list_dir = [ --> 412 el for el in list_dir if el.is_dir() or el.suffix in self.extensions 413 ] 415 if folder in self.cache_dirs: 416 if self.cache_dirs[folder]["files"] == list_dir:

File /usr/lib/python3.10/pathlib.py:1305, in Path.is_dir(self) 1301 """ 1302 Whether this path is a directory. 1303 """ 1304 try: -> 1305 return S_ISDIR(self.stat().st_mode) 1306 except OSError as e: 1307 if not _ignore_error(e):

File /usr/lib/python3.10/pathlib.py:1097, in Path.stat(self, follow_symlinks) 1092 def stat(self, *, follow_symlinks=True): 1093 """ 1094 Return the result of the stat() system call on this path, like 1095 os.stat() does. 1096 """ -> 1097 return self._accessor.stat(self, follow_symlinks=follow_symlinks)

OSError: [Errno 116] Stale file handle: '/home/sepal-user/tmp' Sepal_error.pdf

dfguerrerom commented 5 months ago

Can you try to stop and to start a new sepal instance and then try it again? Please let us know how it goes.

Kinga-11 commented 5 months ago

Hello! Thank you for your prompt suggestion. I followed your advice and stopped the current SEPAL instance, started a new one, and retried the process. Now it is working. Thanks again for your assistance! Best regards,Kinga Ivan

On Thursday, January 4, 2024 at 03:21:24 PM GMT+2, Daniel Guerrero ***@***.***> wrote:  

Can you try to stop and to start a new sepal instance and then try it again? Please let us know how it goes.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>