Re: [python-win32] A tale of two COM servers (same py code works differently)

2013-12-18 Thread Jim Bell
On 2013-12-18 12:34 PM, Tim Roberts wrote: Jim Bell wrote: I have two COM servers. 4. Looks for CLSID in HKCR\CLSID\{4...}, doesn't find it. *5. **Stops looking and gives up, **throwing pywintypes.com_error: (-2147221164, 'Class not registered', None, None)* So why does it stop looking

Re: [python-win32] A tale of two COM servers (same py code works differently)

2013-12-18 Thread Tim Roberts
Jim Bell wrote: > I have two COM servers. One works, the other doesn't, using the same > python client code, which seems to work differently behind the scenes. > I'm profiling both with SysInternals' ProcMon. Windows7x64, running > 32-bit python 2.7.3. The python code isn't much more than: > >

[python-win32] A tale of two COM servers (same py code works differently)

2013-12-18 Thread Jim Bell
I have two COM servers. One works, the other doesn't, using the same python client code, which seems to work differently behind the scenes. I'm profiling both with SysInternals' ProcMon. Windows7x64, running 32-bit python 2.7.3. The python code isn't much more than: import sys, os impo

[python-win32] 答复: pywintypes.com_error: (-2147221164

2013-12-18 Thread 桌面事业部
Thank you very much. You are right.The problem is my office is not correct.When I reinstalled my Microsoft office, The problem solved.Thank you . Best wishes to you. -邮件原件- 发件人: Mark Hammond [mailto:skippy.hamm...@gmail.com] 发送时间: 2013年12月16日 10:57 收件人: WangMengNan(桌面事业部); python-win32@p

[python-win32] Setting ownership and permissions

2013-12-18 Thread Joseph L. Casale
I have a situation where I need to remove large directories and in doing so I must take ownership. I get a stack trace about the logon I impersonate generating to many security ids as I recursively iterate and take ownership. What workarounds have you guys utilized in this scenario? I suspect t