Modify and New in userconfig don't work due to unicode errors

Bug #205487 reported by ktulu77
18
Affects Status Importance Assigned to Milestone
kde-guidance (Ubuntu)
Fix Released
Undecided
Andreas Wenning

Bug Description

Binary package hint: kde-systemsettings

Hi,
On a fresh Kubuntu 8.04Beta, In System Settings -> User Manager nothing happens when I click on Modify or New on Users tab. (I have switched to administrator mode).
I have this error in the terminal :

Error: "/var/tmp/kdecache-theo" is owned by uid 1000 instead of uid 0.
adding Gestion des utilisateurs /usr/share/applications/kde/userconfig.desktop

Pythonize constructor -- pid = 6957
Python interpreter initialized!

Pythonize constructor -- pid = 6957
no user removed
Error: "/tmp/ksocket-theo" is owned by uid 1000 instead of uid 0.
no user removed
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/userconfig.py", line 358, in slotNewClicked
    newuid = self.usereditdialog.showNewUser()
  File "/var/lib/python-support/python2.5/userconfig.py", line 898, in showNewUser
    self._repopulateGroupsPrivileges()
  File "/var/lib/python-support/python2.5/userconfig.py", line 833, in _repopulateGroupsPrivileges
    name = i18n(str(pn[group]))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in position 19: ordinal not in range(128)
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 71, in apport_excepthook
    pr['PythonArgs'] = '%r' % sys.argv
AttributeError: 'module' object has no attribute 'argv'

Original exception was:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/userconfig.py", line 358, in slotNewClicked
    newuid = self.usereditdialog.showNewUser()
  File "/var/lib/python-support/python2.5/userconfig.py", line 898, in showNewUser
    self._repopulateGroupsPrivileges()
  File "/var/lib/python-support/python2.5/userconfig.py", line 833, in _repopulateGroupsPrivileges
    name = i18n(str(pn[group]))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in position 19: ordinal not in range(128)

thank you.

Related branches

Revision history for this message
Yuriy Kozlov (yuriy-kozlov) wrote :

Confirmed by duplicate.

Changed in kde-guidance:
status: New → Confirmed
Revision history for this message
Yuriy Kozlov (yuriy-kozlov) wrote :

I cannot reproduce this on my Hardy installation, en_us locale. What locale are you using?

Changed in kde-guidance:
status: Confirmed → Incomplete
Revision history for this message
Fabrice (fabriceaemail-web) wrote :

I have the same issue with fr_FR.UTF-8

Revision history for this message
ktulu77 (ktulu-highwaytoacdc) wrote :

I am using FR_fr

Revision history for this message
Christian Mangold (neversfelde) wrote :

No reproducing possible with de_DE.

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

I believe that I have a fix for this problem. Please test (on hardy) with the kde-guidance package avaible from my PPA https://launchpad.net/~andreas-wenning/+archive and report back with your results.

Thanks for your help.

Changed in kde-guidance:
assignee: nobody → andreas-wenning
status: Incomplete → In Progress
Revision history for this message
ktulu77 (ktulu-highwaytoacdc) wrote : Re: [Bug 205487] Re: Modify and New in userconfig don't work due to unicode errors

it doesn't seems to fix my problem. I have installed the package and tried
and I have exactly the same problem.
My groups or users have not any special characters. Only ascii. I think it
is a display problem.

2008/3/24, awen <email address hidden>:
>
> I believe that I have a fix for this problem. Please test (on hardy)
> with the kde-guidance package avaible from my PPA https://launchpad.net
> /~andreas-wenning/+archive and report back with your results.
>
> Thanks for your help.
>
>
> ** Changed in: kde-guidance (Ubuntu)
>
> Assignee: (unassigned) => awen (andreas-wenning)
> Status: Incomplete => In Progress
>
>
> --
> Modify and New in userconfig don't work due to unicode errors
> https://bugs.launchpad.net/bugs/205487
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

@ktulu77

