FedoraForum.org - Fedora Support Forums and Community
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2009
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    System-config-users wont stay open

    when I open this it opens up greyed out for a split second then closes.

    I started it in a console ,it did the same but the following was left in the terminal

    Code:
    [tytower@localhost ~]$ system-config-users
    Traceback (most recent call last):
      File "/usr/share/system-config-users/system-config-users.py", line 46, in <module>
        mainWindow.mainWindow()
      File "/usr/share/system-config-users/mainWindow.py", line 311, in __init__
        self.refresh()
      File "/usr/share/system-config-users/mainWindow.py", line 517, in refresh
        self.populate_lists()
      File "/usr/share/system-config-users/mainWindow.py", line 616, in populate_lists
        self.populate_user_list()
      File "/usr/share/system-config-users/mainWindow.py", line 574, in populate_user_list
        self.userStore.set_value(iter, 1, uidNumber)
    TypeError: value is of the wrong type for this column
    [tytower@localhost ~]$
    Can someone tell me how to fix it please

  2. #2
    Join Date
    Nov 2009
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have exactly the same problem and I just found a solution for it but this requires you to modify the code of the program which is written in python:

    1- you need to login using with the 'root' account, so open a terminal window and type:

    Code:
    su root
    and then enter the password.

    or if better if you can login using the 'root' in the GUI


    2- the file you need to edit is at the following location:

    /usr/share/system-config-users/mainwindow.py

    open this file using any editor. I used gedit, but I used the GUI to do that.


    3- at line 201 you will find the following statement:

    Code:
    self.userStore = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_INT, gobject.TYPE_STRING,
                                           gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING,
                                           gobject.TYPE_PYOBJECT)


    this should be changed to:

    Code:
    self.userStore = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_INT64, gobject.TYPE_STRING,
                                           gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING,
                                           gobject.TYPE_PYOBJECT)

    save the file and run "system-config-users" and it should work


    the problem is that the user nfsnobody has a userid of 4294967294 which is too big to fit in an integer data type as the original code assigns for the userid. this modification assigns long integer data type for that field which allows that number to fit and get displayed. This problem will happens when you try to view all users.
    Last edited by carempo; 10th November 2009 at 07:54 PM.

  3. #3
    Join Date
    Nov 2009
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot for posting
    Thats what I did -view all users


    I did in fact
    yum erase system-config-users
    and yum install system-config-users

    which fixed it ,but I did not open view all users again
    I notice that file is mainWindow.py and my updated file had that changed
    You seem to know what you are doing. Thanks again
    Last edited by tytower; 10th November 2009 at 09:46 PM.

Similar Threads

  1. drive wont stay open
    By jtravnick in forum Hardware
    Replies: 2
    Last Post: 17th November 2007, 12:42 PM
  2. system-config-users GUI will not open
    By jflesher in forum Using Fedora
    Replies: 2
    Last Post: 6th November 2007, 09:57 PM
  3. How can I get it to show my system users in system-config-samba ?
    By OralDeckard in forum Servers & Networking
    Replies: 1
    Last Post: 30th January 2007, 03:37 PM
  4. system config apps wont work
    By penguinsoldier in forum Using Fedora
    Replies: 2
    Last Post: 30th July 2005, 02:41 PM
  5. system-config-samba wont start
    By Peter296 in forum Using Fedora
    Replies: 3
    Last Post: 17th October 2004, 09:32 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •