Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running #27

Open
BetaStacks opened this issue Jun 4, 2017 · 3 comments
Open

Error when running #27

BetaStacks opened this issue Jun 4, 2017 · 3 comments

Comments

@BetaStacks
Copy link

BetaStacks commented Jun 4, 2017

I get this error when I run ./reddit-background

Traceback (most recent call last):
File "./reddit-background", line 791, in
main()
File "./reddit-background", line 762, in main
desktops = _get_desktops_with_defaults()
File "./reddit-background", line 470, in _get_desktops_with_defaults
for num, res in enumerate(_OS_HANDLER.get_desktop_resolutions(), start=1):
File "./reddit-background", line 206, in get_desktop_resolutions
import Xlib.display
ImportError: No module named Xlib.display

@Yabk
Copy link

Yabk commented Jun 11, 2017

You need to install python xlib
sudo apt install python-xlib

@BetaStacks
Copy link
Author

Thanks!
I installed python-xlib and now the output is:

pi@201:~/reddit-backgrounds $ ./reddit-background Xlib.protocol.request.QueryExtension Traceback (most recent call last): File "./reddit-background", line 791, in <module> main() File "./reddit-background", line 787, in main desktop.set_background(paths[0]) File "./reddit-background", line 455, in set_background _OS_HANDLER.set_background(path, num=self.num) File "./reddit-background", line 200, in set_background if subprocess.call(cmd): File "/usr/lib/python2.7/subprocess.py", line 522, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

@sogaiu
Copy link

sogaiu commented Jan 31, 2018

FWIW, I got a similar error and installing feh got me further along.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants