Summary: | dev-python/pycdio-0.17: fails tests | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Diego Elio Pettenò (RETIRED) <flameeyes> |
Component: | New packages | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | ssuominen |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://tinderboxlogs.s3.amazonaws.com/tbamd64.excelsior.flameeyes.eu/dev-python%3Apycdio-0.17%3A20120803-185037.html | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Diego Elio Pettenò (RETIRED)
2012-08-03 19:33:09 UTC
apptools-4.0.1/apptools/persistence/tests/check_version_registry.py * Testing of dev-python/pycdio-0.17 with CPython 2.7... PYTHONPATH=build-2.7/lib.linux-x86_64-2.7 nosetests --verbosity=1 ...++ WARN: Can't get file status for ***Invalid device***: No such file or directory ++ WARN: could not retrieve file info for `***Invalid device***': No such file or directory ++ WARN: can't open nrg image file ***Invalid device*** for reading ..........++ WARN: string 'ABC!123' is getting truncated to 2 characters .. ---------------------------------------------------------------------- Ran 15 tests in 0.047s Did not replicate On second thoughts .E........++ WARN: string 'ABC!123' is getting truncated to 2 characters .. ====================================================================== ERROR: Test that we have image drivers It seems it fails on the 3 tests that test for a string "driver via driver_id". it has currently even more problems. It will not work with latest libcdio, because some CONSTANT names were changed. hmpf! I see that Samuli Suominen already bumped to 0.18 for compatibility reasons with libcdio-0.90. But this doesn't work: sbriesen@gentoo ~ $ python Python 2.7.3 (default, Dec 21 2012, 03:09:44) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pycdio Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.7/site-packages/pycdio.py", line 411, in <module> CDTEXT_ARRANGER = _pycdio.CDTEXT_ARRANGER AttributeError: 'module' object has no attribute 'CDTEXT_ARRANGER' >>> The error is from the plain python part of that module. Importing _pycdio will work, but CDTEXT_ARRANGER is now called CDTEXT_FIELD_ARRANGER. A little bit of 'sed'-magic should to the trick. that's what the pycdio modules do: CDTEXT_ARRANGER = _pycdio.CDTEXT_ARRANGER CDTEXT_COMPOSER = _pycdio.CDTEXT_COMPOSER CDTEXT_DISCID = _pycdio.CDTEXT_DISCID CDTEXT_GENRE = _pycdio.CDTEXT_GENRE CDTEXT_MESSAGE = _pycdio.CDTEXT_MESSAGE CDTEXT_ISRC = _pycdio.CDTEXT_ISRC CDTEXT_PERFORMER = _pycdio.CDTEXT_PERFORMER CDTEXT_SIZE_INFO = _pycdio.CDTEXT_SIZE_INFO CDTEXT_SONGWRITER = _pycdio.CDTEXT_SONGWRITER CDTEXT_TITLE = _pycdio.CDTEXT_TITLE CDTEXT_TOC_INFO = _pycdio.CDTEXT_TOC_INFO CDTEXT_TOC_INFO2 = _pycdio.CDTEXT_TOC_INFO2 CDTEXT_UPC_EAN = _pycdio.CDTEXT_UPC_EAN CDTEXT_INVALID = _pycdio.CDTEXT_INVALID something like "sed 's|_pycdio.CDTEXT_|_pycdio.CDTEXT_FIELD_|g'" should help... this way, on python side, would maintain compatibilty with the old names. Nonetheless, pycdio-0.18 is currently broken with libcdio-0.90, though it should be the right release for it. :-/ added ssuominen@gentoo.org (In reply to comment #4) > I see that Samuli Suominen already bumped to 0.18 for compatibility reasons > with libcdio-0.90. ouch, I don't know python well enough to correct the code myself but i'll report upstream now Discussed with idella4 in IRC: it's been purged from Portage a while ago. 21 Jul 2013; Pacho Ramos <pacho@gentoo.org> -pycdio-0.17.ebuild, metadata.xml: Cleanup due #92799 Closing this bug then. |