Thus far, installing and getting Python 2.6 running properly on x64 Windows 7 has managed to be a fat pain in the butt. Latest in my saga of silliness, is that the PyDoc server doesn't run properly. Initially, I was getting "pydoc is not recognized as an internal or blah blah" from the shell, so I added Python26/lib to the PATH variable. Now PyDoc starts, but doesn't show any information in the browser.

The shell gives me this:

C:\Users\josh.SCL>pydoc -g
Exception happened during processing of request from ('', 49451)
Traceback (most recent call last):
  File "C:\Python26\lib\SocketServer.py", line 281, in _handle_request_noblock
    self.process_request(request, client_address)
  File "C:\Python26\lib\SocketServer.py", line 307, in process_request
    self.finish_request(request, client_address)
  File "C:\Python26\lib\SocketServer.py", line 320, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Python26\lib\SocketServer.py", line 615, in __init__
  File "C:\Python26\lib\BaseHTTPServer.py", line 329, in handle
  File "C:\Python26\lib\BaseHTTPServer.py", line 323, in handle_one_request
  File "C:\Python26\lib\pydoc.py", line 2020, in do_GET
    indices.append(html.index(dir, seen))
  File "C:\Python26\lib\pydoc.py", line 931, in index
    for importer, name, ispkg in pkgutil.iter_modules([dir]):
  File "C:\Python26\lib\pkgutil.py", line 147, in iter_modules
    for name, ispkg in iter_importer_modules(i, prefix):
  File "C:\Python26\lib\pkgutil.py", line 211, in iter_modules
    for fn in os.listdir(path):
WindowsError: [Error 5] Access is denied: '.\\Application Data/*.*'

Any amazing insight into this craziness?!?!

8 Years
Discussion Span
Last Post by jinfiesto

Solved! Hopefully this is helpful to someone. So despite me having the UAC turned off, I apparently have to run this as administrator anyways. Just UAC being dumb.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.