<div dir="ltr">Hi,<div><br></div><div>I'm just reporting an error with gdal2tiles when running with the --exclude argument and with the output directory being set to a google bucket using /vsigs/.</div><div>It appears that the absence of a blank tile causes the upload to fail. The command works fine without --exclude. Full error below the mail.</div><div><br></div><div>Thanks,</div><div><br></div><div>Martin</div><div><br></div><div><br></div><div>Version</div><div>GDAL 3.10.1, released 2025/01/08</div><div><br></div><div>Error:</div><div>multiprocessing.pool.RemoteTraceback:<br>"""<br>Traceback (most recent call last):<br>  File "/usr/lib/python3.12/multiprocessing/pool.py", line 125, in worker<br>    result = (True, func(*args, **kwds))<br>                    ^^^^^^^^^^^^^^^^^^^<br>  File "/usr/lib/python3.12/site-packages/osgeo_utils/gdal2tiles.py", line 1574, in create_overview_tile<br>    if not isfile(base_tile_path):<br>           ^^^^^^^^^^^^^^^^^^^^^^<br>  File "/usr/lib/python3.12/site-packages/osgeo_utils/gdal2tiles.py", line 95, in isfile<br>    return stat.S_ISREG(stat_res.mode)<br>                        ^^^^^^^^^^^^^<br>AttributeError: 'NoneType' object has no attribute 'mode'<br>"""<br><br>The above exception was the direct cause of the following exception:<br><br>Traceback (most recent call last):<br>  File "/usr/bin/gdal2tiles", line 33, in <module><br>    sys.exit(load_entry_point('GDAL==3.10.1', 'console_scripts', 'gdal2tiles')())<br>             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>  File "/usr/lib/python3.12/site-packages/osgeo_utils/gdal2tiles.py", line 4676, in main<br>    return submain(argv, called_from_main=called_from_main)<br>           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>  File "/usr/lib/python3.12/site-packages/osgeo_utils/auxiliary/util.py", line 46, in enable_exceptions_wrapper<br>    return fun(*args, **kwargs)<br>           ^^^^^^^^^^^^^^^^^^^^<br>  File "/usr/lib/python3.12/site-packages/osgeo_utils/gdal2tiles.py", line 4706, in submain<br>    multi_threaded_tiling(input_file, output_folder, options, pool)<br>  File "/usr/lib/python3.12/site-packages/osgeo_utils/auxiliary/util.py", line 46, in enable_exceptions_wrapper<br>    return fun(*args, **kwargs)<br>           ^^^^^^^^^^^^^^^^^^^^<br>  File "/usr/lib/python3.12/site-packages/osgeo_utils/gdal2tiles.py", line 4618, in multi_threaded_tiling<br>    for _ in pool.imap_unordered(<br>             ^^^^^^^^^^^^^^^^^^^^<br>  File "/usr/lib/python3.12/multiprocessing/pool.py", line 873, in next<br>    raise value<br>AttributeError: 'NoneType' object has no attribute 'mode'</div></div>