Failed to install Autokey on RHEL-5.9 Server

85 views
Skip to first unread message

Adam Basha

unread,
Aug 3, 2014, 3:22:38 AM8/3/14
to autoke...@googlegroups.com
python setup.py install

gets autokey installed and even shows in menu. But when running 
python autokey-gtk install
gives the following errors :
Traceback (most recent call last):
File "autokey-gtk", line 20, in ?
from autokey.gtkapp import Application
File "/usr/lib/python2.4/site-packages/autokey/gtkapp.py", line 23, in ?
import gettext, gtk, dbus, dbus.service, dbus.mainloop.glib
ImportError: No module named mainloop.glib

Any idea how to solve this ?  I direly need Autokey, anyone please help me to install autokey on RHEL 5.9.
Thanks in advance. 

Joe

unread,
Aug 3, 2014, 5:43:11 AM8/3/14
to autoke...@googlegroups.com
Welcome Adam!

Don't know the answer, but a few things look unusual:

1) Where did you get AutoKey from and what version?
2) AFAIK, the current AutoKey requires Python 2.7. Your messages appear
to refer to Python 2.4.
3) I don't remember the details, but I seem to remember that running
setup.py didn't work in the past - not by itself at least.

Joe

This is what I found in my list archive (very old stuff):

>
> Glad to hear that. Thanks a lot! And thanks again for the super key
> modifier gnome3.2 fix as well. Happy holidays.
>
> -Joon
>
> On Sun, 04 Dec 2011 18:09:42 -0600, Chris D <cde...@gmail.com> wrote:
>
> Yes in 99% of cases this should work now. We can probably update the
> setup instructions to reflect this.
>
> On Dec 3, 4:32 pm, Joon <joonp...@gmail.com> wrote:
> Hi,
>
> I just updated autokey to 0.81.2 in my openSUSE system, and I had
> removed installed package, and then I installed the new version with
> $ python setup.py install. I had to easy_install pyinotify, but
> otherwise it has been working well so far. Does python setup.py
> install work now? Because in INSTALL file it says:
>
> This application requires a full Debian package build - it cannot be
> installed using only
> the setup.py script:
>
> Thank you,
> Joon
> --
> You received this message because you are subscribed to the Google
> Groups "autokey-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to autokey-user...@googlegroups.com
> <mailto:autokey-user...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

Adam Basha

unread,
Aug 3, 2014, 9:26:40 AM8/3/14
to autoke...@googlegroups.com
Thank you Joe.
I got Autokey 0.82.2.tar.gz from https://code.google.com/p/autokey/downloads/list.

python setup.py install

 gives no problem at all.  It gets installed fine.  I even got entries for Autokey and Autokey KDE in gnome Menu≈ Applications->Accessories->Autokey and Autokey KDE.
But when I click on Autokey nothing seems to happen.  Somewhere in google search I found that I have to install autokey-gtk also.  So when I tried to install using

python autokey-gtk install

it gives the error posted above in my query.  "No module named dbus.mainloop.glib".
dbus-python is already installed.  

I still can't understand what else to do to run autokey.

Joe

unread,
Aug 3, 2014, 4:18:23 PM8/3/14
to autoke...@googlegroups.com
As I said, I don't know enough to solve your problem. But,

I have that as a deb from old testing. I ran dpkg against it and
(showing just the dependencies):

bigbird@ramdass:~/installs$ dpkg -I autokey-gtk_0.82.2-0~precise_all.deb
Depends: python (>= 2.5), python-central (>= 0.6.11), python-gtk2,
python-gtksourceview2, python-glade2, python-notify, python-dbus,
zenity, autokey-common

bigbird@ramdass:~/installs$ dpkg -I autokey-common_0.82.2-0~precise_all.deb
Depends: python (>= 2.5), python-central (>= 0.6.11), python-xlib,
python-simplejson, python-pyinotify, wmctrl

Python >=2.5 might be a problem.

What does
python -V
say on your system?

If you have Python 2.7, you would probably do better to try the latest
greatest bug release. It's a newer version of 0.90.4 and you can get it
from git.

https://github.com/jmetzmeier/autokey

This is the version Jordan Metzmeier, our current, very unofficial
maintainer has been working on, so it would be much easier for him to
look into any problems knowing that they're not just part of things that
have already been fixed since 0.82, which is several years old. I am
currently using this version on kubuntu 12.04 (with lots of backports)
and it works fine for me. Jordan put it in the ppa for Ubuntu 14.04
(which I know you can't use), so it seems like it is pretty compatible
with things.

If you don't want to deal with git, you can still get 0.90.4 from the
same place (code.google.com) you got 0.82 from. (Still needs Python
2.7.) That has everything except the latest bug fixes in it.

dbus is way over my head, but I found this very old post for Fedora
(which is a lot closer to what you have than Ubuntu). See if it makes
any sense to you.

http://www.linuxquestions.org/questions/linux-software-2/no-module-named-mainloop-glib-717114/

Joe

Adam Basha

unread,
Aug 3, 2014, 9:46:48 PM8/3/14
to autoke...@googlegroups.com
Thank you Joe.

Well, yesterday I stumbled upon the link before you have provided and already done all that was given in that link.
I installed pyrex, blas and lapack as per instructions there.  I also copied contents of sitepackages from /lib/ to /lib64/
but all the same, still I get the same error.

I have python 2.4, but I installed python 2.7 and changed the python environment to /usr/local/bin/python2.7
and still the error exists - No module named dbus.mainloop.glib.  Even it is showing as using the new python2.7 environment.

There is one more thing I can do, I have to update dbus-python to 0.83 as per the link again.  Well this one will be 
the last thing to do.  Shall try it later and inform you.  Thank you boss.

Any expert in Python would definitely succeed in this.  I hope some Python geek will hear this and do help people like me here.

Steve Fisher

unread,
Aug 4, 2014, 3:15:43 AM8/4/14
to autoke...@googlegroups.com
There are rpm packages available for fedora:
http://www.rpmfind.net/linux/rpm2html/search.php?query=autokey-gtk
Have you tried one?

Steve


--
You received this message because you are subscribed to the Google Groups "autokey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autokey-user...@googlegroups.com.

Adam Basha

unread,
Aug 4, 2014, 10:07:07 AM8/4/14
to autoke...@googlegroups.com
Thank you Steve.

Yes I have tried it, too many dependencies.  Doesn't suit RHEL 5.
Reply all
Reply to author
Forward
0 new messages