[pywin32-bugs] [ pywin32-Bugs-3076741 ] "This object does not support enumeration"
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2010-09-27 19:00:35
|
Bugs item #3076741, was opened at 2010-09-27 11:51 Message generated for change (Comment added) made by maphew You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3076741&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: win32 Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: matt wilkie (maphew) Assigned to: Nobody/Anonymous (nobody) Summary: "This object does not support enumeration" Initial Comment: I have script which works fine with python 2.5, but in 2.6 raises error below. The script can be nabbed from http://code.google.com/p/maphew/source/browse/trunk/gis/list-fc-aliases.py. Unfortunately the script requires ArcGIS 9.3 installed on the host machine, along with arcgisscripting.py from here (http://www.yukongis.ca/How_To/Upgrading_ArcGIS_Python) plunked into C:\Python2.6\Lib\site-packages, so duplicating it is not easy. I'm hoping that someone just eyeballing the code can tell me what's wrong? Thanks {{{ Traceback (most recent call last): File "list-fc-aliases.py", line 40, in <module> getDataSets() File "list-fc-aliases.py", line 17, in getDataSets for fd in fds: File "C:\Python26\lib\site-packages\win32com\client\dynamic.py", line 242, in __getitem__ raise TypeError("This object does not support enumeration") TypeError: This object does not support enumeration }}} ---------------------------------------------------------------------- >Comment By: matt wilkie (maphew) Date: 2010-09-27 12:00 Message: documentation for gp.ListDatasets method - http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=ListDatasets_method ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3076741&group_id=78018 |