RuntimeError: asyncio.get_child_watcher() is not activated, subprocess support is not installed. #685
niranjan131
started this conversation in
General
Replies: 0 comments
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.
-
Getting issue when pyshark tried to parse pcap in multi thread in linux environment.
Kindly suggest how to resolve the issue please.
Traceback (most recent call last):
File "/home/ganjinir/project/keywords/parse_pcap.py", line 1280, in parse_pcap
streamInfo = list(executor.map(lambda f: gethttp2pcapinfo(file, f), filters))
File "/usr/lib/python3.8/concurrent/futures/_base.py", line 619, in result_iterator
yield fs.pop().result()
File "/usr/lib/python3.8/concurrent/futures/_base.py", line 444, in result
return self.__get_result()
File "/usr/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result
raise self._exception
File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/ganjinir/project/keywords/parse_pcap.py", line 1280, in
streamInfo = list(executor.map(lambda f: gethttp2pcapinfo(file, f), filters))
File "/home/ganjinir/project/keywords/parse_pcap.py", line 351, in gethttp2pcapinfo
for packet in cap:
File "/home/ganjinir/regenv/lib/python3.8/site-packages/pyshark/capture/capture.py", line 212, in _packets_from_tshark_sync
tshark_process = existing_process or self.eventloop.run_until_complete(
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/home/ganjinir/regenv/lib/python3.8/site-packages/pyshark/capture/capture.py", line 346, in _get_tshark_process
tshark_process = await asyncio.create_subprocess_exec(*parameters,
File "/usr/lib/python3.8/asyncio/subprocess.py", line 236, in create_subprocess_exec
transport, protocol = await loop.subprocess_exec(
File "/usr/lib/python3.8/asyncio/base_events.py", line 1630, in subprocess_exec
transport = await self._make_subprocess_transport(
File "/usr/lib/python3.8/asyncio/unix_events.py", line 194, in _make_subprocess_transport
raise RuntimeError("asyncio.get_child_watcher() is not activated, "
RuntimeError: asyncio.get_child_watcher() is not activated, subprocess support is not installed.
Beta Was this translation helpful? Give feedback.
All reactions