Task was destroyed but it is pending! #553
cbrauckmiller
started this conversation in
General
Replies: 1 comment 4 replies
-
I believe that error is actually with it failing to close after another error has occurred, so the real issue is beforehand. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm new to PyShark and having a problem that someone probably knows the answer to.
I'm looping through a PCAPNG and copying a DTLS sequence number to a list for further analysis.
The issue I have is that after a few seconds, the script stops and python throws this error:
Task was destroyed but it is pending!
task: <Task pending name='Task-15746' coro=<Capture.close_async() running at C:\Users\craig\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pyshark\capture\capture.py:463>>
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py:641: RuntimeWarning: coroutine 'Capture.close_async' was never awaited
Is this a bug in PyShark or something I'm doing wrong?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions