Bug#1033833: unknown-horizons: Fails to start Couldn't open content/fonts/Unifont.ttf

Tobias Frost tobi at debian.org
Sun Apr 2 17:33:34 BST 2023


Control: reassign -1 src:unifont
Control: retitle -1 src:unifont: Dropping of unifont.ttf breaks unknown-horizons
Control: found -1 1:15.0.01-1
Control: affects -1 unknown-horizons

Hi Hans Joachim,

thanks for the report!

it seems so that the fonts package unifont dropped unifont.ttf in
1:15.0.01-1:
https://salsa.debian.org/fonts-team/unifont/-/commit/94b9698e3809316cd0e942f24f5ecbd517424c98
https://salsa.debian.org/fonts-team/unifont/-/commit/ac9a662b71d20f54d82c666502192302a21aa13e

and so broke this package.

I'll reassign the bug to src:unifont and ask them to please revert the change.

-- 
tobi

On Sun, Apr 02, 2023 at 03:16:47PM +0200, Hans Joachim Desserud wrote:
> Package: unknown-horizons
> Version: 2019.1-5
> Severity: grave
> 
> Dear Maintainer,
> 
> When attempting to run uknown-horizons it fails with the following error
> message:
> $ unknown-horizons
> Discovered old settings file, auto-upgrading: 1 -> 38
> Traceback (most recent call last):
>   File "/usr/games/unknown-horizons", line 381, in <module>
>     main()
>   File "/usr/games/unknown-horizons", line 122, in main
>     ret = horizons.main.start(options)
>           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/horizons/main.py", line 171, in start
>     horizons.globals.fife.init()
>   File "/usr/lib/python3/dist-packages/horizons/engine/engine.py", line 181,
> in init
>     self._setting.apply()
>   File "/usr/lib/python3/dist-packages/horizons/engine/settings.py", line
> 91, in apply
>     change_language(language)
>   File "/usr/lib/python3/dist-packages/horizons/i18n/__init__.py", line 163,
> in change_language
>     horizons.globals.fife.pychan.loadFonts(fontdef)
>   File "/usr/lib/python3/dist-packages/fife/extensions/pychan/fonts.py",
> line 98, in loadFonts
>     for font in Font.loadFromFile(filename):
>                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/fife/extensions/pychan/fonts.py",
> line 82, in loadFromFile
>     fonts.append(Font(font, lambda key, default=None: fontXMLFile.get(font,
> key, default)))
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/fife/extensions/pychan/fonts.py",
> line 52, in __init__
>     self.font = get_manager().createFont(self.source, self.size)
>                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/fife/extensions/pychan/internal.py",
> line 176, in createFont
>     return self.hook.create_font(path,size,glyphs)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> fife.fife.CannotOpenFile: _[CannotOpenFile]_ , File couldn't be opened ::
> content/fonts/Unifont.ttf (Couldn't open content/fonts/Unifont.ttf)
> 
> The root problem is a missing font or font format. I tried a simple rebuild
> of the package, but it had no effect. Looks like the font path is part of
> the source code, so might be more font references with similar issues.
> 
> Also reported in Ubuntu as
> https://bugs.launchpad.net/ubuntu/+source/unknown-horizons/+bug/2011358
> 
> 
> -- System Information:
> Debian Release: 12.0
>   APT prefers unstable
>   APT policy: (500, 'unstable')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 6.1.0-7-amd64 (SMP w/3 CPU threads; PREEMPT)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
> LANGUAGE=en_US:en
> Shell: /bin/sh linked to /usr/bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
> 
> Versions of packages unknown-horizons depends on:
> ii  fonts-unifont   1:15.0.01-2
> ii  python3         3.11.2-1
> ii  python3-enet    0.0~vcs.2022.12.26.git-0.2+b1
> ii  python3-fife    0.4.2-5+b1
> ii  python3-future  0.18.2-6
> ii  python3-yaml    6.0-3+b2
> 
> unknown-horizons recommends no packages.
> 
> unknown-horizons suggests no packages.
> 
> -- no debconf information
> 
> -- 
> mvh / best regards
> Hans Joachim Desserud
> http://desserud.org
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-games-devel/attachments/20230402/43ea006f/attachment.sig>


More information about the Pkg-games-devel mailing list