Advertisement
Guest User

Untitled

a guest
Apr 21st, 2018
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "cusloop", line 16, in <module>
  3. run_timeout(loop, foo(loop), 3)
  4. File "cusloop", line 7, in run_timeout
  5. return loop.run_until_complete(timed_awaitable)
  6. File "/usr/lib/python3.6/asyncio/base_events.py", line 467, in run_until_complete
  7. return future.result()
  8. File "/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
  9. return fut.result()
  10. File "cusloop", line 10, in foo
  11. process = await create_subprocess_exec('sleep', '3', loop=loop)
  12. File "/usr/lib/python3.6/asyncio/subprocess.py", line 225, in create_subprocess_exec
  13. stderr=stderr, **kwds)
  14. File "/usr/lib/python3.6/asyncio/base_events.py", line 1191, in subprocess_exec
  15. bufsize, **kwargs)
  16. File "/usr/lib/python3.6/asyncio/unix_events.py", line 194, in _make_subprocess_transport
  17. self._child_watcher_callback, transp)
  18. File "/usr/lib/python3.6/asyncio/unix_events.py", line 858, in add_child_handler
  19. "Cannot add child handler, "
  20. RuntimeError: Cannot add child handler, the child watcher does not have a loop attached
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement