clluiz

Problem with inheritance

Discussion created by clluiz on Dec 8, 2017
Latest reply on Dec 8, 2017 by clluiz

Hi everyone. I'm facing a problem trying to extend the FieldMappings class:

 

class FeatureFields(FieldMappings):

def __init__(self, feature):
super(FieldMappings, self).__init__()

 

When I try do call the constrcutor:

 

f = FeatureFields(feature)

 

The terminal give the following errors:

 

super(FieldMappings, self).__init__()
File "C:\Program Files (x86)\ArcGIS\Desktop10.3\arcpy\arcpy\arcobjects\mixins.py", line 960, in __init__
_BaseArcObject.__init__(self)
File "C:\Program Files (x86)\ArcGIS\Desktop10.3\arcpy\arcpy\arcobjects\_base.py", line 47, in __init__
for arg in args))
RuntimeError: Object: CreateObject FeatureFields not valid

 

What I'm doing wrong?

Outcomes