Bug 496646 - system-config-printer-kde doesn't start
Summary: system-config-printer-kde doesn't start
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: kdeadmin
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 496808
TreeView+ depends on / blocked
 
Reported: 2009-04-20 14:11 UTC by Mary Ellen Foster
Modified: 2009-04-21 13:00 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-04-21 13:00:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mary Ellen Foster 2009-04-20 14:11:49 UTC
Description of problem:
With the default install (from the live image), running system-config-printer-kde results in:
Traceback (most recent call last):
  File "/usr/bin/system-config-printer-kde", line 67, in <module>
    import config
ImportError: No module named config

If I install system-config-printer (which is not an explicit dependency, but maybe should be), the error changes: a window briefly pops up, and then disappears with the following console output:
Traceback (most recent call last):
  File "/usr/bin/system-config-printer-kde", line 3249, in <module>
    applet = GUI()
  File "/usr/bin/system-config-printer-kde", line 148, in __init__
    self.newPrinterGUI = np = NewPrinterGUI(self)
  File "/usr/bin/system-config-printer-kde", line 1483, in __init__
    if not config.DOWNLOADABLE_DRIVER_SUPPORT:
AttributeError: 'module' object has no attribute 'DOWNLOADABLE_DRIVER_SUPPORT'

Version-Release number of selected component (if applicable):
system-config-printer-kde-4.2.2-2.fc11.x86_64

How reproducible:
Every time

Additional info: 
I'm running x86_64 if it's relevant ...

Comment 1 Than Ngo 2009-04-20 15:20:43 UTC
it's fixed in 4.2.2-5.

Comment 2 Kevin Kofler 2009-04-20 20:42:42 UTC
You fixed the second bug. But there's also this one:
> Traceback (most recent call last):
>   File "/usr/bin/system-config-printer-kde", line 67, in <module>
>     import config
> ImportError: No module named config
unless system-config-printer is installed. Apparently one or more modules needed by -kde are not in -libs as they should be. We need to fix system-config-printer's package split.

Comment 3 Than Ngo 2009-04-20 21:39:50 UTC
config.py, smburi.py and debug.py should be moved to -libs.

Comment 4 Kevin Kofler 2009-04-21 04:02:10 UTC
Done, I built a system-config-printer-1.1.7-2.fc11 which does this:
http://koji.fedoraproject.org/koji/buildinfo?buildID=98814

I also submitted a build for Than's kdeadmin fix:
http://koji.fedoraproject.org/koji/buildinfo?buildID=98815
(still running at the time of this writing).

Can somebody please try these?

Comment 5 Mary Ellen Foster 2009-04-21 06:13:53 UTC
Seems to work -- I now have
    system-config-printer-kde-4.2.2-3.fc11.x86_64
    system-config-printer-libs-1.1.7-2.fc11.x86_64
(and no system-config-printer) and it starts properly. I can't really test it because I'm at home, not at work, but at least the bugs I reported seem to be gone.

Comment 6 Tim Waugh 2009-04-21 09:23:54 UTC
Unbelievably, KDE is *again* using interfaces that are not exported.

These files are not part of the public API of system-config-printer, which is why they are not in the libs package.  The public API is the 'cups' and 'cupshelpers' Python modules.

I know that we are pressed for time for Fedora 11 but this is not the correct fix.  A future update of system-config-printer will revert this change.

Removing 'modified' status to reflect the fact that the KDE bug remains.

Comment 7 Than Ngo 2009-04-21 13:00:09 UTC
kdeadmin-4_2_2-4_fc11 works now without system-config-printer, it only needs system-config-printer-libs.


Note You need to log in before you can comment on or make changes to this bug.