Package Details: obkey-git 1.0.11.gf599e29-1

Git Clone URL: https://aur.archlinux.org/obkey-git.git (read-only)
Package Base: obkey-git
Description: Openbox Key Editor - converted to PyGObject.
Upstream URL: https://github.com/stevenhoneyman/obkey
Licenses: GPL2
Conflicts: obkey
Provides: obkey
Submitter: nsf
Maintainer: stevenhoneyman
Last Packager: stevenhoneyman
Votes: 112
Popularity: 0.126823
First Submitted: 2009-02-11 15:04
Last Updated: 2015-06-09 18:11

Latest Comments

stevenhoneyman commented on 2015-03-28 13:57

Nah it's dead upstream and I just did a "best effort" job of porting it across in the hope it would be picked up by someone with more python enthusiasm than me :P

pmattern commented on 2015-03-28 13:53

> P.S. You'd missed a variable "$_pkgname"
Yeah. An oversight as I first intended to introduce this variable as it's used e. g. in all LXQt Git packages but later on thought this actually doesn't make sense here. Sorry.

While we're at it: an issue tracker regarding the code / fork itself doesn't exist, does it?

stevenhoneyman commented on 2015-03-28 13:20

Thanks - updated.

I think python2-gobject2 *may* solve your gtk3 issue but might need some change making. I really hate python and this whole python2/3, gtk2/3 battle.

P.S. You'd missed a variable "$_pkgname"

pmattern commented on 2015-03-28 13:07

ObKey compiled using this package fails to start on systems lacking gtk3. The corresponding error message starts off with
> You have imported the Gtk 2.0 module. Because Gtk 2.0 was not designed for use with
> introspection some of the interfaces and API will fail. As such this is not supported by the
> pygobject development team and we encourage you to port your app to Gtk 3 or greater.
Looks like gtk3 was missing as dependency but not sure whether there's some other workaround.

It would be helpful to have obkey.desktop integrated in this package.

If you should be interested you may find a PKGBUILD version implementing all this at your disposal on https://gist.github.com/pmattern/9610e7580ed89d61c9e4. It also comprises some changes similar to those that did exist in sekret's one already:
=> 'armv7h' was added to 'arch' as ObKey is working fine on a Cubietruck running Arch Linux ARM here. Not sure whether 'all' applies as well as I can't test different architectures.
=> download is handled via HTTPS
=> package version is derived from Git checkout while building as it's common practice with VCS packages in AUR

Aside from this the package is missing AUR metadata file .SRCINFO as described on https://wiki.archlinux.org/index.php/Arch_User_Repository#AUR_metadata.

stevenhoneyman commented on 2015-02-21 17:23

Looks functionally identical apart from different version numbering style. Did I miss something?

sekret commented on 2015-02-21 17:15

Updated PKGBUILD

http://codepad.org/T0YmeFJd

pmattern commented on 2015-02-20 00:07

Package is missing AUR metadata file .SRCINFO as described in https://wiki.archlinux.org/index.php/Arch_User_Repository#AUR_metadata.

stevenhoneyman commented on 2014-06-09 19:46

Hi Melodie,

I'll try to help!

None of the "logic" in the code has changed, just a lot of changes to wording, and a few functions that need an extra parameter now - so I would expect the old obkey to have the exact same error. From the looks of it though, my best guess would be your rc.xml file has more than one <keyboard></keyboard> section, or <chainQuitKey></chainQuitKey> is missing from it.

If you can email me your rc.xml file, I can take a look and see if I can either find the problem, or add some better error handling to the obkey code if it is just a simple mistake in your config file causing the issue.

Thanks,
Steven

melodie commented on 2014-06-09 03:17

Hi stevenhoneyman,

it is nice of you! I have updated, however it does not start, it errors with this message:
*************
$ obkey
Traceback (most recent call last):
File "/usr/bin/obkey", line 50, in <module>
ktbl = obkey_classes.KeyTable(al, ob)
File "/usr/lib/python2.7/site-packages/obkey_classes.py", line 189, in __init__
self.apply_cqk_initial_value()
File "/usr/lib/python2.7/site-packages/obkey_classes.py", line 369, in apply_cqk_initial_value
cqk_accel_key, cqk_accel_mods = key_openbox2gtk(self.ob.keyboard.chainQuitKey)
File "/usr/lib/python2.7/site-packages/obkey_classes.py", line 91, in key_openbox2gtk
toks = obstr.split("-")
AttributeError: 'NoneType' object has no attribute 'split'

*************

I hope it can be fixed?

Regards,
Mélodie

stevenhoneyman commented on 2014-05-25 12:01

Updated the code to use PyGObject instead of the legacy PyGTK, as upstream has been "dead" for years

browntown commented on 2013-11-05 03:12

Should this merge with the newly moved to AUR 'obkey' They appear to be the same thing.

KaiSforza commented on 2013-04-10 21:44

This should be updated to reflect the new pacman 4.1 source array and version scheme.

melodie commented on 2012-06-24 23:07

Hi,

I just installed it from this pkgbuild and it crashes right on at start.

****************
$ obkey

