> On Vista, win32tracutil traceback with a "pywintypes.error":
> 
> >>> import win32traceutil
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "C:\Python25\Lib\site-packages\win32\lib\win32traceutil.py",
> line 53, in <module>
>     SetupForPrint()
>   File "C:\Python25\Lib\site-packages\win32\lib\win32traceutil.py",
> line 43, in SetupForPrint
>     win32trace.InitWrite()
> pywintypes.error: (5, 'CreateFileMapping', 'Access is denied.')
> 
> 
> Any idea where went wrong? Thanks.

Yes - a user running without elevated credentials can't create objects in
the "Global\\" namespace under Vista - which is exactly what win32trace
tries to do.  This has been fixed in CVS, and I really hope to get a new
build out within a couple of weeks.  IIRC, a workaround is to start a
"reader" process (ie, "python win32traceutil.py") from a command-prompt
running elevated (ie, "as Administrator") - a client should then be capable
of working without requiring elevated permissions, as the mapping will have
been created and permissions adjusted.

Cheers,

Mark

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to