Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#14454 - system-config-printer does not run

Attached to Project: Community Packages
Opened by Ondřej Konečný (andrew9888) - Saturday, 25 April 2009, 09:59 GMT
Last edited by Andrea Scarpino (BaSh) - Thursday, 10 September 2009, 10:21 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
System-config-printer fails to launch with following error.

$ system-config-printer
Traceback (most recent call last):
File "/usr/share/system-config-printer/system-config-printer.py", line 81, in <module>
import cupshelpers, options
File "/usr/share/system-config-printer/cupshelpers.py", line 23, in <module>
from . import _debugprint
ValueError: Attempted relative import in non-package

Additional info:
* package version(s)
system-config-printer 1.1.7-1
python 2.6.1-1
pycups 1.9.45-1
pyxml 0.8.4-5
dbus-python 0.83.0-2

Steps to reproduce:
Try to launch the application.
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Thursday, 10 September 2009, 10:21 GMT
Reason for closing:  Fixed
Additional comments about closing:  system-config-printer-gnome 1.1.12-5
Comment by Andrea Scarpino (BaSh) - Saturday, 25 April 2009, 16:46 GMT
moved to Community project because you are using system-config-printer-gnome.

temporally to fix this you can do:
# rm /usr/share/system-config-printer/{cupshelpers,ppds}.pyc
# rm /usr/lib/python2.6/site-packages/cupshelpers/{cupshelpers,ppds}.pyc
# mv /usr/share/system-config-printer/{cupshelpers,ppds}.py /usr/lib/python2.6/site-packages/cupshelpers/

(none problem if some of this commands return "no such file or directory")

I need cupshelpers and ppds in /usr/share/system-config-printer for kdeadmin. I'll find a solution for this.
Comment by Jakob Gruber (schuay) - Tuesday, 08 September 2009, 09:55 GMT
  • Field changed: Percent Complete (100% → 0%)
I'm getting the exact same error message with an up to date system (extra/system-config-printer-gnome 1.1.12-5)
Comment by Andrea Scarpino (BaSh) - Tuesday, 08 September 2009, 09:57 GMT
did you try the previous tips?
remove all system-config packages and those files, then reinstall system-config-printer-gnome.
Comment by Jakob Gruber (schuay) - Tuesday, 08 September 2009, 14:51 GMT
No I didn't try them since they looked like temporary fixes/hacks and were posted half a year ago - shouldn't the package work out of the box? Or is this an upgrade issue?

I'm afraid I can't check if the fixes help right away since I'm not at the affected PC but I will check when I get to it. Thanks!
Comment by Andrea Scarpino (BaSh) - Tuesday, 08 September 2009, 15:01 GMT
yes the package works out for the box...it's really strange that you get that error, are you on Gnome or KDE?
surely on Gnome because others people said that works on KDE
Comment by Jakob Gruber (schuay) - Tuesday, 08 September 2009, 15:03 GMT
Yeah gnome - will let you know when I've had a chance to investigate.
Comment by Jakob Gruber (schuay) - Thursday, 10 September 2009, 09:54 GMT
The temporary fix above worked:

* removed system-config-printer* packages
* deleted /usr/share/system-config-printer/cupshelpers.pyc (the other files didn't exist)
* reinstalled system-config-printer* packages

Was this file left over from some old package?
Comment by Andrea Scarpino (BaSh) - Thursday, 10 September 2009, 10:21 GMT
yes, some old packages was wrong.
closing.

Loading...