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.

IndexError: list index out of range

See original GitHub issue

Hey,

I have collected data using the Nexmon-CSI-Tool: https://github.com/nexmonster/nexmon_csi/tree/pi-5.4.51-plus

I’ve collected the CSI data and store them in a pcap file : output.zip

I dont even get an output of these File: csikit output.pcap Traceback (most recent call last): File "/usr/local/bin/csikit", line 10, in <module> sys.exit(main()) File "/usr/local/lib/python3.7/dist-packages/CSIKit/__main__.py", line 57, in main display_info(args.file) File "/usr/local/lib/python3.7/dist-packages/CSIKit/tools/get_info.py", line 7, in display_info metadata = csi_data.get_metadata() File "/usr/local/lib/python3.7/dist-packages/CSIKit/csi/csidata.py", line 45, in get_metadata final_timestamp = timestamps[-1] IndexError: list index out of range

If i use your examples, it works. Thanks in advance!

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
Gi-zcommented, Jun 17, 2021

Apologies for the delay. This’ll take a little time to implement elegantly.

In the interest of making sure you have something, I’ve linked a temporary build you can install which will parse your files correctly. Any other nexmon filetypes will fail, but this will work with the system you’re currently running. https://drive.google.com/file/d/1rjnCiJgeh7CZFN_ZfQEWGfcv1dZBp-Qt/view?usp=sharing

You can install it by navigating to the root folder (containing setup.py) and running:

pip uninstall csikit
python setup.py install

I hope to have a solution for this issue merged into master soon. Best of luck with your work!

0reactions
makoc0704commented, Jun 18, 2021

Awesome, it works! Big thanks for your help 😃

Edit: Great project by the way 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

List Index Out of Range – Python Error Message Solved
You'll get the Indexerror: list index out of range error when iterating through a list and trying to access an item that doesn't...
Read more >
Python IndexError: List Index Out of Range Error Explained
Learn how to resolve the Python IndexError, list index out of range, why it occurs in for loops, while loops, and how to...
Read more >
Indexerror: list Index Out of Range in Python - STechies
In python “list index out of range” error occurs when we try to access an undefined element from the list. List index out...
Read more >
Python IndexError: List Index Out of Range [Easy Fix] - Finxter
The error “list index out of range” arises if you access invalid indices in your ...
Read more >
Index Error: list index out of range (Python) - Stack Overflow
Generally it means that you are providing an index for which a list element does not exist. E.g, if your list was [1,...
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