Bug 911384 - [abrt] gdal-python-1.9.1-10.fc17: gdal_polygonize.py:181:<module>:AttributeError: 'NoneType' object has no attribute 'CreateLayer'
Summary: [abrt] gdal-python-1.9.1-10.fc17: gdal_polygonize.py:181:<module>:AttributeEr...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: gdal
Version: 17
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Devrim Gündüz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1d11b112dad4299a6fccfb7bd29...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-14 21:25 UTC by michelenani
Modified: 2013-05-04 09:52 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-04 09:52:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: executable (27 bytes, text/plain)
2013-02-14 21:25 UTC, michelenani
no flags Details
File: environ (2.04 KB, text/plain)
2013-02-14 21:25 UTC, michelenani
no flags Details
File: smolt_data (3.02 KB, text/plain)
2013-02-14 21:25 UTC, michelenani
no flags Details
File: core_backtrace (84 bytes, text/plain)
2013-02-14 21:25 UTC, michelenani
no flags Details

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?


Note You need to log in before you can comment on or make changes to this bug.