Bug 460105 - Missing dependency: pygobject2 and pycairo
Summary: Missing dependency: pygobject2 and pycairo
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: pygtk2
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Matthew Barnes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 460022
TreeView+ depends on / blocked
 
Reported: 2008-08-26 08:14 UTC by Mamoru TASAKA
Modified: 2008-08-26 15:12 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-08-26 14:56:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mamoru TASAKA 2008-08-26 08:14:15 UTC
Description of problem:
http://koji.fedoraproject.org/koji/taskinfo?taskID=786055

After the bug report 460022 I tried to rebuild wallpapoz with adding
(Build)Requires gnome-python2-gnome but it fails with setup.py's checking code:

python -c 'import gtk.glade'
python -c 'gnome'
python -c 'import pygtk'

Even if pygtk2-libglade, gnome-python2-gnome, pygtk2' are all installed
as BuildRequires.
Why "Requires: pycairo, pygobject2' were removed from pygtk2?

Version-Release number of selected component (if applicable):
pygtk2-2.13.0-1.fc10

How reproducible:
100%

Steps to Reproduce:
1. $ yum install pygtk2 (2.13.0-1.fc10 is installed)
2. $ python -c 'import gtk'
3.
  
Actual results:
* Without pygobject2:
# python -c 'import gtk'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named gtk

* With pygobject2 but without pycairo:

# python -c 'import gtk'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line 48, in <module>
    from gtk import _gtk
ImportError: No module named cairo

Expected results:
All of 3 commands above should succeed.

Additional info:

Comment 1 Matthew Barnes 2008-08-26 14:56:51 UTC
Sorry about that.  Fixed in pygtk-2.13.0-2.fc10.

I keep forgetting that RPM isn't smart enough to derive a pycairo requirement from the pycairo-devel build requirement, as it does with normal C libraries.

Please reopen if you still run into trouble.

Comment 2 Mamoru TASAKA 2008-08-26 15:12:49 UTC
Well, I know some person sometimes tried to let rpmbuild detect python related
dependency like perl, however as far as I know no person has succeeded it yet.

Thank you for the immediate fix.


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