Bug 911384

Summary: [abrt] gdal-python-1.9.1-10.fc17: gdal_polygonize.py:181:<module>:AttributeError: 'NoneType' object has no attribute 'CreateLayer'
Product: [Fedora] Fedora Reporter: michelenani
Component: gdalAssignee: Devrim Gündüz <devrim>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: alex, cristian.balint, devrim, mmahut, pavel.lisy, pertusus, sven, volker27
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:1d11b112dad4299a6fccfb7bd29026581e9504dd
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-04 09:52:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: executable
none
File: environ
none
File: smolt_data
none
File: core_backtrace none

Description michelenani 2013-02-14 21:25:32 UTC
Version-Release number of selected component:
gdal-python-1.9.1-10.fc17

Additional info:
libreport version: 2.0.18
abrt_version:   2.0.18
cmdline:        python /usr/bin/gdal_polygonize.py '/home/michele/Documenti/1ricerca/mappe (bis)/Copparese/frazioni copparo pre1910 (rielaborato)_modificato.tif' ''
kernel:         3.7.3-101.fc17.i686.PAE

backtrace:
:gdal_polygonize.py:181:<module>:AttributeError: 'NoneType' object has no attribute 'CreateLayer'
:
:Traceback (most recent call last):
:  File "/usr/bin/gdal_polygonize.py", line 181, in <module>
:    dst_layer = dst_ds.CreateLayer(dst_layername, srs = srs )
:AttributeError: 'NoneType' object has no attribute 'CreateLayer'
:
:Local variables in innermost frame:
:maskband: <osgeo.gdal.Band; proxy of <Swig Object of type 'GDALRasterBandShadow *' at 0x98414e8> >
:dst_filename: ''
:osr: <module 'osgeo.osr' from '/usr/lib/python2.7/site-packages/osgeo/osr.pyc'>
:dst_fieldname: None
:srcband: <osgeo.gdal.Band; proxy of <Swig Object of type 'GDALRasterBandShadow *' at 0x9828fe0> >
:arg: ''
:Usage: <function Usage at 0x986379c>
:drv: <osgeo.ogr.Driver; proxy of <Swig Object of type 'OGRDriverShadow *' at 0x9858080> >
:dst_field: -1
:dst_ds: None
:src_filename: '/home/michele/Documenti/1ricerca/mappe (bis)/Copparese/frazioni copparo pre1910 (rielaborato)_modificato.tif'
:__package__: None
:quiet_flag: 0
:__doc__: None
:format: 'GML'
:__builtins__: <module '__builtin__' (built-in)>
:__file__: '/usr/bin/gdal_polygonize.py'
:dst_layername: 'out'
:argv: ['/usr/bin/gdal_polygonize.py', '/home/michele/Documenti/1ricerca/mappe (bis)/Copparese/frazioni copparo pre1910 (rielaborato)_modificato.tif', '']
:ogr: <module 'osgeo.ogr' from '/usr/lib/python2.7/site-packages/osgeo/ogr.pyc'>
:sys: <module 'sys' (built-in)>
:src_ds: <osgeo.gdal.Dataset; proxy of <Swig Object of type 'GDALDatasetShadow *' at 0x9828710> >
:__name__: '__main__'
:gdal: <module 'osgeo.gdal' from '/usr/lib/python2.7/site-packages/osgeo/gdal.pyc'>
:i: 3
:mask: 'default'
:src_band_n: 1
:srs: None
:dst_layer: None
:os: <module 'os' from '/usr/lib/python2.7/os.pyc'>
:options: []

Comment 1 michelenani 2013-02-14 21:25:36 UTC
Created attachment 697410 [details]
File: executable

Comment 2 michelenani 2013-02-14 21:25:38 UTC
Created attachment 697411 [details]
File: environ

Comment 3 michelenani 2013-02-14 21:25:41 UTC
Created attachment 697412 [details]
File: smolt_data

Comment 4 michelenani 2013-02-14 21:25:43 UTC
Created attachment 697413 [details]
File: core_backtrace

Comment 5 Volker Fröhlich 2013-02-17 16:05:32 UTC
Why is the second argument of your command empty? I can reproduce this behaviour, but the second argument should certainly not be empty.

Anyway, the error is not handled properly. Can you file an upstream ticket?