Hello,
I would like to run the field-delineation project. While doing so, I’m getting into the following error where converting tiff files to eopatches:
2023-05-09 11:18:46,915 rasterio._filepath ERROR File-like object not found in virtual filesystem: b’29a650e4-51a0-43dc-9539-84777b3482ef/29a650e4-51a0-43dc-9539-84777b3482ef.hdr’
2023-05-09 11:18:46,916 rasterio._env INFO GDAL signalled an error: err_no=4, msg=“`/vsipythonfilelike/29a650e4-51a0-43dc-9539-84777b3482ef/29a650e4-51a0-43dc-9539-84777b3482ef’ not recognized as a supported file format.”
rokenProcessPool Traceback (most recent call last)
Cell In[67], line 1
----> 1 convert_tiff_to_eopatches(tiffs_to_eop_config)
File ~/.local/lib/python3.10/site-packages/fd-1.0.0-py3.10.egg/fd/scripts/tiffs_to_eopatches.py:71, in convert_tiff_to_eopatches(config)
68 executor = EOExecutor(workflow, exec_args, save_logs=True, logs_folder=‘.’)
70 LOGGER.info(‘Execute conversion’)
—> 71 executor.run(workers=config[‘max_workers’])
73 executor.make_report()
74 LOGGER.info(f’Report was saved to location: {executor.get_report_filename()}')
File ~/.local/lib/python3.10/site-packages/eolearn/core/eoexecution.py:150, in EOExecutor.run(self, workers, multiprocess, return_results)
147 processing_type = ‘multithreading’
149 with pool_executor_class(max_workers=workers) as executor:
→ 150 self.execution_stats = list(tqdm(executor.map(self._execute_workflow, processing_args),
151 total=len(processing_args)))
153 self.general_stats = self._prepare_general_stats(workers, processing_type)
155 self.execution_logs = [None] * execution_num
File ~/.local/lib/python3.10/site-packages/tqdm/notebook.py:254, in tqdm_notebook.iter(self)
252 try:
253 it = super(tqdm_notebook, self).iter()
→ 254 for obj in it:
255 # return super(tqdm…) will not catch exception
256 yield obj
257 # NB: except … [ as …] breaks IPython async KeyboardInterrupt
File ~/.local/lib/python3.10/site-packages/tqdm/std.py:1178, in tqdm.iter(self)
1175 time = self._time
1177 try:
→ 1178 for obj in iterable:
1179 yield obj
1180 # Update and possibly print the progressbar.
1181 # Note: does not call self.update(1) for speed optimisation.
File /usr/lib/python3.10/concurrent/futures/process.py:570, in _chain_from_iterable_of_lists(iterable)
564 def _chain_from_iterable_of_lists(iterable):
565 “”"
566 Specialized implementation of itertools.chain.from_iterable.
567 Each item in iterable should be a list. This function is
568 careful not to keep references to yielded objects.
569 “”"
→ 570 for element in iterable:
571 element.reverse()
572 while element:
File /usr/lib/python3.10/concurrent/futures/_base.py:621, in Executor.map..result_iterator()
618 while fs:
619 # Careful not to keep a reference to the popped future
620 if timeout is None:
→ 621 yield _result_or_cancel(fs.pop())
622 else:
623 yield _result_or_cancel(fs.pop(), end_time - time.monotonic())
File /usr/lib/python3.10/concurrent/futures/_base.py:319, in _result_or_cancel(failed resolving arguments)
317 try:
318 try:
→ 319 return fut.result(timeout)
320 finally:
321 fut.cancel()
File /usr/lib/python3.10/concurrent/futures/_base.py:458, in Future.result(self, timeout)
456 raise CancelledError()
457 elif self._state == FINISHED:
→ 458 return self.__get_result()
459 else:
460 raise TimeoutError()
File /usr/lib/python3.10/concurrent/futures/_base.py:403, in Future.__get_result(self)
401 if self._exception:
402 try:
→ 403 raise self._exception
404 finally:
405 # Break a reference cycle with the exception in self._exception
406 self = None
BrokenProcessPool: A process in the process pool was terminated abruptly while the future was running or pending.
Could you provide any suggestions on what might not be set up appropriately? I’ve downloaded the images with Processing API and reading them locally.
Thanks!