From: Ed B. <kit...@ya...> - 2007-08-10 21:10:47
|
Okay, I think I've got my SourceForge issues sorted. I think they just had a glitch and never sent my confirmation email. I re-subscribed today and everything worked. The reason I decided to re-subscribe is because the following message bounced because SourceForge said I wasn't allowed to post to that list. Only afterwards did I see I had typed ctypes-users instead of comtypes... I think I just found a bug in the comtypes 0.3.2 release. In 0.2.1 I received events after calling GetEvents, but in 0.3.2 the same code doesn't receive events? I poked around and compared the relevant code in the new and old client modules. The new _event code looks like it is just a cleaned up version of the old code? I also tried the code generated from each version with the other and it appears that the generated code is not the problem. Also just now I tried to call GetActiveObject on an application after deleting my old gen directory and I got this (missing import): File "D:\Python25\Lib\site-packages\comtypes\client\_generate.py", line 218, i n _CreateWrapper mod = _my_import(fullname) File "D:\Python25\Lib\site-packages\comtypes\client\_generate.py", line 14, in _my_import return __import__(fullname, globals(), locals(), ['DUMMY']) File "D:\Python25\lib\site-packages\comtypes\gen\_CF9F97BF_39F2_4B8E_835C_8BE9 E99DAF5B_0_8_0.py", line 5298, in <module> ( ['in', 'optional'], c_double, 'IgnoredWhen', datetime.datetime(1899, 12, 3 0, 0, 0) )), NameError: name 'datetime' is not defined |
From: Thomas H. <th...@ct...> - 2007-08-14 19:17:09
|
Ed Blake schrieb: > I think I just found a bug in the comtypes 0.3.2 release. In 0.2.1 I > received events after calling GetEvents, but in 0.3.2 the same code doesn't > receive events? I poked around and compared the relevant code in the new and > old client modules. The new _event code looks like it is just a cleaned up > version of the old code? I also tried the code generated from each version > with the other and it appears that the generated code is not the problem. Can you further try to investigate where the problem lies? > Also just now I tried to call GetActiveObject on an application after > deleting my old gen directory and I got this (missing import): > > File "D:\Python25\Lib\site-packages\comtypes\client\_generate.py", line > 218, i > n _CreateWrapper > mod = _my_import(fullname) > File "D:\Python25\Lib\site-packages\comtypes\client\_generate.py", line 14, > in > _my_import > return __import__(fullname, globals(), locals(), ['DUMMY']) > File > "D:\Python25\lib\site-packages\comtypes\gen\_CF9F97BF_39F2_4B8E_835C_8BE9 > E99DAF5B_0_8_0.py", line 5298, in <module> > ( ['in', 'optional'], c_double, 'IgnoredWhen', datetime.datetime(1899, > 12, 3 > 0, 0, 0) )), > NameError: name 'datetime' is not defined Thanks for the heads up - this is indeed a bug. I just committed a fix to SNV, so maybe you verify that it is fixed now. Thomas |