Skip to content

Py3.0a4 wsgiref simple_server failed to start #46818

Closed

Description

@delimy
mannequin
BPO 2566
Nosy @pitrou
Superseder
  • bpo-3348: Cannot start wsgiref simple server in Py3k
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2008-07-24.15:34:15.923>
    created_at = <Date 2008-04-07.03:29:54.721>
    labels = ['library', 'type-crash']
    title = 'Py3.0a4 wsgiref simple_server failed to start'
    updated_at = <Date 2008-07-24.15:34:15.922>
    user = 'https://bugs.python.org/delimy'

    bugs.python.org fields:

    activity = <Date 2008-07-24.15:34:15.922>
    actor = 'pitrou'
    assignee = 'none'
    closed = True
    closed_date = <Date 2008-07-24.15:34:15.923>
    closer = 'pitrou'
    components = ['Library (Lib)']
    creation = <Date 2008-04-07.03:29:54.721>
    creator = 'delimy'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 2566
    keywords = []
    message_count = 2.0
    messages = ['65063', '70208']
    nosy_count = 2.0
    nosy_names = ['pitrou', 'delimy']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = None
    status = 'closed'
    superseder = '3348'
    type = 'crash'
    url = 'https://bugs.python.org/issue2566'
    versions = ['Python 3.0']

    Activity

    1. delimy commented on Apr 7, 2008

      delimymannequin
      MannequinAuthor

      Here's the most recent traceback:

      File "/home/delimy/temp/Python-3.0a4/Lib/wsgiref/handlers.py", line
      116, in finish_response
      self.write(data)
      File "/home/delimy/temp/Python-3.0a4/Lib/wsgiref/handlers.py", line
      199, in write
      self.send_headers()
      File "/home/delimy/temp/Python-3.0a4/Lib/wsgiref/handlers.py", line
      255, in send_headers
      self.send_preamble()
      File "/home/delimy/temp/Python-3.0a4/Lib/wsgiref/handlers.py", line
      178, in send_preamble
      self._write('HTTP/%s %s\r\n' % (self.http_version,self.status))
      File "/home/delimy/temp/Python-3.0a4/Lib/wsgiref/handlers.py", line
      385, in _write
      self.stdout.write(data)
      File "/home/delimy/temp/Python-3.0a4/Lib/socket.py", line 222, in write
      return self._sock.send(b)
      TypeError: send() argument 1 must be bytes or read-only buffer, not str

      It should convert str to bytes before write to stdout.

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      type-crashA hard crash of the interpreter, possibly with a core dump
      on Apr 7, 2008
    3. pitrou commented on Jul 24, 2008

      @pitrou
      Member

      The same bug is being discussed in bpo-3348

    4. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directorytype-crashA hard crash of the interpreter, possibly with a core dump

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions