Opened 13 months ago

Closed 13 months ago

Last modified 13 months ago

#6545 closed defect (fixed)

GDALOpen() does not indicate the failed file if it does not exist

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 2.1.1
Component: default Version: 2.1.0
Severity: normal Keywords:
Cc: warmerdam

Description

On Unix, since GDAL 2.1, GDALOpen() does not report the file that fails in some contexts, such as when it does not exist:

>>> from osgeo import gdal
>>> x = gdal.Open('/abc/def')

ERROR 4: No such file or directory

In a context such as a VRT it is particularly unobvious what file or directory does not exist.

Change History (2)

comment:1 Changed 13 months ago by Even Rouault

Milestone: 2.1.1
Resolution: fixed
Status: newclosed

trunk r34352, branches/2.1 r34353 "Unix filesystem: make error message about failed open to report the filename (#6545)"

comment:2 Changed 13 months ago by Even Rouault

trunk r34354, branches/2.1 r34355 "Fix VSIErrorV() buffer reallocation that caused a crash in tiff_write.py after r34352 (#6545)"

Note: See TracTickets for help on using tickets.