Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 522372 - 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'
Summary: dev-python/pillow-2.4.0 USE=test should depend on app-text/ghostscript-gpl - ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-08 10:54 UTC by ahudson.news
Modified: 2015-04-03 19:36 UTC (History)
0 users

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 ahudson.news 2014-09-08 10:54:41 UTC
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
Comment 1 Arfrever Frehtes Taifersar Arahesis 2014-09-09 10:31:23 UTC
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.
Comment 2 ahudson.news 2014-09-09 15:03:45 UTC
(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 ;)