'._flat_region_mask.tif' file in SWY?

Hello everyone, i am receiving an error when running the SWY model. I got FileNotFoundError: [Errno 2] No such file or directory: ‘._flat_region_mask.tif’ and i don’t know how to fix it. I would like some help.

Here are my error report

01/06/2024 18:57:54 taskgraph.Task ERROR Something went wrong when adding task fill dem pits (1), terminating taskgraph.
Traceback (most recent call last):
File “taskgraph/Task.py”, line 674, in add_task
File “taskgraph/Task.py”, line 1093, in _call
File “src/pygeoprocessing/routing/routing.pyx”, line 1058, in pygeoprocessing.routing.routing.fill_pits
File “shutil.py”, line 725, in rmtree
File “shutil.py”, line 681, in _rmtree_safe_fd
File “shutil.py”, line 679, in _rmtree_safe_fd
FileNotFoundError: [Errno 2] No such file or directory: ‘._flat_region_mask.tif’
01/06/2024 18:57:54 natcap.invest.utils ERROR Exception while executing natcap.invest.seasonal_water_yield.seasonal_water_yield
Traceback (most recent call last):
File “natcap/invest/utils.py”, line 164, in prepare_workspace
File “invest/cli.py”, line 469, in main
File “natcap/invest/seasonal_water_yield/seasonal_water_yield.py”, line 546, in execute
File “natcap/invest/seasonal_water_yield/seasonal_water_yield.py”, line 704, in _execute
File “taskgraph/Task.py”, line 674, in add_task
File “taskgraph/Task.py”, line 1093, in _call
File “src/pygeoprocessing/routing/routing.pyx”, line 1058, in pygeoprocessing.routing.routing.fill_pits
File “shutil.py”, line 725, in rmtree
File “shutil.py”, line 681, in _rmtree_safe_fd
File “shutil.py”, line 679, in _rmtree_safe_fd
FileNotFoundError: [Errno 2] No such file or directory: ‘._flat_region_mask.tif’

THANK YOU FOR HELP

Hello @Minhthu -

One quick idea is to ask if your Workspace is on a local hard drive or the cloud (OneDrive, Dropbox, etc). If the cloud, then you might have problems like this, try moving everything to a local drive.

If this is not the problem, please post the entire logfile (ends in .txt) that is created in your Workspace, which often has additional information that helps us debug - thanks!

~ Stacie

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.