Can I have you:
1. Go to a terminal
2. Start "python"
3. In the python prompt input these two lines: "import locale" and "locale.getpreferredencoding()"
What is then outputted?

Revision history for this message
ktulu77 (ktulu-highwaytoacdc) wrote :

Python 2.5.2 (r252:60911, Mar 12 2008, 13:39:09)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.getpreferredencoding()
'UTF-8'

it seems to be ok isn't it ?

2008/3/24, awen <email address hidden>:
>
> @ktulu77
>
> Can I have you:
> 1. Go to a terminal
> 2. Start "python"
> 3. In the python prompt input these two lines: "import locale" and "
> locale.getpreferredencoding()"
> What is then outputted?
>
>
> --
>
> Modify and New in userconfig don't work due to unicode errors
> https://bugs.launchpad.net/bugs/205487
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
ktulu77 (ktulu-highwaytoacdc) wrote :

Python 2.5.2 (r252:60911, Mar 12 2008, 13:39:09)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.getpreferredencoding()
'UTF-8'

it seems to be ok isn't it ?

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

@ktulu77
Yes, it seems fine.

You are running kipi-plugins 0.8.0svn20080103-0ubuntu9 now?

With this version: What do you get when running it from the terminal?

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 205487] Re: Modify and New in userconfig don't work due to unicode errors

kipi-plugins/kde-guidance

Revision history for this message
ktulu77 (ktulu-highwaytoacdc) wrote :

I don't understand I can't run kipi-plugins/kde-guidance on a terminal.

Revision history for this message
Romain Henriet (romain-henriet) wrote :

Same problem for me (French).

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

Check which version of kde-guidance you are using. (This can be doing by issuing the following command in a terminal "dpkg -l kde-guidance" without the quotes).

Run the user configuration utility from the terminal. Can be done with the command "userconfig", again without the quotes. What happens, which errors is reported in the terminal.

If you need to use the user configuration utility in administrator mode, you should run "sudo userconfig" in a terminal.

Please report what happens. You will most likely receive some errors in the terminal; please attach them as a file in your response.

Revision history for this message
ktulu77 (ktulu-highwaytoacdc) wrote :

Ok, I have downloaded kde-guidance 0.8.0svn20080103-0ubuntu9 and installed it. dpkg -l shows me that it is ok.
But I have still the bug.

I have attached the log.

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

This bug was fixed in the package kde-guidance - 0.8.0svn20080103-0ubuntu9

---------------
kde-guidance (0.8.0svn20080103-0ubuntu9) hardy; urgency=low

  [ Andreas Wenning ]
  * Added kubuntu_22_userconfig_utf8.patch which fixes unicode problems present
    under some locales. (LP: #205487)

  [ Scott Kitterman ]
  * Add kubuntu_20_displayconfig_dynamic_driver_list.patch to dynamically list
    all available driver vendors and not depend on a hard coded list
    (LP: #149793)

 -- Scott Kitterman <email address hidden> Sat, 29 Mar 2008 23:10:20 -0400

Changed in kde-guidance:
status: In Progress → Fix Released
Revision history for this message
ktulu77 (ktulu-highwaytoacdc) wrote :

it doesn't seem to fixe the bug on my kubuntu updated with this version. I have still the same error.

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

@ktulu
Did you remember to uninstall the version of kde-guidance that you downloaded from my PPA. As the versions are numbered the same, you wouldn't get this new one.

Check that my PPA is not in your sources.list. Then uninstall kde-guidance, use apt-get autoclean, and reinstall kde-guidance.

Revision history for this message
Scott Kitterman (kitterman) wrote :

I'd also suggest creating a new user and see if the problem still exists
for new users.

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

@ktulu
A new version of the kde-guidance package has been released, so this will override the onw from my PPA in any case. After todays update, if the problem isn't fixed, not even with a new user, please report back.

Revision history for this message
Fabrice (fabriceaemail-web) wrote :

@Awen

FYI, The new kde-guidance package solves the issue on my computer. I now can modify my users.
Thanks !

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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