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 "IndexError: list index out of range" when using feh

See original GitHub issue

If I run QuickWall without arguments it works showing just a couple Gtk warnings which I don’t think are related to QuickWall on its own. I’m on Linux Mint 19.2 with Cinnamon. Here’s the output using feh:

➜  ~ QuickWall --setter feh
[Setter]: Using feh as wallpaper setter
Traceback (most recent call last):
  File "/usr/local/bin/QuickWall", line 119, in <module>
    main()
  File "/usr/local/bin/QuickWall", line 104, in main
    setter = wall_setter.get_setter()
  File "/usr/local/lib/python3.6/dist-packages/QuickWall/setter.py", line 36, in get_setter
    return self.setter()
  File "/usr/local/lib/python3.6/dist-packages/QuickWall/feh.py", line 16, in __init__
    self.current = self._find_current()
  File "/usr/local/lib/python3.6/dist-packages/QuickWall/feh.py", line 22, in _find_current
    return open(self.feh_config_path).read().split(' ')[4]
IndexError: list index out of range

The warnings shown after the wallpaper is set just by running QuickWall:

Gtk-Message: 19:26:59.369: Failed to load module "appmenu-gtk-module"
UNKNOWN ROOT WINDOW TYPE DETECTED (Nemo-desktop), please file a bug
Save this wallpapers? [Y]es [N]o [E]xit y
Gtk-Message: 19:27:02.695: Failed to load module "appmenu-gtk-module"
UNKNOWN ROOT WINDOW TYPE DETECTED (Nemo-desktop), please file a bug

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ltgouveacommented, Sep 13, 2019

@deepjyoti30 Excellent work man, everything is working fine now 😃 I’m closing this issue, thank you very much for your help!

0reactions
deepjyoti30commented, Sep 13, 2019

@ltgouvea I looked into the installation error.

Please clone the latest commit, uninstall QuickWall and install it again and then run, it is probably fixed.

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 [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 >
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 >
How to Fix IndexError in Python - Rollbar
The IndexError in Python occurs when an item from a list is attempted to be accessed that is outside the index range of...
Read more >
Indexerror: list Index Out of Range in Python - STechies
The only way to avoid this error is to mention the indexes of list elements properly. Example: # Declaring list list_fruits = ['apple',...
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