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 ('127.0.0.1', 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__
    self.handle()
  File "C:\Python26\lib\BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "C:\Python26\lib\BaseHTTPServer.py", line 323, in handle_one_request
    method()
  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?!?!

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.