Opened 8 years ago

Closed 8 years ago

Last modified 8 years 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


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 by Even Rouault, 8 years ago

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 by Even Rouault, 8 years ago

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

Note: See TracTickets for help on using tickets.