lxkeymap crashes with: AttributeError: 'LxkeymapWindow' object has no attribute 'default_path'

Bug #1009103 reported by ppedrok
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
LXKeymap
New
Undecided
Unassigned
lxkeymap (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When started from LXTerminal, it shows the following:

Sections: ['Global']
Layouts: ['latam']
Variants: ['deadtilde']
Options: []
Traceback (most recent call last):
  File "/usr/bin/lxkeymap", line 643, in <module>
    window = LxkeymapWindow()
  File "/usr/bin/lxkeymap", line 86, in __new__
    new_object.finish_initializing(builder)
  File "/usr/bin/lxkeymap", line 210, in finish_initializing
    self.selection_layout.select_path(self.default_path)
AttributeError: 'LxkeymapWindow' object has no attribute 'default_path'

I checked with Bug #945603, but even applying ppa:lubuntu-dev/staging or precise-proposed, with version "0.7.99+dfsg-0ubuntu2~ppa1" it still crashes.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: lxkeymap 0.7.99+dfsg-0ubuntu1.1
ProcVersionSignature: Ubuntu 3.2.0-24.39-generic-pae 3.2.16
Uname: Linux 3.2.0-24-generic-pae i686
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu8
Architecture: i386
Date: Tue Jun 5 12:40:23 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=es_PY:es
 PATH=(custom, no user)
 LANG=es_PY.UTF-8
 SHELL=/bin/bash
SourcePackage: lxkeymap
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
ppedrok (ppedrok) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in lxkeymap (Ubuntu):
status: New → Confirmed
Revision history for this message
prom (matej-svrcek) wrote :

The way to remove the problem was to put the /etc/default/keyboard to the original state.

XKBMODEL="pc105"
XKBLAYOUT="cz"
#XKBLAYOUT="cz,en"
XKBVARIANT=""
#XKBVARIANT=","
XKBOPTIONS=""
#XKBOPTIONS="grp:alt_shift_toggle,grp_led:scroll"

And Lxkeymaps works as it should. I was doing this edit to enable keyboard switch by ctrl+left_shift for us and cz locale.

Revision history for this message
rangua (rangua) wrote :

I tried modifying /etc/default/keyboard with no luck. my configuration is now the same as yours, just switch cz for latam..

Revision history for this message
rangua (rangua) wrote :

for those who suffer this bug and still want to change the layout, type in console
setxbkmap <your-layout>

Revision history for this message
pawciobiel (pawciobiel) wrote :

I have a feeling that this bug has been fixed already.
Can you install 0.7.99+dfsg-0ubuntu3~ppa2 and see if it help please?

If it doesn't please open terminal copy and past the output of the following:

cat ~/.config/lxkeymap.cfg

Did you click any buttons or the crash happens just after you start lxkeymap?

Revision history for this message
ppedrok (ppedrok) wrote :

Partially fixed. The new version starts ok. But the problem with the "latam" layout continues: I can't change to any latin american layout. For example changing to Paraguay gives:

Error: Can't find file "py" for symbols include
                  Exiting
                  Abandoning symbols file "(null)"

I think lxkeymap tries to change to each different country, but there is only a "latam" config - which does not appear in the list.

Revision history for this message
pawciobiel (pawciobiel) wrote :

I guess your problem now is not within lxkeymap itself but in missing Paraguay xkb symbols file.
wander weather this could be the case when no one has actually created one?
If paraguay layout is similar to argentinian you could try to copy it and possibly amend it to your needs.

sudo cp /usr/share/X11/xkb/symbols/ara /usr/share/X11/xkb/symbols/py

You may want to add it to all list files /usr/share/X11/xkb/rules/ as well.

If you need more info please have a look at:
http://www.x.org/wiki/XKB
http://hektor.umcs.lublin.pl/~mikosmul/computing/articles/custom-keyboard-layouts-xkb.html

And if you decide to contribute your symbols file to X and Ubuntu then look at:
http://www.freedesktop.org/wiki/Software/XKeyboardConfig/Rules

Changed in lxkeymap (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
ppedrok (ppedrok) wrote :

I think the problem still remains. Actually, there is no layout for any of the latin american countries: Bolivia, Chile, Mexico, Paraguay, etc. There is only one layout, "latam", for all of them, but lxkeymap does not allow to select it - it is not on the list.
The problem with Argentina is worse: on selecting it, instead of selecting the latin american layout, lxkeymap selects one arabian, with different letters, etc.

Revision history for this message
pawciobiel (pawciobiel) wrote :

Oh! I'm sorry I didn't look close enough to see the actual issue.
Yes, you are absolutely right. For all those countries the setting should be `latam`.
For some reason settings for Argentina is `ara` which is Arabic.

I think the following should fix this for Paraguay until we manage to fix it properly:

sudo cp /usr/share/X11/xkb/symbols/latam /usr/share/X11/xkb/symbols/py

In my last comment I've pasted the full path to `ara` because I had seen it from strace on xklavier/libxklavier and that's what tricked me.

Interesting enough Unity keyboard applet (or whatever it's called) doesn't list those countries but when doing a search for any of those countries it automagically displays latin american - `latam`.

I think that we can treat this bug as a duplicate of https://bugs.launchpad.net/lxkeymap/+bug/1014250

Nevertheless the problem exists in lxkeymap/xklavier/libxklavier and we will try to sort this out as soon as we can.

Revision history for this message
Mark-pcnetspec (mark-pcnetspec) wrote :

Still affecting Lubuntu 14.04

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.