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 - ImportError: No module named cairo
Summary: ImportError: No module named cairo
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: system-config-printer
Version: 7.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Zdenek Dohnal
QA Contact: Petr Sklenar
URL:
Whiteboard:
Depends On:
Blocks: 1400961 1472751
TreeView+ depends on / blocked
 
Reported: 2014-11-14 09:54 UTC by Petr Sklenar
Modified: 2018-04-10 18:27 UTC (History)
1 user (show)

Fixed In Version: system-config-printer-1.4.1-20.el7
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2018-04-10 18:26:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0984 0 None None None 2018-04-10 18:27:10 UTC

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


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