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

RuntimeError : Cannot run the event loop while another loop is running #542

Closed
mathieu91540 opened this issue May 19, 2022 · 1 comment
Closed

Comments

@mathieu91540
Copy link

I got this message after trying like your test in the README file.

Here is my code :
`import pyshark

cap = pyshark.FileCapture(r"C:\Users\cache\Desktop\vlp16capture.pcap")
cap

print(cap[0])`

@KimiNewt
Copy link
Owner

KimiNewt commented Jun 7, 2022

It's likely you are running it in jupyter or something else that runs on an eventloop. Unfortunately since pyshark uses asyncio it's not possible to run it inside jupyter at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants