ls-dbus-backend crashed with TabError in unknown(): inconsistent use of tabs and spaces in indentation

Bug #1014429 reported by Chris Halse Rogers
108
This bug affects 23 people
Affects Status Importance Assigned to Milestone
language-selector (Ubuntu)
Fix Released
High
Unassigned
Quantal
Fix Released
High
Unassigned

Bug Description

This is a fresh install, with a déjà dúp restored home directory. The ‘Incomplete language support’ prompt popped up, and I hit the run-this-now button. Language Support popped up, and I hit the “Set System Wide” button, whereupon the Language Support window stopped responding and this error was generated.

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: language-selector-common 0.83
ProcVersionSignature: Ubuntu 3.4.0-5.11-generic 3.4.0
Uname: Linux 3.4.0-5-generic x86_64
ApportVersion: 2.2.3-0ubuntu3
Architecture: amd64
Date: Mon Jun 18 08:39:34 2012
ExecutablePath: /usr/lib/language-selector/ls-dbus-backend
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120521)
InterpreterPath: /usr/bin/python3.2mu
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/lib/language-selector/ls-dbus-backend
ProcEnviron:

PythonArgs: ['/usr/lib/language-selector/ls-dbus-backend']
SourcePackage: language-selector
Title: ls-dbus-backend crashed with TabError in unknown(): inconsistent use of tabs and spaces in indentation
Traceback:
 File "/usr/lib/language-selector/ls-dbus-backend", line 25
     self._datadir = "/usr/share/language-selector/"
                                                   ^
 TabError: inconsistent use of tabs and spaces in indentation
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

Revision history for this message
Chris Halse Rogers (raof) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in language-selector (Ubuntu):
status: New → Confirmed
Revision history for this message
Kazushige GOTOH (hautang0325) wrote :

I am running Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120521) too.
I have installed Japanese, Traditional Chinese, Simplified Chinese and Korean with Language Support.
My system language is Japanese.

Today the same error occurred as soon as the desktop finished loading.
I did not do any operations like moving pointing device or hitting keyboard.

Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1014429

tags: added: iso-testing
C de-Avillez (hggdh2)
tags: added: qa-manual-testing
Revision history for this message
Giacomo Giustozzi (psychowood) wrote :

Seems to be some bad/mixed indendation, even if it should jsut give a warn instead of an error.

----
python -tt -m py_compile ls-dbus-backend
TabError: ('inconsistent use of tabs and spaces in indentation', ('ls-dbus-backend', 25, 60, ' self._datadir = "/usr/share/language-selector/"\n'))
TabError: ('inconsistent use of tabs and spaces in indentation', ('ls-dbus-backend', 26, 57, " self._re_locale = re.compile(r'^[\\w.@:-]+$')\n"))
TabError: ('inconsistent use of tabs and spaces in indentation', ('ls-dbus-backend', 110, 35, '\tserver = LanguageSelectorServer()\n'))
TabError: ('inconsistent use of tabs and spaces in indentation', ('ls-dbus-backend', 111, 26, '\tgobject.MainLoop().run()\n'))
----

Apply with

patch ls-dbus-backend patch.txt

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "patch.txt" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
dino99 (9d9) wrote :

Got this crash on Quantal i386 logged as gnome-classic

this has happened because i've killed the endless looping started by "apply to whole system" to set my language

*****
Title: ls-dbus-backend crashed with TabError in unknown(): inconsistent use of tabs and spaces in indentation
Traceback:
 File "/usr/lib/language-selector/ls-dbus-backend", line 25
     self._datadir = "/usr/share/language-selector/"
                                                   ^
 TabError: inconsistent use of tabs and spaces in indentation

*****
before this crash, i've had a first one (dupe of bug #1013996)

Revision history for this message
dino99 (9d9) wrote :

more comment about the process killed noted above into post #7: it has been killed via System Monitor process.

tags: added: i386
Revision history for this message
CSRedRat (csredrat) wrote :

This affect me. Ubuntu 12.10 Alpha 3.

Steve Langasek (vorlon)
Changed in language-selector (Ubuntu):
importance: Undecided → High
status: Confirmed → Triaged
Steve Langasek (vorlon)
Changed in language-selector (Ubuntu Quantal):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package language-selector - 0.85

---------------
language-selector (0.85) quantal; urgency=low

  * ls-dbus-backend: fix for python3 compatibility. LP: #1014429.
  * Do not touch /etc/environment; we should be updating /etc/default/locale
    exclusively. On upgrade, clean up any references that have been left
    behind in /etc/environment. LP: #1035498.
 -- Steve Langasek <email address hidden> Fri, 10 Aug 2012 22:06:35 -0700

Changed in language-selector (Ubuntu Quantal):
status: Fix Committed → Fix Released
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.