Hi, In ogr.py, the FeatureDefn constructor use an undeclared "name" attribute : class FeatureDefn: def __init__(self,obj=None): if obj is None: self._o = _gdal.OGR_FD_Create( name ) else: self._o = obj Regards, Julien