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

Pending task destroyed error on KeyboardInterrupt #2

Open
DeadLemon opened this issue Sep 23, 2017 · 0 comments
Open

Pending task destroyed error on KeyboardInterrupt #2

DeadLemon opened this issue Sep 23, 2017 · 0 comments

Comments

@DeadLemon
Copy link
Owner

2017-09-23 02:55:43,063 asyncio ERROR Task was destroyed but it is pending!
source_traceback: Object created at (most recent call last):
  File "/Users/abdullakh/Desktop/test_autocomplete/client.py", line 61, in <module>
    loop.run_until_complete(coro)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 454, in run_until_complete
    self.run_forever()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 421, in run_forever
    self._run_once()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 1417, in _run_once
    handle._run()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/events.py", line 126, in _run
    self._callback(*self._args)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 802, in create_connection
    sock, protocol_factory, ssl, server_hostname)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 817, in _create_connection_transport
    protocol = protocol_factory()
  File "/Users/abdullakh/Desktop/test_autocomplete/client.py", line 58, in <lambda>
    protocol_factory=lambda: AutocompleteClientProtocol(loop),
  File "/Users/abdullakh/Desktop/test_autocomplete/client.py", line 22, in __init__
    task = self.loop.create_task(self.prompt_loop())
task: <Task pending coro=<AutocompleteClientProtocol.prompt_loop() done, defined at /Users/abdullakh/Desktop/test_autocomplete/client.py:35> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x103330048>()] created at /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py:275> created at /Users/abdullakh/Desktop/test_autocomplete/client.py:22>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant