Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Error setting up printers in KDE 4.7.4

  1. #1
    Join Date
    Nov 2007
    Beans
    205

    Error setting up printers in KDE 4.7.4

    With the KDE 4.7.4 from oneiric-proposed, any attempt to configure printers using either the control centre or the printer applet give the following error:
    Code:
    Configure local and remote Printers
    
    The service `Printer Configuration` does not provide an interface
    `KCModule` with keyword
    `system—config—printer-kde/system-config-printer-kde.py` The factory
    does not support creating cornponents of the specified type
    
    Possible reasons
    ·An error occurred during your last KDE upgrade leaving an orphaned
    control module 
    ·You have old third party modules lying around
    Check tnese points carefully and try to remove the module mentioned in the error message if this fails,
    consider contacting your distributor or packager
    The files in /usr/share/kde4/apps/system-config-printer-kde are:
    Code:
    total 516
    -rw-r--r-- 1 root root  18369 2011-05-20 14:19 authconn.py
    -rw-r--r-- 1 root root  12396 2012-01-17 08:55 authconn.pyc
    -rw-r--r-- 1 root root   2882 2009-04-15 04:26 ipp-browse-dialog.ui
    -rw-r--r-- 1 root root  31556 2009-04-15 04:26 new-printer.ui
    -rw-r--r-- 1 root root  15096 2011-05-20 14:19 options.py
    -rw-r--r-- 1 root root  13413 2012-01-17 08:55 options.pyc
    -rw-r--r-- 1 root root   7942 2009-04-15 04:26 optionwidgets.py
    -rw-r--r-- 1 root root   6618 2012-01-17 08:55 optionwidgets.pyc
    lrwxrwxrwx 1 root root     43 2012-01-14 09:52 ppdippstr.py -> ../../../system-config-printer/ppdippstr.py
    -rw-r--r-- 1 root root   5847 2012-01-17 08:55 ppdippstr.pyc
    lrwxrwxrwx 1 root root     39 2012-01-14 09:52 pysmb.py -> ../../../system-config-printer/pysmb.py
    -rw-r--r-- 1 root root   5794 2012-01-17 08:55 pysmb.pyc
    -rw-r--r-- 1 root root   2882 2009-04-15 04:26 smb-browse-dialog.ui
    lrwxrwxrwx 1 root root     40 2012-01-14 09:52 smburi.py -> ../../../system-config-printer/smburi.py
    -rw-r--r-- 1 root root   2744 2012-01-17 08:55 smburi.pyc
    -rw-r--r-- 1 root root 179501 2011-05-20 14:19 system-config-printer-kde.py
    -rw-r--r-- 1 root root 111574 2012-01-17 08:55 system-config-printer-kde.pyc
    -rw-r--r-- 1 root root  71160 2011-05-20 14:19 system-config-printer.ui
    I tried moving system-config-printer-kde.py (and also system-config-printer*) out of the way and nothing changed.

    Does anyone have any clues? (A search in the bugs system for "control center printer" only found gnome-related reports).

  2. #2
    Join Date
    May 2006
    Beans
    39
    Distro
    Kubuntu

    Re: Error setting up printers in KDE 4.7.4

    I also have 4.7.4 from oneiric-proposed installed and printer configuration, both through systemsettings and through printer-applet work fine.

    If you've moved files around, I would recommend putting them back to start with. You have all the correct files in that directory.

    Did you restart your session after you upgraded?

  3. #3
    Join Date
    Nov 2007
    Beans
    205

    Re: Error setting up printers in KDE 4.7.4

    Quote Originally Posted by kitterma View Post
    If you've moved files around, I would recommend putting them back to start with. You have all the correct files in that directory.

    Did you restart your session after you upgraded?
    I did put them back once I found it didn't change anything. And yes I did restart the session after the upgrade (in fact since the problem is on a laptop, it's been rebooted several times since the upgrade).

  4. #4
    Join Date
    May 2006
    Beans
    39
    Distro
    Kubuntu

    Re: Error setting up printers in KDE 4.7.4

    This appears to be a periodic problem that pops up now and then (it's not new to 4.7.4). A bit of Googling suggests variously that reinstalling one of:

    system-config-printer-kde
    python-kde4
    python-qt4-dbus

    might help. I'd try that next. There's nothing in the code that changed with 4.7.4 that could be causing a problem like this.

  5. #5
    Join Date
    Nov 2007
    Beans
    205

    Re: Error setting up printers in KDE 4.7.4

    Still no joy, even after a reboot.

    Maybe the messages to the terminal after running the workaround suggested in the Debian bug report may give a clue:
    Code:
    sudo /usr/bin/kcmshell4 system-config-printer-kde
    Code:
    AttributeError: 'bool' object has no attribute 'markDefaults'
    kcmshell(4629)/python (plugin): Failed to import module 
    kcmshell(4629)/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
    (Unfortunately I am no expert in python or KDE internals).

  6. #6
    Join Date
    May 2006
    Beans
    39
    Distro
    Kubuntu

    Re: Error setting up printers in KDE 4.7.4

    It's probably not related, but it appears that python-gtk2 gets used in the common parts of printer-config-common. Do you have that installed?

  7. #7
    Join Date
    Nov 2007
    Beans
    205

    Re: Error setting up printers in KDE 4.7.4

    It is installed (v 2.24.0-2 according to dpkg -l).

    I booted the same machine, in the same environment, using a Siduction (Aptosid fork) install on an external hard drive and the printer config tools worked there, with KDE 4.7.2. So I don't think it's a problem with may machine or the network environment confusing something.

    So I'm confused.

  8. #8
    Join Date
    May 2006
    Beans
    39
    Distro
    Kubuntu

    Re: Error setting up printers in KDE 4.7.4


  9. #9
    Join Date
    Nov 2007
    Beans
    205

    Re: Error setting up printers in KDE 4.7.4

    Maybe, but those reports all look to refer to samba-shared printers whereas the printers here are all shared via lpd, and are raw postscript printers[*]. There isn't a local printer on this machine.
    [*] Unless someone is inadvertently sharing a "private" printer.

  10. #10
    Join Date
    May 2006
    Beans
    39
    Distro
    Kubuntu

    Re: Error setting up printers in KDE 4.7.4

    Yes, but I think the underlying error is python-cups/cups looking for a PPD file and not finding any file at all. That would cause markDefaults to be 'False' - boolean - which is not the object type that the code is exepecting.

    That would also explain why some people have this problem and others don't. I'm not 100% sure on this though.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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