Getting "IndexError: list index out of range" when using feh
See original GitHub issueIf 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:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@deepjyoti30 Excellent work man, everything is working fine now 😃 I’m closing this issue, thank you very much for your help!
@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.