Closed eagskunst closed 2 years ago
I also have faced the same issue. It is confirmed that the problem is Pillow 9.2.0 I downgraded pillow to 9.1.1 Works perfectly fine.
Library version: 0.8.0 OS: MacOS BigSur 11.6.7 Arch: Intel x86_64 Python3 version: 3.9.7
I also have faced the same issue. It is confirmed that the problem is Pillow 9.2.0 I downgraded pillow to 9.1.1 Works perfectly fine.
Library version: 0.8.0 OS: MacOS BigSur 11.6.7 Arch: Intel x86_64 Python3 version: 3.9.7
Thanks for the confirmation. I will close the issue since it's not a problem with the source code of the library
Bug description:
Executing the record/verify tasks with the last Pillow version (currently 9.2.0) raises a ValueError. Clear/Run tasks work as expected.
Stacktrace:
Library version: 0.15.0 OS: MacOS Monterrey 12.4 Arch: arm64 Python3 version: 3.9.9
Workaround
I tested Pillow version 8.0.0 and all task are working as expected.
Possible fix
I think the line causing the problem can be safely removed since the
with
operator already closes after it reaches the end of the scope:https://github.com/facebook/screenshot-tests-for-android/blob/a2eb42f47b7e7e634ca47adc7b67312573c9025c/plugin/src/py/android_screenshot_tests/recorder.py#L68