Hi,
we are getting exceptions while executing pythonWin script. Please find
attachment contains error messages.
The python script uses ArcInfo toolbox(ESRI component) to perform geoprocessing
opeations.
script was implemented on python21,pythonwin32.
Now I am trying to run old version of script on python251 version. Just to make
oold version of script we installed pywin32-210.win32-py2.5.exe and trying to
execute.
Can you please let me know what could be the issue.
Thanks,
Srinu P
PythonWin 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)]
on win32.
Portions Copyright 1994-2006 Mark Hammond - see 'Help/About PythonWin' for
further copyright information.
>>> ArcInfo Connection established
>>> C:\Progra~2\
>>> goxsd877
>>> D:\affected_area_mdb
>>> Successfully loaded the ArcGIS Tools
>>> Geoprocessing environment set
>>> Unhandled exception while debugging...
Traceback (most recent call last):
File "C:\Program Files (x86)\Apache Software Foundation\Tomcat
6.0\webapps\ROOT\affectedarea_script\affectednetwrk.py", line 51, in <module>
gp.Delete_management(AFFECTEDNETWORK_SP_V,AFFECTEDNETWORK_SP_V)
File "C:\Python25\lib\site-packages\win32com\client\dynamic.py", line 496, in
__getattr__
raise AttributeError, "%s.%s" % (self._username_, attr)
AttributeError: esriGeoprocessing.GpDispatch.1.Delete_management
>>>
>>> Unhandled exception while debugging...
Traceback (most recent call last):
File "C:\Program Files (x86)\Apache Software Foundation\Tomcat
6.0\webapps\ROOT\affectedarea_script\affectednetwrk.py", line 60, in <module>
gp.FeatureClassToFeatureClass_conversion(OCS_ADMIN_AFFECTEDNETWORK_SP_V,
TEST_DB_mdb, "AFFECTEDNETWORK_SP_V", WHERE_CLAUSE , "FDR_FPL_ID FDR_FPL_ID
VISIBLE;EVNT_KEY EVNT_KEY VISIBLE;AFCT_NTWK_KEY AFCT_NTWK_KEY
VISIBLE;AFCT_NTWK_NAME AFCT_NTWK_NAME VISIBLE;EVNT_NAME EVNT_NAME
VISIBLE;EVNT_STAT EVNT_STAT VISIBLE;shape.AREA shape.AREA VISIBLE;shape.LEN
shape.LEN VISIBLE", "SAME_AS_TEMPLATE", "SAME_AS_TEMPLATE", "", "0")
File "<COMObject esriGeoprocessing.GpDispatch.1>", line 2, in
FeatureClassToFeatureClass_conversion
com_error: (-2147467259, 'Unspecified error', None, None)
>>>
>>> Unhandled exception while debugging...
Traceback (most recent call last):
File "C:\Program Files (x86)\Apache Software Foundation\Tomcat
6.0\webapps\ROOT\affectedarea_script\affectednetwrk.py", line 73, in <module>
gp.MakeTableView_management(OCS_ADMIN_AFFECTEDNETWORK_DISS, AFFECTNET_View,
WHERE_CLAUSE, TEST_DB_mdb, "AFCT_NTWK_NAME AFCT_NTWK_NAME VISIBLE;EVNT_NAME
EVNT_NAME VISIBLE;EVNT_STAT EVNT_STAT VISIBLE;SHAPE.AREA SHAPE.AREA
VISIBLE;SHAPE.LEN SHAPE.LEN VISIBLE")
File "C:\Python25\lib\site-packages\win32com\client\dynamic.py", line 496, in
__getattr__
raise AttributeError, "%s.%s" % (self._username_, attr)
AttributeError: esriGeoprocessing.GpDispatch.1.MakeTableView_management
>>>
>>> _______________________________________________
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32