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.

Getting '[ERROR] list index out of range' when trying to load file

See original GitHub issue

Running Ropper on Windows, with capstone-windows 3.0.4, then entering the command file C:\Users\MyUser\test.exe results in the output:

[INFO] Load gadgets from cache
[LOAD] loading... 0%[ERROR] list index out of range

Then entering the command search "% ?di" results in the output: [INFO] Searching for gadgets: “% ?di” [ERROR] object of type ‘NoneType’ has no len() [ERROR] Please report this error on https://github.com/sashs/ropper

Additionally, running the command ropper.py --file C:\Users\MyUser\test.exe -- search "% ?di" results in a continuous loop of this error: [INFO] Load gadgets from cache [LOAD] loading… 0%[ERROR] list index out of range [ERROR] Please report this error on https://github.com/sashs/ropper

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\MyUser\Python\lib\multiprocessing\forking.py", line 347, in main
    self = load(from_parent)
  File "C:\Users\MyUser\Python\lib\pickle.py", line 1378, in load
    return Unpickler(file).load()
  File "C:\Users\MyUser\Python\lib\pickle.py", line 858, in load
    dispatch[key](self)
  File "C:\Users\MyUser\Python\lib\pickle.py", line 880, in load_eof
    raise EOFError
EOFError

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:17 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
sashscommented, Oct 4, 2018

At least your bug should be fixed now. However, the cache has to be deleted. You can do that by using the --clear-cache command.

0reactions
eternaleclipsecommented, Oct 6, 2018

Yep 👍

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
List index out of range means index error in Python. It occurs when you try to access an index that is outside bounds...
Read more >
Python IndexError: List Index Out of Range [Easy Fix] - Finxter
To solve the “IndexError: list index out of range”, avoid do not access a non-existing list index. For example, my_list[5] causes an error...
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 >
Python IndexError: List Index Out of Range Error Explained
We can break down the text a little bit. We can see here that the message tells us that the index is out...
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