[python-win32] MakePy

Bob Gailer bgailer at alum.rpi.edu
Fri Apr 18 15:24:48 EDT 2003


Original:

Choosing Tools -> COM makepy utility yielded:
  >>> Failed to execute command:
from win32com.client import makepy;makepy.main()
Traceback (most recent call last):
[snip]
    File "E:\Python22\lib\site-packages\win32com\client\selecttlb.py", line 
68, in EnumTlbs
key2 = win32api.RegOpenKey(win32con.HKEY_CLASSES_ROOT, "Typelib\\%s" % (iid))
error: (5, 'RegOpenKeyEx', 'Access is denied.')

This happened on Win NT Terminal Server logged in as administrator.

At 09:59 AM 4/18/2003 -0500, Dan Kruger wrote:
>You don't happen to have one of the more recent Crystal Reports installed, 
>do you?  There's a known issue that one of the newer Crystal Reports 
>installs will create registry keys that are only accessable at the 
>"System" security level (the one above admin).  Any attempts to read these 
>at any level lower than System will force a crash... be it python, VB's 
>COM object browser, etc.

I added some try..except statements around the calls to RegOpenKey, and 
printed the offending keys. Then looked one up in the registry; lo and 
behold it was gray (protected). Running the program & ignoring the 
protected keys brought up the listbox and I could complete the makepy 
operation. There were 814 protected keys! I recommend that the official 
release be so modified. I assume this means I enter a bug report.

Bob Gailer
bgailer at alum.rpi.edu
303 442 2625
-------------- next part --------------

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.467 / Virus Database: 266 - Release Date: 4/1/2003


More information about the Python-win32 mailing list