Skip to content

Windows: no running event loop, when using pyshark.FileCapture() #674

Open
@DanielSchwartz1

Description

@DanielSchwartz1

I've written a python code which is calling the FileCapture function like:
capture = pyshark.FileCapture(file_path)
to extract certain information from the capture.

On Unix systems all is working properly.
But on Windows clients (e.g. Windows 11), I receive the error:
"no running event loop"

I've also checked the other issues ongoing and I saw similar threads.
I've tried to close the capture with:
capture.close()

But it does not work anyway.

Expected behavior
I've expected to have extracted all information without the error "no running event loop"

Versions (please complete the following information):

  • OS: Windows 11
  • python version: 3.7
  • tshark version: 4.0.10

Example pcap / packet
Does not work with any pcap file.

Do you have by chance a workaround for it?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions