Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 800686 - media-video/vcsi missing dependency
Summary: media-video/vcsi missing dependency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Joonas Niilola
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-05 20:01 UTC by Volker Wegert
Modified: 2021-07-06 05:38 UTC (History)
1 user (show)

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 Volker Wegert 2021-07-05 20:01:14 UTC
In order to use media-video/vcsi version 7-r7, I had to add the USE flag "truetype " to dev-python/pillow in order to solve the following error message:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.9/vcsi", line 33, in <module>
    sys.exit(load_entry_point('vcsi==7', 'console_scripts', 'vcsi')())
  File "/usr/lib/python3.9/site-packages/vcsi/__init__.py", line 3, in main
    vcsi.vcsi.main()
  File "/usr/lib/python3.9/site-packages/vcsi/vcsi.py", line 1331, in main
    process_file(filename, args)
  File "/usr/lib/python3.9/site-packages/vcsi/vcsi.py", line 1389, in process_file
    image = compose_contact_sheet(media_info, selected_frames, args)
  File "/usr/lib/python3.9/site-packages/vcsi/vcsi.py", line 771, in compose_contact_sheet
    header_font = ImageFont.truetype(args.metadata_font, args.metadata_font_size)
  File "/usr/lib/python3.9/site-packages/PIL/ImageFont.py", line 853, in truetype
    return freetype(font)
  File "/usr/lib/python3.9/site-packages/PIL/ImageFont.py", line 850, in freetype
    return FreeTypeFont(font, size, index, encoding, layout_engine)
  File "/usr/lib/python3.9/site-packages/PIL/ImageFont.py", line 173, in __init__
    freetype_version = parse_version(features.version_module("freetype2"))
  File "/usr/lib/python3.9/site-packages/packaging/version.py", line 57, in parse
    return Version(version)
  File "/usr/lib/python3.9/site-packages/packaging/version.py", line 296, in __init__
    match = self._regex.search(version)
TypeError: expected string or bytes-like object

see also: https://github.com/python-pillow/Pillow/issues/5444

Adding 
dev-python/pillow truetype
to my package.use file fixed this problem - but I think that should be handled by the vcsi ebuild automatically.
Comment 1 Ionen Wolkens gentoo-dev 2021-07-05 21:09:14 UTC
Here I got was a bit different, but still fixed by [truetype]

    ImportError: The _imagingft C module is not installed

...and [jpeg]

    OSError: encoder jpeg not available
Comment 2 Larry the Git Cow gentoo-dev 2021-07-06 05:38:33 UTC
The bug has been closed via the following commit(s):

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

commit be7a30357ca385fb8683bac40a06d18433ac7b5b
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2021-07-06 05:35:19 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2021-07-06 05:35:19 +0000

    media-video/vcsi: add missing dep conditions and revbump
    
    Closes: https://bugs.gentoo.org/800686
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 media-video/vcsi/{vcsi-7-r1.ebuild => vcsi-7-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)