After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 613341 - pygobject tests seem to require pygtk causing a circular dependencies problem
pygobject tests seem to require pygtk causing a circular dependencies problem
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: codegen
2.20.x
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2010-03-19 16:52 UTC by Pacho Ramos
Modified: 2010-09-02 11:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build.log (50.29 KB, application/octet-stream)
2010-03-19 16:52 UTC, Pacho Ramos
Details

Description Pacho Ramos 2010-03-19 16:52:42 UTC
Created attachment 156566 [details]
build.log

pygobject tests seem to require pygtk to be present as building tests fail with:
make[2]: Entering directory `/var/tmp/portage/dev-python/pygobject-2.20.0/work/pygobject-2.20.0-2.6/tests'
ln -s .libs/testhelper.so testhelper.so
Traceback (most recent call last):
  • File "./runtests.py", line 45 in <module>
    suite.addTest(loader.loadTestsFromName(name))
  • File "/usr/lib64/python2.6/unittest.py", line 576 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
make[2]: Leaving directory `/var/tmp/portage/dev-python/pygobject-2.20.0/work/pygobject-2.20.0-2.6/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-python/pygobject-2.20.0/work/pygobject-2.20.0-2.6/tests'
make: *** [check-recursive] Error 1


This would cause a circular dep problem since pygobject would need pygtk while last one already requires pygobject.

You can see downstream bug report in:
http://bugs.gentoo.org/show_bug.cgi?id=199725

and I have just reproduced this with pygobject-2.20.0

Thanks a lot
Comment 1 Gian Mario Tagliaretti 2010-04-05 16:17:50 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 2 Pacho Ramos 2010-09-02 11:12:01 UTC
The problem is that after applying:
http://git.gnome.org/browse/pygtk/commit/?id=b7ac3513997ad7c561bb830341e96db1bc9d529a

to pygobject-2.20, tests fail to run with:

make  check-local
make[2]: Entering directory `/var/tmp/portage/dev-python/pygobject-2.20.0/work/pygobject-2.20.0-2.6/tests'
ln -s .libs/testhelper.so testhelper.so
Traceback (most recent call last):
  • File "./runtests.py", line 42 in <module>
    for name in gettestnames():
  • File "./runtests.py", line 36 in gettestnames
    map(names.remove, SKIP_FILES)
ValueError: list.remove(x): x not in list
make[2]: *** [check-local] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-python/pygobject-2.20.0/work/pygobject-2.20.0-2.6/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-python/pygobject-2.20.0/work/pygobject-2.20.0-2.6/tests'
make: *** [check-recursive] Error 1