scottkirkwood / key-mon

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

Problems with debian install under Kubuntu. #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I just downloaded key-mon (the deb file) and installed it on Kubuntu 10.04. 
When I try to run it I get this error:

computeruser@SoaringCondor:~$ key-mon help
Xlib.protocol.request.QueryExtension
Xlib.protocol.request.QueryExtension
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/keymon/key_mon.py", line 652, in Main
    keymon = KeyMon(options)
  File "/usr/lib/pymodules/python2.6/keymon/key_mon.py", line 108, in __init__
    self.CreateWindow()
  File "/usr/lib/pymodules/python2.6/keymon/key_mon.py", line 223, in CreateWindow
    self.mouse_indicator_win = shaped_window.ShapedWindow(self.SvgFname('mouse-indicator'))
  File "/usr/lib/pymodules/python2.6/keymon/shaped_window.py", line 39, in __init__
    self.pixbuf = self.pixbufs.Get('mouse')
  File "/usr/lib/pymodules/python2.6/keymon/lazy_pixbuf_creator.py", line 57, in Get
    name = self.CreatePixbuf(name)
  File "/usr/lib/pymodules/python2.6/keymon/lazy_pixbuf_creator.py", line 74, in CreatePixbuf
    img = self._Composite(img, self._ReadFromFile(op))
  File "/usr/lib/pymodules/python2.6/keymon/lazy_pixbuf_creator.py", line 103, in _ReadFromFile
    return gtk.gdk.pixbuf_new_from_file(fname)
glib.GError: Couldn't recognize the image file format for file 
'/usr/lib/pymodules/python2.6/keymon/themes/classic/mouse-indicator.svg'

Any ideas? Thanks
Dave

Original issue reported on code.google.com by scottaki...@gmail.com on 6 Jul 2010 at 7:55

GoogleCodeExporter commented 9 years ago
I suspect that I need to add gtk2-engines-pixbuf as a dependency to the the 
debian package.
This will also pull in libcairo2 which is what is needed to handle svg files (I 
think.).

Original comment by scottaki...@gmail.com on 6 Jul 2010 at 8:16

GoogleCodeExporter commented 9 years ago
The missing library is librsvg2-common
i.e. sudo apt-get install librsvg2-common
should fix your problem.
I'll add it as a dependency to the Debian package so that it automatically will 
get installed in the future.
Thanks for the bug report.

Original comment by scottaki...@gmail.com on 8 Jul 2010 at 1:03

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks! I can confirm it works for me now. :)
One question. How does it show a middle button or wheel press? I see wheel 
up/down, but I don't see an indication of wheel presses (which are button 2). 
It's not actually a big deal. The app is working great for me now. Thanks again.

Original comment by davestec...@gmail.com on 8 Jul 2010 at 1:13