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

Hi, I got ‘IndexError’ when I am trying to read most recent ATL08 data products using ‘load’ from icepys.

ds = reader.load()

  File "C:\Users\xiongl21\Miniconda3\envs\icepyx-env\lib\site-packages\icepyx\core\read.py", line 443, in load
    self._build_single_file_dataset(file, groups_list)
  File "C:\Users\xiongl21\Miniconda3\envs\icepyx-env\lib\site-packages\icepyx\core\read.py", line 560, in _build_single_file_dataset
    is2ds = Read._add_var_to_ds(
  File "C:\Users\xiongl21\Miniconda3\envs\icepyx-env\lib\site-packages\icepyx\core\read.py", line 342, in _add_var_to_ds
    grp_spec_vars = [
  File "C:\Users\xiongl21\Miniconda3\envs\icepyx-env\lib\site-packages\icepyx\core\read.py", line 343, in <listcomp>
    wanted_vars[i]
IndexError: list index out of range

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:20 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
ricardobarroslourencocommented, Mar 14, 2022

Hi @JessicaS11 and @weiji14 ! Thanks for the instructions. I have just accepted the invite and will be going over the PR review.

1reaction
JessicaS11commented, Mar 14, 2022

@ricardobarroslourenco

I have went over your changes and they seem ok. Can I go over this review too?

That would be great - thanks for the offer and getting involved in this conversation. Check your email for an org invite.

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 >
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 >
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 >
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 >
How to fix - List Index Out of Range in Python - GeeksforGeeks
Reason of the error – The length of the list is 5 and if we are an iterating list on 6 then it...
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