Skip to content

Pyshark only work good with Linux?? #68

@malli02422

Description

@malli02422

Hi All,
I am not able to use this pyshark Library with windows environment .
import pyshark

cap = pyshark.FileCapture('D:\mallik.pcap')
print cap.len()
for i in cap:
print i

The Result is as follows.
C:\Python27\python.exe "D:/Trailproject/add two number.py" 2 3 4
0
Traceback (most recent call last):
File "D:/Trailproject/add two number.py", line 5, in
for i in cap:
File "C:\Python27\lib\site-packages\pyshark\capture\capture.py", line 159, in _packets_from_tshark_sync
tshark_process = existing_process or self.eventloop.run_until_complete(self._get_tshark_process())
File "C:\Python27\lib\site-packages\trollius\base_events.py", line 300, in run_until_complete
return future.result()
File "C:\Python27\lib\site-packages\trollius\futures.py", line 287, in result
raise self._exception
WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect

Process finished with exit code 1

Please some one help me to get the information whether it can able useful in windows., if so let me know it with example.
I can see other issues far beyond the basic it means it is working for them .
I am use Windows 7 as my OS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions