Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 199725 - dev-python/pygobject testsuite depends on dev-python/pygtk
Summary: dev-python/pygobject testsuite depends on dev-python/pygtk
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
: 217349 228497 231412 233362 282930 (view as bug list)
Depends on: 328713
Blocks:
  Show dependency tree
 
Reported: 2007-11-20 03:06 UTC by Ryan Hill (RETIRED)
Modified: 2010-12-06 11:40 UTC (History)
14 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Hill (RETIRED) gentoo-dev 2007-11-20 03:06:18 UTC
the pygobject testsuite fails if pygtk isn't installed:

make[2]: Entering directory `/var/tmp/portage/dev-python/pygobject-2.14.0/work/pygobject-2.14.0/tests'
Traceback (most recent call last):
  File "./runtests.py", line 42, in <module>
    suite.addTest(loader.loadTestsFromName(name))
  File "/usr/lib64/python2.5/unittest.py", line 533, in loadTestsFromName
    module = __import__('.'.join(parts_copy))
  File "../tests/test_subtype.py", line 9, in <module>
    import gtk
ImportError: No module named gtk
make[2]: *** [check-local] Error 1


unfortunately pygtk RDEPENDs on pygobject, creating a circular dependency.  because of this, it might be best to add RESTRICT=test to the pygobject ebuild.
Comment 1 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-11-20 19:24:40 UTC
Hmm... That's a very very hard one.

Gnome team: maybe patch out any tests needing pygtk?  Or block tests all together?  In general, a new system should probably not be installed with FEATURES=test, but that's not a real solution.
Comment 2 Dustin Polke 2008-01-03 10:44:38 UTC
I had this issue while upgrading to python-2.5 and running /usr/sbin/python-updater. pygobject bailed out with same error. Solved this by manually running:

# FEATURES="-test" emerge -1 pygobject && emerge -1 pygtk && emerge -1 pygobject

What about making pygobject DEPEND="test? ( dev-python/pygtk )"? This would introduce a circular dependency, which needs to be resolved the way described above.

BR,
Dustin
Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2008-06-20 11:35:34 UTC
*** Bug 228497 has been marked as a duplicate of this bug. ***
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-07-10 14:26:04 UTC
*** Bug 231412 has been marked as a duplicate of this bug. ***
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-07-10 14:28:08 UTC
*** Bug 217349 has been marked as a duplicate of this bug. ***
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2008-07-11 02:21:48 UTC
If no one wants to fix this, I'll be adding RESTRICT=test to pygobject.
Comment 7 Benno Schulenberg 2008-07-25 10:47:40 UTC
Why not add the DEPEND mentioned in comment #2?  Plus a message on how to resolve the circular dependency.
Comment 8 Ryan Hill (RETIRED) gentoo-dev 2008-07-25 13:18:27 UTC
Because a circular dependency happens when the package manager is building a dependency graph, before the list of packages to build is displayed, and before any particular package can display a message.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-30 16:28:43 UTC
*** Bug 233362 has been marked as a duplicate of this bug. ***
Comment 10 Rémi Cardona (RETIRED) gentoo-dev 2008-08-25 22:14:43 UTC
For the record, the latest versions pygtk and pygobject should be fixed as the codegen tool needed for the tests has been moved to pygobject. So basically, the circular dep is gone.

Hopefully, we should get those versions into portage along with Gnome 2.24.

Keeping this bug open until it's in portage.

Thanks
Comment 11 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-11-08 02:01:46 UTC
I was sick of this test suite failing in my chroot for arch testing so I added RESTRICT="test" to pygobject-2.14.2 as a simple workaround. Hope no one screams too loudly ;)
Comment 12 Hans de Graaff gentoo-dev Security 2008-11-18 19:51:48 UTC
(In reply to comment #10)
> For the record, the latest versions pygtk and pygobject should be fixed as the
> codegen tool needed for the tests has been moved to pygobject. So basically,
> the circular dep is gone.
> 

I'm not sure what version "the latest" is, but I still see this with pygobject 2.15.4. Is this fixed with a newer version, or should it have been fixed in this version?
Comment 13 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-08-09 11:01:47 UTC
this stuff should be fixed since pygtk-2.14/pygobject-2.15, closing since there are stable revisions of there or a later release on most arches.
Comment 14 Raúl Porcel (RETIRED) gentoo-dev 2009-08-27 17:12:15 UTC
*** Bug 282930 has been marked as a duplicate of this bug. ***
Comment 15 Raúl Porcel (RETIRED) gentoo-dev 2009-08-27 17:12:34 UTC
Still not fixed
Comment 16 Dan Wallis 2009-09-25 06:43:47 UTC
Still a problem with pygobject-2.18.0
Comment 17 Gabriele Dini Ciacci 2009-11-07 10:26:04 UTC
I confirm it's still not fixed in pygobject-2.18.0, the problem can be fixed exactly in the same way as comment #2. Naturally the thing causes both python-updater (2.5->2.6) and emerge system/world to fail, please put a message there to avoid having the user come here to discover if it's something serious or if he can just jump the tests.
Comment 18 Gian Mario Tagliaretti 2010-04-05 16:17:07 UTC
I fixed this in pygobject master by moving the tests that require gtk to pygtk itself.
Comment 19 Pacho Ramos gentoo-dev 2010-04-05 18:02:33 UTC
Thanks a lot Gian, I will probably try to backport pygtk and pygboject patches if possible if nobody does it faster ;-):
http://git.gnome.org/browse/pygtk/commit/?id=48f0a43f2faffee931ba419dac2687a93344bf5a
http://git.gnome.org/browse/pygobject/commit/?id=4cbd9941c5705970a9f7a429e236e1203d3155a1
Comment 20 Gian Mario Tagliaretti 2010-04-05 18:55:44 UTC
Thanks Pacho, see also
http://git.gnome.org/browse/pygtk/commit/?id=b7ac3513997ad7c561bb830341e96db1bc9d529a
Comment 21 Pacho Ramos gentoo-dev 2010-12-06 11:40:27 UTC
If I don't misremember, this should be fixed with pygtk-2.17 and latest pygobject