AnsweredAssumed Answered

Python toolbox doesn not work in ArcMap with italian language setting

Question asked by valraa on Feb 22, 2017
Latest reply on Mar 6, 2017 by valraa

I have created a Python toolbox which works in my and others' ArcMap 10.4.1. Today I tried it on another ArcMap installation (always 10.4.1), and I get a little-red-cross icon on top of the python script (tool) inside the python toolbox from within the catalog window. I noticed that AcrMap is in Italian in this installation and if I switch to english everything works just fine. Would this be a bug? Does anyone else have occurred in such error? The error is related to the "GetParameterInfo" of the toolbox. However, this same toolbox works on other ArcMap 10.4.1... The error is the one below:

 

Traceback (most recent call last):
  File "<string>", line 60, in getParameterInfo
  File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\arcobjects\mixins.py", line 299, in __init__
    setattr(self, attrib, attribvalue)
  File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\arcobjects\_base.py", line 89, in _set
    return setattr(self._arc_object, attr_name, cval(val))
ValueError: ParameterObject: Valore input non valido per propriet\xe0 DataType

Outcomes