Arnab Mondal
Arnab Mondal

Reputation: 1

module 'pyshark' has no attribute 'Filecapture'

I am trying to use pyshark and I am fairly new to the field. But I am encountering this error " module 'pyshark' has no attribute 'Filecapture' ", Even though I am importing pyshark, I am getting the same error, I have even tried running it with sudo from the terminal.

Upvotes: 0

Views: 1222

Answers (1)

Random
Random

Reputation: 1

You must run it outside python. Try: python .\mypyscript.py .\mypycap.pcap or try to create a virtual environment https://docs.python.org/3/tutorial/venv.html

Upvotes: 0

Related Questions