AnsweredAssumed Answered

missing comtypes module attributes (comtypes.gen.esriFramework.AppRef)

Question asked by kalley on Feb 20, 2015
Latest reply on Feb 23, 2015 by kalley

I am using comtypes and Mark Cederholm's (10.2 version) and have not been able to access comtypes.gen.esriFramework.AppRef.  I have made the required comtype edits for 10.2 compatibility, and verified that the relevant .pyc files are new.


The error message I get when I try to access comtypes.gen.esriFramework.AppRef is "AttributeError: 'module' object has no attribute 'AppRef'".


The attributes listed by executing "dir(comtypes.gen.esriFramework)" are:  ['_866AE5D3_530C_11D2_A2BD_0000F8774FB5_0_10_2', '__builtins__', '__doc__', '__file__', '__name__', '__package__', 'typelib_path'] which does not include "AppRef", although the Class "AppRef" is in the code of the freshly created comtypes\gen\


But I also noticed that a class does not seem to show up as an attribute when I execute "dir(comtypes.gen.esriFramework._866AE5D3_530C_11D2_A2BD_0000F8774FB5_0_10_2)" that yields ['__builtins__', '__doc__', '__file__', '__name__', '__package__', 'typelib_path']



Any idea what the problem is?  Is the information I provided above relevant to figuring it out?  How else can I troubleshoot this?