Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test failure in test_redeye_applied (numpy >= 1.16.0) #1156

Closed
marcelometal opened this issue Jan 21, 2019 · 1 comment
Closed

test failure in test_redeye_applied (numpy >= 1.16.0) #1156

marcelometal opened this issue Jan 21, 2019 · 1 comment

Comments

@marcelometal
Copy link
Member

Running thumbor's test over numpy >= 1.16.0, it fails (numpy version is not locked in setup.py). Travis uses numpy version 1.13.3.

======================================================================
ERROR: test_redeye_applied (tests.filters.test_redeye.RedEyeFilterTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/work/stemci01/debian/build/thumbor/thumbor-6.5.1/.pybuild/cpython2_2.7_thumbor/build/tests/filters/test_redeye.py", line 43, in test_redeye_applied
    config_context
  File "/work/stemci01/debian/build/thumbor/thumbor-6.5.1/.pybuild/cpython2_2.7_thumbor/build/tests/base.py", line 279, in get_filtered
    fltr.run(dummy_callback)
  File "thumbor/filters/__init__.py", line 202, in run
    results.append(self.runnable_method(*self.params))
  File "thumbor/filters/__init__.py", line 23, in wrapper
    return fn(self, *args2)
  File "thumbor/filters/redeye.py", line 38, in red_eye
    image.setflags(write=1)
ValueError: cannot set WRITEABLE flag to True of this array
-------------------- >> begin captured logging << --------------------
PIL.PngImagePlugin: DEBUG: STREAM 'IHDR' 16 13
PIL.PngImagePlugin: DEBUG: STREAM 'IDAT' 41 358237
PIL.PngImagePlugin: DEBUG: STREAM 'IHDR' 16 13
PIL.PngImagePlugin: DEBUG: STREAM 'IDAT' 41 65536
PIL.PngImagePlugin: DEBUG: STREAM 'IHDR' 16 13
PIL.PngImagePlugin: DEBUG: STREAM 'IDAT' 41 358944
--------------------- >> end captured logging << ---------------------```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants