error in arcpy sourcecode?

450
2
01-29-2014 04:58 AM
BirteHegemann
New Contributor
Trying to create any Geometry object results in this message:

Traceback (most recent call last):
  File "C:\Data\Daten\Untersuchungsgebiete\FeatureClass ertstellen.py", line 15, in <module>
    Point=arcpy.Point ([row[1],row[3]])
File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\arcobjects\mixins.py", line 1047, in __init__
    setattr(self, attr, value)
  File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\arcobjects\_base.py", line 89, in _set
    return setattr(self._arc_object, attr_name, cval(val))

Any ideas whats going wrong?

Thanks a lot!
Regards,
Seschat
Tags (2)
0 Kudos
2 Replies
MichaelVolz
Esteemed Contributor
Are you running on a 64-bit OS?

Do you have other python scripts that run as expected?

You may be running the 64-bit python version which could be causing the issue.
0 Kudos
NeilAyres
MVP Alum
You are passing a list object into arcpy.Point :
Point=arcpy.Point([row[1],row[3]])

Take out the extra [], try :
Point=arcpy.Point(row[1],row[3])

assuming of course that row[1] & row[3] are both numeric.

Cheers,
Neil
0 Kudos