-
Chris: I edited /usr/bin/autokey to look like this:
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys.path
sys.path.append("/usr/share/pyshared")
import gtk, sys, optparse
from autokey.autokey import AutoKeyApplication
And now this is what happens:
#autokey
Traceback (most recent call last):
File "/usr/bin/autokey", line 4, in <module>
import...
2009-07-22 11:53:18 UTC in AutoKey
-
Chris wrote:"Puppy includes dpkg".
Well, sort of. There is a dpkg-deb, but it does not install .deb packages. Deb packages must be converted to .pet packages first. And that is how I installed Autokey on Puppy.
I still think python just needs to know where to find stuff:
# python
Python 2.5 (r25:51908, Jan 20 2007, 12:35:57)
[GCC 3.4.4] on linux2
Type "help"...
2009-07-21 13:46:07 UTC in AutoKey
-
Thanks for the suggestion, Chris:
# python
Python 2.5 (r25:51908, Jan 20 2007, 12:35:57)
[GCC 3.4.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import autokey
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named autokey...
2009-07-20 21:00:46 UTC in AutoKey
-
Chris, I thought a bit about the import error:
Is there a module called "autokey.autokey"?
In the script /usr/bin/autokey, line 5 reads:
"from autokey.autokey import AutoKeyApplication"
But AutokeyApplication is declared as a Class in /usr/share/pyshared/autokey.py.
So, could there be an error in the autokey script itself?
- Jeff.
2009-07-20 13:41:42 UTC in AutoKey
-
Chris wrote:
"add the path where the autokey folder ended up to that variable."
Autokey ends up all over the place :-)
There is an executable script in /usr/bin
Then there is a folder /usr/share/pyshared/autokey
I presume it is that folder you are referring to.
But I have no idea where the variable PYTHONPATH might be found.
I did find a file called posixpath.py in...
2009-07-20 13:20:05 UTC in AutoKey
-
Update: I found a Puppy Python through the helpful Puppy network.
Now, when I try to run AutoKey, it tells me:
Traceback (most recent call last):
File /usr/bin/autokey, line 5, in <module>
from autokey.autokey import AutokeyApplication
ImportError: No module named autokey.autokey
Any ideas how I could get AutoKey running on Puppy?
- Jeff.
2009-07-19 20:13:09 UTC in AutoKey
-
I am trying out Pupeee on my Asus eeePC. It's very small and fast, and it's got most of what Ubuntu has in the way of functionality.
But it doesn't have Python!
I converted the .deb package to a .pet ("Puppy's Extra Treats") package, and it did install with the Puppy Package Manager.
But when I run Autokey from the Puppy terminal, it tells me:
/usr/bin/autokey...
2009-07-19 19:44:55 UTC in AutoKey
-
Yeah, mfseeker, I tried opening and minimizing a terminal while I was triggering phrases in gEdit. I can't confirm your observations - AutoKey works fine.
- Jeff Schallenberg
Mont Saint-Hilaire, Québec.
2009-07-15 18:55:52 UTC in AutoKey
-
I am having so much fun with AutoKey, I thought I would start a thread about cool ways that AutoKey is saving us keystrokes and the strain of remembering Linux commands.
The $(exec) function is great for me.
When I have to switch keyboard layouts between French and English, I just call up the appropriate tray phrase or enter its abbreviation:
kbe ->$(exec...
2009-07-14 18:49:18 UTC in AutoKey
-
"to use multiple keyboard layouts, you will need to switch between them using setxkbmap. You could set up a hotkey within AutoKey to run setxkbmap and perform the switching"
Thanks for the explanation, Chris. I set up two $(exec...) hotkey phrases in Autokey that switch to Canadian and US keyboards. AND the panel indicator still follows the layout!
I now agree with MarshaG's ori.
2009-07-13 17:18:09 UTC in AutoKey