[python-win32] MakePy

Jens B. Jorgensen jens.jorgensen at tallan.com
Fri Apr 18 10:56:06 EDT 2003

I think this seems pretty clearly an NT perms problem, not a Python 
problem. Not that I wouldn't offer some help if I had a thought on why 
this is occurring, but I don't. For some reason that user does not have 
permission. You should be able to add permission to read that key, I'm 
not sure why administrator would not have permission but according to 
the OS, it doesn't! Are you really logged in as the local account 
Administrator or perhaps an account that belongs to the administrator 
group or domain admins group? (Not that those other possibilities should 
have trouble accessing that key.)

Very strange indeed.

Bob Gailer wrote:

> Choosing Tools -> COM makepy utility yielded:
> >>> Failed to execute command:
> from win32com.client import makepy;makepy.main()
> Traceback (most recent call last):
>   File 
> "E:\Python22\lib\site-packages\Pythonwin\pywin\framework\toolmenu.py", 
> line 103, in HandleToolCommand
>     exec "%s\n" % pyCmd
>   File "<string>", line 1, in ?
>   File "E:\Python22\lib\site-packages\win32com\client\makepy.py", line 
> 352, in main
>     GenerateFromTypeLibSpec(arg, f, verboseLevel = verboseLevel, 
> bForDemand = bForDemand, bBuildHidden = hiddenSpec)
>   File "E:\Python22\lib\site-packages\win32com\client\makepy.py", line 
> 205, in GenerateFromTypeLibSpec
>     typelibs = GetTypeLibsForSpec(typelibInfo)
>   File "E:\Python22\lib\site-packages\win32com\client\makepy.py", line 
> 157, in GetTypeLibsForSpec
>     tlbs = selecttlb.FindTlbsWithDescription(arg)
>   File "E:\Python22\lib\site-packages\win32com\client\selecttlb.py", 
> line 100, in FindTlbsWithDescription
>     items = EnumTlbs()
>   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.
> Bob Gailer
> bgailer at alum.rpi.edu
> 303 442 2625 

Jens B. Jorgensen
jens.jorgensen at tallan.com

"With a focused commitment to our clients and our people, we deliver value through customized technology solutions"  

More information about the Python-win32 mailing list