Description of problem: Tried to launch system-config-printer. Version-Release number of selected component: system-config-printer-1.5.0-1.fc22 Additional info: reporter: libreport-2.2.3 cmdline: /usr/bin/python3 /usr/share/system-config-printer/system-config-printer.py executable: /usr/share/system-config-printer/system-config-printer.py kernel: 3.16.0-0.rc5.git1.1.fc22.x86_64 runlevel: N 5 type: Python3 uid: 1000 Truncated backtrace: system-config-printer.py:57:<module>:ImportError: No module named 'cups' Traceback (most recent call last): File "/usr/share/system-config-printer/system-config-printer.py", line 57, in <module> import cups ImportError: No module named 'cups' Local variables in innermost frame: dbus: <module 'dbus' from '/usr/lib/python3.4/site-packages/dbus/__init__.py'> __doc__: None Polkit: <gi.module.DynamicModule 'Polkit' from '/usr/lib64/girepository-1.0/Polkit-1.0.typelib'> __file__: '/usr/share/system-config-printer/system-config-printer.py' re: <module 're' from '/usr/lib64/python3.4/re.py'> time: <module 'time' from '/usr/lib64/python3.4/lib-dynload/time.cpython-34m.so'> GdkPixbuf: <gi.module.DynamicModule 'GdkPixbuf' from '/usr/lib64/girepository-1.0/GdkPixbuf-2.0.typelib'> __loader__: <_frozen_importlib.SourceFileLoader object at 0x7feb4c31ab70> __builtins__: <module 'builtins' (built-in)> __spec__: None __package__: None _thread: <module '_thread' (built-in)> sys: <module 'sys' (built-in)> __cached__: None show_help: <function show_help at 0x7feb4c26c2f0> Gdk: <gi.module.DynamicModule 'Gdk' from '/usr/lib64/girepository-1.0/Gdk-3.0.typelib'> os: <module 'os' from '/usr/lib64/python3.4/os.py'> __name__: '__main__' config: <module 'config' from '/usr/share/system-config-printer/config.py'> Gtk: <gi.module.DynamicModule 'Gtk' from '/usr/lib64/girepository-1.0/Gtk-3.0.typelib'>
Created attachment 919108 [details] File: backtrace
Created attachment 919109 [details] File: environ
Perhaps this is caused by there not yet being an fc22 package for python-cups.
I've built python-cups-1.9.67-1.fc22 in rawhide now. Let me know if it still has a problem starting.
(In reply to Tim Waugh from comment #4) > I've built python-cups-1.9.67-1.fc22 in rawhide now. Let me know if it still > has a problem starting. Unfortunately that did not seem to make a difference. [wag@rawhide-usb ~]$ system-config-printer Traceback (most recent call last): File "/usr/share/system-config-printer/system-config-printer.py", line 57, in <module> import cups ImportError: No module named 'cups' [wag@rawhide-usb ~]$ yum info python-cups Loaded plugins: langpacks Installed Packages Name : python-cups Arch : x86_64 Version : 1.9.67 Release : 1.fc22 Size : 254 k Repo : installed From repo : /python-cups-1.9.67-1.fc22.x86_64 Summary : Python bindings for CUPS URL : http://cyberelk.net/tim/software/pycups/ License : GPLv2+ Description : This package provides Python bindings for CUPS API, : known as pycups. It was written for use with : system-config-printer, but can be put to other uses as well.
The same error message appears on a current Fedora 21 branched tree with installed packages - python-cups-1.9.67-1.fc21 - system-config-printer-1.5.0-1.fc21
So would have been better had I noticed this sooner.
A downgrade to system-config-printer-1.4.5-3.fc21 solves the problem; in fact it does so also for the printing module of the gnome-control-center which failed when system-config-printer-1.5.0-1.fc21 was installed.
Think it should be sorted out in system-config-printer-1.5.0-2.fc21.
I also had to install python3-pycurl. That resulted in a working system-config-printer.
I also had to install python3-cups. That resulted in a working system-config-printer. Installing python3-pycurl had no effect. Thus the latest system-config-printer has to depend on python3-cups instead of on python-cups.
(In reply to Christoph Frieben from comment #11) > I also had to install python3-cups. That resulted in a working > system-config-printer. Installing python3-pycurl had no effect. Thus the > latest system-config-printer has to depend on python3-cups instead of on > python-cups. That is what the change in version 1.5.0-2 fixed.
*** Bug 1121354 has been marked as a duplicate of this bug. ***
So, to be clear here. If system-config-printer has python3-pycurl added a a dependency, I think we are done here.
Thanks. That dependency had been missing altogether. Please try 1.5.0-3.
(In reply to Tim Waugh from comment #15) > Thanks. That dependency had been missing altogether. > > Please try 1.5.0-3. OK with that is all works correctly on fc22 rawhide.
Great. Thanks for reporting and for testing.