Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1164188

Summary: ImportError: No module named cairo
Product: Red Hat Enterprise Linux 7 Reporter: Petr Sklenar <psklenar>
Component: system-config-printerAssignee: Zdenek Dohnal <zdohnal>
Status: CLOSED ERRATA QA Contact: Petr Sklenar <psklenar>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: imc
Target Milestone: rcKeywords: FastFix, Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: system-config-printer-1.4.1-20.el7 Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 18:26:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1400961, 1472751    

Description Petr Sklenar 2014-11-14 09:54:31 UTC
Description of problem:
missing deps on cairo module, its 'pycairo.rpm'
ImportError: No module named cairo

Version-Release number of selected component (if applicable):
system-config-printer-1.4.1-19.el7.x86_64
or from rhel7.0 system-config-printer-1.4.1-16.el7.x86_64


How reproducible:
always

Steps to Reproduce:
1. install rhel7 server base install, with no desktop
2, ssh root@rhel7 -XC
2. yum install system-config-printer
# there is not pycairo rpm
3. system-config-printer

Actual results:
rpm -q pycairo
package pycairo is not installed

system-config-printer

** (system-config-printer.py:27592): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-VFMAZel72K: Connection refused
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 87, in <module>
    import printerproperties
  File "/usr/share/system-config-printer/printerproperties.py", line 41, in <module>
    import gtkinklevel
  File "/usr/share/system-config-printer/gtkinklevel.py", line 23, in <module>
    import cairo
ImportError: No module named cairo

Expected results:
s-c-printer start 

Additional info:
s-c-printer starts successfully if I install of pycairo-1.8.10-8.el7.x86_64 on the same system

Comment 2 Tim Waugh 2014-11-14 12:41:19 UTC
This is the Red Hat Enterprise Linux equivalent of Fedora bug #1028180, which was fixed here:
http://pkgs.fedoraproject.org/cgit/system-config-printer.git/commit/?h=f19&id=7ba9bcbd05ce01c7ef681d9f9396ac6f18ed3041

Comment 3 Ian Collier 2015-03-26 14:02:47 UTC
pygobject2 is also missing from the dependencies.

Comment 9 Zdenek Dohnal 2017-11-03 13:46:36 UTC
Ad comment#3 - s-c-p requires pygobject3-base package, which isn't available on RHEL-7. I'll change it to python-gobject-base.

Comment 16 errata-xmlrpc 2018-04-10 18:26:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0984