Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems importing python-Xlib

I installed a new module and it appears as if one of its dependencies was not already installed. The module is called Xlib.display. Here is the error message I received:

from Xlib.display import Display
ImportError: No module named Xlib.display

Where can I find this module that I am apparently lacking? Google yielded no leads.

"Edit: I already have that sourceforge module downloaded but I still get the same results.

like image 291
Alan Avatar asked May 05 '11 03:05

Alan


1 Answers

Please try.

This shall install Xlib sudo apt-get install python-xlib

Then you can check

>>from Xlib.display import Display

To install PyMouse if you want to control and capture mouse events please use:

sudo easy_install https://github.com/pepijndevos/PyMouse/zipball/master

like image 172
user2698178 Avatar answered Oct 14 '22 01:10

user2698178