question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to identify packet format

See original GitHub issue

usbrply won’t touch this capture that I recorded using Wireshark on Linux using usbmon.

$ usbrply -p /tmp/ver.pcapng 
Traceback (most recent call last):
  File "/usr/local/bin/usbrply", line 4, in <module>
    __import__('pkg_resources').run_script('usbrply==2.0.1', 'usbrply')
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 665, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1470, in run_script
    exec(script_code, namespace, namespace)
  File "/usr/local/lib/python3.8/dist-packages/usbrply-2.0.1-py3.8.egg/EGG-INFO/scripts/usbrply", line 124, in <module>
  File "/usr/local/lib/python3.8/dist-packages/usbrply-2.0.1-py3.8.egg/EGG-INFO/scripts/usbrply", line 113, in main
  File "/usr/local/lib/python3.8/dist-packages/usbrply-2.0.1-py3.8.egg/usbrply/parsers.py", line 19, in pcap2json
  File "/usr/local/lib/python3.8/dist-packages/usbrply-2.0.1-py3.8.egg/usbrply/pcap_util.py", line 137, in guess_parser
AssertionError: failed to identify packet format

In order to minimize the example this pcapng contains a single packet exported from Wireshark (had to rename for github): ver.pcapng.txt

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JohnDMcMastercommented, Oct 2, 2021

Gotcha. Ok I think your issue should be resolved now: I’ve improved OS detection and your capture is incomplete. But feel free to reach out again if you still have issues.

0reactions
durkacommented, Oct 2, 2021

OK, I can try the capture again. I filtered the Wireshark display to only the outgoing packets before exporting.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Packet Errors, Packet Discards, and Packet Loss: What's the ...
A packet discard happens when a received packet has a transmission or format error, or when the receiving device doesn't have enough storage ......
Read more >
Five Reasons Wireshark Doesn't Work - PathSolutions
If a capture confirmed that packets were missing in a conversation, you could not detect where or why the packets were missing: an...
Read more >
What Is Packet Loss and How Do You Fix It? - TechTarget
Packet loss occurs when one or more transmitted data packets fail to arrive at their destination. This can cause noticeable performance issues for...
Read more >
Analyzing a failed TLS connection | Packet-Foo
Summary. This post demonstrates how to correlate two or more trace files to analyze a broken connection. We identify the root cause and ......
Read more >
Packet Loss - What is it, How to Diagnose and Fix It in your ...
If a packet fails to reach its destination, the cause is that one of the devices responsible for passing it on along its...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found