Aha -- there is a fix for this on the ArcGIS Forums: 10.1 beta and comtypes. The fix is applied to the comtypes module, under
PYTHONPATH\lib\site-packages, not Snippets.
I noticed that the current version of comtypes croaks when trying to wrap
esriSystem.olb. Fortunately, you can remedy this by adding the following entry to the
_ctype_to_vartype dictionary in
After making that little tweak it works fine (so far). You may also need to delete
safearray.pyo in the same folder.
Also see page 5 of Mark Cederholm's 2012 Dev Summit presentation: ArcMap and Python: Closing the VBA Gap, and in the header of his updated snippets modules for 10.0, 10.1 and 10.2 respectively; index page: http://pierssen.com/arcgis10/python.htm