Bug#978657: unknown-horizons: Crash on startup

Phil Morrell debian at emorrp1.name
Sat Feb 20 00:51:45 GMT 2021


Control: tags -1 +patch
Control: clone -1 -2
Control: retitle -2 unknown-horizons: Crash with unexpected keyword argument 'encoding'
Control: reassign -2 unknown-horizons
thanks

I can confirm that this has been fixed upstream:

https://github.com/fifengine/fifengine/commit/cf295fd98a8fba080f6305c27be56d10ab7ce94d.patch

However, now the crash is in unknown-horizons itself, encoding has been
ignored since 3.1 so should simply be removed.

    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 179, in start
	Entities.load(horizons.globals.db, load_now=False) # create all references
      File "/usr/lib/python3/dist-packages/horizons/entities.py", line 64, in load
	cls.load_grounds(db, load_now)
      File "/usr/lib/python3/dist-packages/horizons/entities.py", line 77, in load_grounds
	tile_sets = TileSetLoader.get_sets()
      File "/usr/lib/python3/dist-packages/horizons/util/loaders/tilesetloader.py", line 72, in get_sets
	cls.load()
      File "/usr/lib/python3/dist-packages/horizons/util/loaders/tilesetloader.py", line 65, in load
	cls.tile_sets = JsonDecoder.load(PATHS.TILE_SETS_JSON_FILE)
      File "/usr/lib/python3/dist-packages/horizons/util/loaders/jsondecoder.py", line 40, in load
	return json.load(f, encoding="ascii", object_hook=_decode_dict)
      File "/usr/lib/python3.9/json/__init__.py", line 293, in load
	return loads(fp.read(),
      File "/usr/lib/python3.9/json/__init__.py", line 359, in loads
	return cls(**kw).decode(s)
    TypeError: __init__() got an unexpected keyword argument 'encoding'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-games-devel/attachments/20210220/e80d3d6b/attachment-0001.sig>


More information about the Pkg-games-devel mailing list