systemsettings crashed with AttributeError in __init__(): 'module' object has no attribute 'argv'

Bug #861930 reported by Alejandro Hamann on 2011-09-29
This bug affects 27 people
Affects Status Importance Assigned to Milestone
kde-workspace (Ubuntu)

Bug Description

1) lsb_release -rd
Description: Ubuntu oneiric (development branch)
Release: 11.10

2) apt-cache policy kde-workspace
  Instalados: 4:4.7.1-0ubuntu3
  Candidato: 4:4.7.1-0ubuntu3
  Tabla de versión:
 *** 4:4.7.1-0ubuntu3 0
        500 oneiric/main amd64 Packages
        100 /var/lib/dpkg/status

3) I opened the Preferences Center, and i go to Local and then to Language of the system (i don't know what is the name in english), and then, systemsettings closed inesperately.

4) Always happens.

ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: systemsettings 4:4.7.1-0ubuntu3
ProcVersionSignature: Ubuntu 3.0.0-12.19-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelModules: nvidia wl
ApportVersion: 1.23-0ubuntu2
Architecture: amd64
Date: Wed Sep 28 20:38:53 2011
ExecutablePath: /usr/bin/systemsettings
InstallationMedia: Kubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110921.2)
ProcCmdline: /usr/bin/systemsettings -caption Preferencias\ del\ sistema --icon preferences-system
SourcePackage: kde-workspace
Title: systemsettings crashed with AttributeError in __init__(): 'module' object has no attribute 'argv'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin audio cdrom dialout fax lpadmin plugdev sambashare staff users video

Related branches

Alejandro Hamann (linkstat) wrote :
tags: removed: need-duplicate-check
Launchpad Janitor (janitor) wrote :

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

Changed in kde-workspace (Ubuntu):
status: New → Confirmed
visibility: private → public
ankspo71 (jamesb-71) wrote :

Kubuntu 11.10 beta 2, KDE 4.7.1
Running 'systemsettings' in the terminal, then going to 'systemsettings > Locale > System Languages' triggers a crash in systemsettings. The crash reporting service led me to this page.

Terminal's outout:
james@KDE:~$ systemsettings
james@KDE:~$ systemsettings(6835)/python (plugin): Error while running factory function for Python plugin: "language-selector/"
Traceback (most recent call last):
  File "<string>", line 18, in kpythonpluginfactory_bridge
  File "/usr/share/kde4/apps/language-selector/", line 9, in CreatePlugin
    return QtLanguageSelector("/usr/share/language-selector/", component_data, widget_parent)
  File "/usr/lib/python2.7/dist-packages/LanguageSelector/qt/", line 51, in __init__
  File "/usr/lib/python2.7/dist-packages/LanguageSelector/qt/", line 75, in init
  File "/usr/lib/python2.7/dist-packages/LanguageSelector/qt/", line 187, in updateLanguagesList
    languageList = self._cache.getLanguageInformation()
  File "/usr/lib/python2.7/dist-packages/LanguageSelector/", line 376, in getLanguageInformation
    li = LanguageInformation(self, code, lang)
  File "/usr/lib/python2.7/dist-packages/LanguageSelector/", line 41, in __init__
    if 'gnome-' not in sys.argv[0]:
AttributeError: 'module' object has no attribute 'argv'
systemsettings(6835)/python (plugin): Failed to import module
systemsettings(6835)/kcontrol KCModuleLoader::loadModule: This module has no valid entry symbol at all. The reason could be that it's still using K_EXPORT_COMPONENT_FACTORY with a custom X-KDE-FactoryName which is not supported anymore

Graham Waugh (gureamu) wrote :

I linked this bug to the language-selector code on launchpad.
Revision 525 in language-selector (specifically the change to causes this breakage in Kubuntu.
Changing line 41 of /usr/share/pyshared/LanguageSelector/ from...
 if 'gnome-' not in sys.argv[0]:
 if 'gnome-' not in 'foobar': #sys.argv[0]:
fixes the problem as a temporary workaround on Kubuntu, but will no doubt cause problems for Ubuntu with gnome.

Hope that helps someone.

Paul Loughman (snowhog) wrote :

I can confirm that the temporary workaround provided by Graham Waugh in #4 above works. Before I made the change to the file, accessing System Settings > Locale > System Languages would result in an error about a KCModule. Closing System Languages then resulted in a crash of System Settings.

After making the change to line 41 and rebooting, I got no error and accessing System Languages asked me if I wanted to download the languages. I acknowledged, the download took place, and I was then able to set my default system language to English (United States).

Paul Loughman (snowhog) wrote :


Kubuntu 11.10 64-bit
KDE 4.7.1

Graham Waugh (gureamu) wrote :

Fixed for me in language-selector-common version 0.56 released recently.
This was handled in bug #871922, I suggest this bug be closed as a duplicate of that one.

FriedChicken (domlyons) wrote :

I can confirm that this is fixed on today's update.

I will mark this bug as duplicate of #871922 as gureamu suggested.

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

Other bug subscribers