** (process:2747): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

** (process:2747): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'

** (process:2747): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'
Traceback (most recent call last):
File "/usr/bin/obkey", line 49, in <module>
ktbl = obkey_classes.KeyTable(al, ob)
File "/usr/lib/python2.7/site-packages/obkey_classes.py", line 188, in __init__
self.apply_cqk_initial_value()
File "/usr/lib/python2.7/site-packages/obkey_classes.py", line 366, in apply_cqk_initial_value
cqk_accel_key, cqk_accel_mods = key_openbox2gtk(self.ob.keyboard.chainQuitKey)
File "/usr/lib/python2.7/site-packages/obkey_classes.py", line 90, in key_openbox2gtk
toks = obstr.split("-")
AttributeError: 'NoneType' object has no attribute 'split'

****************

I don't know if this information is relevant, I give it in case : I do have a bunch of python installed

**************
$ ls python*
python python2-config python3 python3.2-config
python-config python2.7 python3-config python3.2mu
python2 python2.7-config python3.2 python3.2mu-config

$ ls -l python2
lrwxrwxrwx 1 root root 9 24 avril 02:02 python2 -> python2.7
$

**************

Any idea to fix obkey ?

Saint commented on 2012-04-23 01:01

I recently update the pkg, also I didn't have any trouble executing it, can you try again?

Anonymous comment on 2012-03-21 16:53

i get this :S : [x11tete11x@(none) ~]$ obkey
Traceback (most recent call last):
File "/usr/bin/obkey", line 40, in <module>
ob.load(path)
File "/usr/lib/python2.7/site-packages/obkey_classes.py", line 1668, in load
self.dom = xml.dom.minidom.parse(path)
File "/usr/lib/python2.7/xml/dom/minidom.py", line 1914, in parse
return expatbuilder.parse(file)
File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 924, in parse
result = builder.parseFile(fp)
File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 211, in parseFile
parser.Parse("", True)
xml.parsers.expat.ExpatError: no element found: line 1, column 0
[x11tete11x@(none) ~]$

Anonymous comment on 2012-03-20 15:36

can i add any action at the shortcuts? like firefox for example...

Saint commented on 2011-09-07 00:03

Do you tried it, with 3.5?

scwalla commented on 2011-08-29 00:57

breaks default rc.xml with Openbox 3.4

kooothor commented on 2011-01-29 23:57

Hello,
I did remove the package with pacman -Rs obkey-git
then reinstalled it with yaourt -S obkey-git
and I had an other error, as I'm using lxde, it didn't found the file .config/openbox/rc.xml
so I just cp'd lxde-rc.xml in rc.xml and it worked :D
Bye
~ktr

Saint commented on 2010-11-03 02:40

Hi rdfreitas and kooothor,

I tried several times to obtain your errors,
but I have no problem executing the obkey.

Can you trying uninstalling, cleaning the cache, and re-installing?

Cheers,

kooothor commented on 2010-11-03 00:37

I have this error :

$ obkey
** Message: pygobject_register_sinkfunc is deprecated (GtkWindow)
** Message: pygobject_register_sinkfunc is deprecated (GtkInvisible)
** Message: pygobject_register_sinkfunc is deprecated (GtkObject)
Traceback (most recent call last):
File "/usr/bin/obkey", line 28, in <module>
import obkey_classes
ImportError: No module named obkey_classes

:/

Anonymous comment on 2010-11-02 17:59

error.
─(renan@rdfreitas Ter, 02 Nov 10)─————————————————————————————————————————————————————————————————————————─(/home/renan)────┐
└─(15:48 $)─> obkey
Traceback (most recent call last):
File "/usr/bin/obkey", line 53, in <module>
ktbl = obkey_classes.KeyTable(al, ob)
File "/usr/lib/python2.7/site-packages/obkey_classes.py", line 181, in __init__
self.apply_cqk_initial_value()
File "/usr/lib/python2.7/site-packages/obkey_classes.py", line 359, in apply_cqk_initial_value
cqk_accel_key, cqk_accel_mods = key_openbox2gtk(self.ob.keyboard.chainQuitKey)
File "/usr/lib/python2.7/site-packages/obkey_classes.py", line 83, in key_openbox2gtk
toks = obstr.split("-")
AttributeError: 'NoneType' object has no attribute 'split'

Saint commented on 2010-10-28 16:05

Hi alih,

I didn't note, because when I build the pkg, nothing happends http://pastebin.com/YMf0f8XW
So, I never try to pull the repo, thanks!

Cheers!

Anonymous comment on 2010-10-28 15:33

Hi Saint,
please note that git pull --all origin gives this:

fatal: fetch --all does not take a repository argument

Just git pull --all will do.
Thanks.

Saint commented on 2010-10-20 01:39

Hi Perre,

this was an python 3 issue,
I only changed the PKGBUILD,
from python to python2, and also the dependencies.

Thanks!

Cheers

Anonymous comment on 2010-10-19 20:34

$ obkey
Traceback (most recent call last):
File "/usr/bin/obkey", line 26, in <module>
import gtk
ImportError: No module named gtk