Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 900965 - dev-python/pyscreenshot-3.1 fails tests
Summary: dev-python/pyscreenshot-3.1 fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Nowa Ammerlaan
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-13 07:46 UTC by Agostino Sarubbo
Modified: 2023-03-13 22:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,138.65 KB, text/plain)
2023-03-13 07:46 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-03-13 07:46:35 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/pyscreenshot-3.1 fails tests.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2023-03-13 07:46:37 UTC
Created attachment 857445 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-03-13 07:46:38 UTC
Error(s) that match a know pattern:


E           FileNotFoundError: [Errno 2] No such file or directory: '/var/tmp/portage/dev-python/pyscreenshot-3.1/temp/fillscreenfg5zn046/ref.bmp'
E                   fillscreen.FillscreenError: fillscreen stopped: <EasyProcess cmd_param=['/var/tmp/portage/dev-python/pyscreenshot-3.1/work/pyscreenshot-3.1-python3_9/install/usr/bin/python3.9', '/var/tmp/portage/dev-python/pyscreenshot-3.1/work/pyscreenshot-3.1/tests/fillscreen_pygame.py', '--image', '/var/tmp/portage/dev-python/pyscreenshot-3.1/temp/fillscreenfg5zn046/ref.bmp', '--debug'] cmd=['/var/tmp/portage/dev-python/pyscreenshot-3.1/work/pyscreenshot-3.1-python3_9/install/usr/bin/python3.9', '/var/tmp/portage/dev-python/pyscreenshot-3.1/work/pyscreenshot-3.1/tests/fillscreen_pygame.py', '--image', '/var/tmp/portage/dev-python/pyscreenshot-3.1/temp/fillscreenfg5zn046/ref.bmp', '--debug'] oserror=None return_code=1 stdout="" stderr="Traceback (most recent call last):
E                   ModuleNotFoundError: No module named 'pygame'" timeout_happened=False>
E               OSError: Pillow was built without XCB support" timeout_happened=False>
E               pyscreenshot.err.FailedBackendError: <EasyProcess cmd_param=['/var/tmp/portage/dev-python/pyscreenshot-3.1/work/pyscreenshot-3.1-python3_9/install/usr/bin/python3.9', '-m', 'pyscreenshot.cli.grab', '--filename', '/var/tmp/portage/dev-python/pyscreenshot-3.1/temp/pyscreenshot70l7qvug/screenshot.png', '--backend', 'pil', '--debug'] cmd=['/var/tmp/portage/dev-python/pyscreenshot-3.1/work/pyscreenshot-3.1-python3_9/install/usr/bin/python3.9', '-m', 'pyscreenshot.cli.grab', '--filename', '/var/tmp/portage/dev-python/pyscreenshot-3.1/temp/pyscreenshot70l7qvug/screenshot.png', '--backend', 'pil', '--debug'] oserror=None return_code=1 stdout="" stderr="Traceback (most recent call last):
            except FailedBackendError:
        :exception FileNotFoundError: If the file cannot be found.
        :exception PIL.UnidentifiedImageError: If the image cannot be opened and
        :exception TypeError: If ``formats`` is not ``None``, a list or a tuple.
        :exception ValueError: If the ``mode`` is not "r", or if a ``StringIO``
FAILED tests/test_default.py::test_default - fillscreen.FillscreenError: fill...
FAILED tests/test_mss.py::test_mss - FileNotFoundError: [Errno 2] No such fil...
FAILED tests/test_pil.py::test_pil - pyscreenshot.err.FailedBackendError: <Ea...
ModuleNotFoundError: No module named 'pygame'
ModuleNotFoundError: No module named 'pygame'" timeout_happened=False>
OSError: Pillow was built without XCB support
OSError: Pillow was built without XCB support" timeout_happened=False>
Comment 3 Larry the Git Cow gentoo-dev 2023-03-13 15:14:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6830f7b2a3fc4e9347ac533cd72330fd35f29c26

commit 6830f7b2a3fc4e9347ac533cd72330fd35f29c26
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2023-03-13 15:13:48 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2023-03-13 15:13:48 +0000

    dev-python/pyscreenshot: Fix test dependencies
    
    Closes: https://bugs.gentoo.org/900965
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/pyscreenshot/pyscreenshot-3.1.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)