[New-bugs-announce] [issue4005] pydoc in web server mode tails at initial request

James Mills report at bugs.python.org
Wed Oct 1 08:24:50 CEST 2008

New submission from James Mills <prologic at shortcircuit.net.au>:

Trying to use pydoc in it's webserver mode fails:

$ pydoc3.0 -p 8000
pydoc server ready at http://localhost:8000/
Exception happened during processing of request from ('', 42939)
Traceback (most recent call last):
  File "/usr/lib/python3.0/socketserver.py", line 281, in
    self.process_request(request, client_address)
  File "/usr/lib/python3.0/socketserver.py", line 307, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python3.0/socketserver.py", line 320, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3.0/socketserver.py", line 614, in __init__
  File "/usr/lib/python3.0/http/server.py", line 363, in handle
  File "/usr/lib/python3.0/http/server.py", line 357, in handle_one_request
  File "/usr/lib/python3.0/pydoc.py", line 1957, in do_GET
    indices.append(html.index(dir, seen))
  File "/usr/lib/python3.0/pydoc.py", line 929, in index
    for importer, name, ispkg in pkgutil.iter_modules([dir]):
  File "/usr/lib/python3.0/pkgutil.py", line 147, in iter_modules
    for name, ispkg in iter_importer_modules(i, prefix):
  File "/usr/lib/python3.0/pkgutil.py", line 325, in iter_zipimport_modules
AttributeError: 'dict_keys' object has no attribute 'sort'
pydoc server stopped

components: Demos and Tools
messages: 74116
nosy: prologic
severity: normal
status: open
title: pydoc in web server mode tails at initial request
type: behavior
versions: Python 3.0

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list