Author threewestwinds
Recipients threewestwinds
Date 2011-12-07.08:14:08
SpamBayes Score 5.41652e-08
Marked as misclassified No
Message-id <1323245650.84.0.0982873930807.issue13545@psf.upfronthosting.co.za>
In-reply-to
Content
While attempting to use pydoc, I came across the following error. On my system it's simple to reproduce: pydoc -p 1234, then visit http://localhost:1234/ in a browser.

A open('/home/(me)/DEBUG', 'w').write(binary)
 right before the m.groups() call created the attached file. Hopefully this is enough to help. Thanks.

~$ pydoc3.2 -p 1234 py/core.py 
Server ready at http://localhost:1234/
Server commands: [b]rowser, [q]uit
server> ----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 49185)
Traceback (most recent call last):
  File "/usr/lib/python3.2/socketserver.py", line 284, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python3.2/socketserver.py", line 310, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python3.2/socketserver.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3.2/socketserver.py", line 638, in __init__
    self.handle()
  File "/usr/lib/python3.2/http/server.py", line 399, in handle
    self.handle_one_request()
  File "/usr/lib/python3.2/http/server.py", line 387, in handle_one_request
    method()
  File "/usr/lib/python3.2/pydoc.py", line 2405, in do_GET
    self.path, content_type).encode('utf-8'))
  File "/usr/lib/python3.2/pydoc.py", line 2723, in _url_handler
    return get_html_page(url)
  File "/usr/lib/python3.2/pydoc.py", line 2713, in get_html_page
    return html.page(title, content)
  File "/usr/lib/python3.2/pydoc.py", line 2497, in page
    </body></html>''' % (title, css_link, html_navbar(), contents)
  File "/usr/lib/python3.2/pydoc.py", line 2530, in html_navbar
    """ % (version, html.escape(platform.platform(terse=True)))
  File "/usr/lib/python3.2/platform.py", line 1568, in platform
    libcname,libcversion = libc_ver(sys.executable)
  File "/usr/lib/python3.2/platform.py", line 184, in libc_ver
    if soversion > version:
TypeError: unorderable types: NoneType() > str()
----------------------------------------
History
Date User Action Args
2011-12-07 08:14:11threewestwindssetrecipients: + threewestwinds
2011-12-07 08:14:10threewestwindssetmessageid: <1323245650.84.0.0982873930807.issue13545@psf.upfronthosting.co.za>
2011-12-07 08:14:10threewestwindslinkissue13545 messages
2011-12-07 08:14:08threewestwindscreate