vhermecz / key-mon

Automatically exported from code.google.com/p/key-mon
Apache License 2.0
0 stars 0 forks source link

Error: Missing xlib #143

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Just trying to launch the program
2.
3.

Please provide any additional information below.

I have moved from xubuntu to arch linux and this is not working now. 
I have both..
aur/python-xlib 0.15rc1-1 (1) [installed]
community/python2-xlib 0.15rc1-7 [installed]

Can you please advise?

Original issue reported on code.google.com by akov...@gmail.com on 13 Jan 2015 at 3:31

GoogleCodeExporter commented 9 years ago
Sorry,
the full error is this..

Traceback (most recent call last):
  File "/usr/bin/key-mon", line 2, in <module>
    import keymon.key_mon as km
  File "/usr/lib/python3.4/site-packages/keymon/key_mon.py", line 38
    print 'Error: Missing xlib, run sudo apt-get install python-xlib'

Original comment by akov...@gmail.com on 13 Jan 2015 at 3:33

GoogleCodeExporter commented 9 years ago
I am not familiar with Arch Linux, but I think the default Python is Python 3 
on Arch and the traceback seems to confirm that.

I am guessing that you didn't install key-mon through Arch's key-mon package, 
or the PKGBUILD will make sure it runs with python2.

You should be able to run `python2 /usr/bin/key-mon` if you really don't want 
to install the distribution package.

Original comment by livibet...@gmail.com on 13 Jan 2015 at 4:51

GoogleCodeExporter commented 9 years ago
Thank you so much.
I feel like an idiot but I actually searched for the arch package and didn't 
find it before which is why I installed from source. I think I missed the dash 
in the package name when I did the search.

pip uninstall keymon and aur install key-mon fixed everything.
Many thanks!

Original comment by akov...@gmail.com on 13 Jan 2015 at 5:01

GoogleCodeExporter commented 9 years ago

Original comment by livibet...@gmail.com on 13 Jan 2015 at 5:04

GoogleCodeExporter commented 9 years ago
You'll need to run:
sudo apt-get install python-xlib

as the error message notes.

Original comment by sc...@forusers.com on 13 Jan 2015 at 5:11