| Summary: | dev-python/pillow-2.4.0 USE=test should depend on app-text/ghostscript-gpl - src_test(): OSError: [Errno 2] No such file or directory: 'gs' | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | ahudson.news |
| Component: | [OLD] Development | Assignee: | Python Gentoo Team <python> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
This problem is supposed to be fixed by upstream in Pillow >=2.5.0. Please uninstall Ghostscript and run test suite of Pillow >=2.5.0. (In reply to Arfrever Frehtes Taifersar Arahesis from comment #1) > This problem is supposed to be fixed by upstream in Pillow >=2.5.0. > Please uninstall Ghostscript and run test suite of Pillow >=2.5.0. I can not currently test this on the same machine where I had the original problem, since someone(?) decided to make weird changes to PYTHON_TARGETS regarding python3_2 in the current portage tree, and that box hasn't been upgraded from python:3.2 to python:3.3 yet. I did try it on another machine, and that ran into further problems: the pillow ebuild blindly tries to run "nosetests" without having the required dependency on dev-python/nose... Of cause, if the machine is configured globally to run tests, some other packages usually will have required nose (notably sys-libs/cracklib), but this wasn't the case on this virtual machine ;) |
Apparently it tries to do something with ghostscript ("gs") during the tests, which can not work without it being installed. The tests pass when app-text/ghostscript-gpl-9.10-r2 is installed. excerpt from build.log: * Package: dev-python/pillow-2.4.0 * Repository: gentoo * Maintainer: python@gentoo.org * USE: abi_x86_32 elibc_glibc jpeg jpeg2k kernel_linux python_targets_py thon2_7 python_targets_python3_2 test truetype userland_GNU x86 zlib * FEATURES: preserve-libs sandbox test userpriv usersandbox [...] running test_imagefile ... Tests/test_imagefile.py:49: im1, im2 = roundtrip("EPS") failed: Traceback (most recent call last): File "Tests/test_imagefile.py", line 49, in test_parser im1, im2 = roundtrip("EPS") File "Tests/test_imagefile.py", line 28, in roundtrip imOut = parser.close() File "/var/tmp/portage/dev-python/pillow-2.4.0/work/Pillow-2.4.0-python3_2/bui ld/lib/PIL/ImageFile.py", line 429, in close self.image.load() File "/var/tmp/portage/dev-python/pillow-2.4.0/work/Pillow-2.4.0-python3_2/bui ld/lib/PIL/EpsImagePlugin.py", line 325, in load self.im = Ghostscript(self.tile, self.size, self.fp, scale) File "/var/tmp/portage/dev-python/pillow-2.4.0/work/Pillow-2.4.0-python3_2/bui ld/lib/PIL/EpsImagePlugin.py", line 104, in Ghostscript gs = subprocess.Popen(command, stdin=subprocess.PIPE, stdout=subprocess.PIPE ) File "/usr/lib/python3.2/subprocess.py", line 744, in __init__ restore_signals, start_new_session) File "/usr/lib/python3.2/subprocess.py", line 1394, in _execute_child raise child_exception_type(errno_num, err_msg) OSError: [Errno 2] No such file or directory: 'gs' [...] *** 1 test of 87 failed. * ERROR: dev-python/pillow-2.4.0::gentoo failed (test phase): * Tests fail with python3.2 * Reproducible: Always