Skip to content

tornado fails with 3.8.0b2 on Windows #61

Closed

Description

@lazka
INFO:root:Running `C:\Python38\venv\cpython3.8-2459c2ec2c3d\Scripts\python.exe -u C:\Python38\venv\cpython3.8-2459c2ec2c3d\lib\site-packages\pyperformance\benchmarks\bm_tornado_http.py --output C:\Users\xy\AppData\Local\Temp\tmpdrgssiij`
Traceback (most recent call last):
  File "C:\Python38\venv\cpython3.8-2459c2ec2c3d\lib\site-packages\pyperformance\benchmarks\bm_tornado_http.py", line 96, in <module>
    runner.bench_time_func('tornado_http', bench_tornado)
  File "C:\Python38\venv\cpython3.8-2459c2ec2c3d\lib\site-packages\pyperf\_runner.py", line 458, in bench_time_func
    return self._main(task)
  File "C:\Python38\venv\cpython3.8-2459c2ec2c3d\lib\site-packages\pyperf\_runner.py", line 423, in _main
    bench = self._worker(task)
  File "C:\Python38\venv\cpython3.8-2459c2ec2c3d\lib\site-packages\pyperf\_runner.py", line 397, in _worker
    run = task.create_run()
  File "C:\Python38\venv\cpython3.8-2459c2ec2c3d\lib\site-packages\pyperf\_worker.py", line 293, in create_run
    self.compute()
  File "C:\Python38\venv\cpython3.8-2459c2ec2c3d\lib\site-packages\pyperf\_worker.py", line 331, in compute
    WorkerTask.compute(self)
  File "C:\Python38\venv\cpython3.8-2459c2ec2c3d\lib\site-packages\pyperf\_worker.py", line 280, in compute
    self.calibrate_loops()
  File "C:\Python38\venv\cpython3.8-2459c2ec2c3d\lib\site-packages\pyperf\_worker.py", line 243, in calibrate_loops
    self._compute_values(self.warmups, nvalue,
  File "C:\Python38\venv\cpython3.8-2459c2ec2c3d\lib\site-packages\pyperf\_worker.py", line 76, in _compute_values
    raw_value = self.task_func(self, self.loops)
  File "C:\Python38\venv\cpython3.8-2459c2ec2c3d\lib\site-packages\pyperf\_runner.py", line 454, in task_func
    return time_func(loops, *args)
  File "C:\Python38\venv\cpython3.8-2459c2ec2c3d\lib\site-packages\pyperformance\benchmarks\bm_tornado_http.py", line 60, in bench_tornado
    server, sock = make_http_server(make_application())
  File "C:\Python38\venv\cpython3.8-2459c2ec2c3d\lib\site-packages\pyperformance\benchmarks\bm_tornado_http.py", line 54, in make_http_server
    server.add_sockets(sockets)
  File "C:\Python38\venv\cpython3.8-2459c2ec2c3d\lib\site-packages\tornado\tcpserver.py", line 157, in add_sockets
    self._handlers[sock.fileno()] = add_accept_handler(
  File "C:\Python38\venv\cpython3.8-2459c2ec2c3d\lib\site-packages\tornado\netutil.py", line 268, in add_accept_handler
    io_loop.add_handler(sock, accept_handler, IOLoop.READ)
  File "C:\Python38\venv\cpython3.8-2459c2ec2c3d\lib\site-packages\tornado\platform\asyncio.py", line 79, in add_handler
    self.asyncio_loop.add_reader(
  File "C:\Python38\lib\asyncio\events.py", line 501, in add_reader
    raise NotImplementedError
NotImplementedError

Activity

  1. changed the title [-]tornado fail swith 3.8[/-] [+]tornado fail swith 3.8.0b2[/+] on Jul 23, 2019
  2. lazka commented on Jul 23, 2019

    @lazka
    CollaboratorAuthor
  3. stonebig commented on Jul 23, 2019

    @stonebig
  4. added a commit that references this issue on Jul 23, 2019
    b87917f
  5. changed the title [-]tornado fail swith 3.8.0b2[/-] [+]tornado fails with 3.8.0b2 on Windows[/+] on Jul 29, 2019
  6. vstinner commented on Jul 29, 2019

    @vstinner
    Member
  7. vstinner commented on Jul 29, 2019

    @vstinner
    Member

    I understand that a call to asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) should be added to bm_tornado.py on Windows with Python 3.8 or newer. Do you want to propose a pull request to implement that?

  8. lazka commented on Jul 29, 2019

    @lazka
    CollaboratorAuthor

    I've already opened pull requests for all issues I've filed.

  9. vstinner commented on Jul 29, 2019

    @vstinner
    Member

    I've already opened pull requests for all issues I've filed.

    Oh sorry. I looked at open issues before cooking 0.9.1 release, but I forgot to have a look at pull requests. I'm back from holiday, I didn't digest all my emails yet ;-)

  10. added a commit that references this issue on Jul 29, 2019
    d8cd178
  11. added a commit that references this issue on Jul 30, 2019
    98e9f05
  12. vstinner commented on Jul 30, 2019

    @vstinner
    Member

    Should be fixed by merged PR #65.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions