Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Py3.0a4 wsgiref simple_server failed to start #46818

Closed
delimy mannequin opened this issue Apr 7, 2008 · 2 comments
Closed

Py3.0a4 wsgiref simple_server failed to start #46818

delimy mannequin opened this issue Apr 7, 2008 · 2 comments
Labels
stdlib Python modules in the Lib dir type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@delimy
Copy link
Mannequin

delimy mannequin commented Apr 7, 2008

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']

    @delimy
    Copy link
    Mannequin Author

    delimy mannequin commented Apr 7, 2008

    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.

    @delimy delimy mannequin added stdlib Python modules in the Lib dir type-crash A hard crash of the interpreter, possibly with a core dump labels Apr 7, 2008
    @pitrou
    Copy link
    Member

    pitrou commented Jul 24, 2008

    The same bug is being discussed in bpo-3348

    @pitrou pitrou closed this as completed Jul 24, 2008
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir type-crash A hard crash of the interpreter, possibly with a core dump
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant