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