[New-bugs-announce] [issue13545] Pydoc3.2: TypeError: unorderable types

Peter Frauenglass report at bugs.python.org
Wed Dec 7 09:14:10 CET 2011

New submission from Peter Frauenglass <python.org at everblue.info>:

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 ('', 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__
  File "/usr/lib/python3.2/http/server.py", line 399, in handle
  File "/usr/lib/python3.2/http/server.py", line 387, in handle_one_request
  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()

components: Library (Lib)
files: DEBUG
messages: 148951
nosy: threewestwinds
priority: normal
severity: normal
status: open
title: Pydoc3.2: TypeError: unorderable types
type: crash
versions: Python 3.2
Added file: http://bugs.python.org/file23861/DEBUG

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list