Bug#1051856: game-data-packager: SyntaxError: invalid syntax: match self.game.shortname

Simon McVittie smcv at debian.org
Wed Sep 13 19:36:09 BST 2023


Control: retitle -1 game-data-packager: SyntaxError: invalid syntax: match self.game.shortname

On Wed, 13 Sep 2023 at 19:36:59 +0200, Patrice Duroux wrote:
> Paramétrage de game-data-packager (76) ...
> Failed to byte-compile /usr/share/games/game-data-
> packager/game_data_packager/games/gog_icon.py:   File "/usr/share/games/game-
> data-packager/game_data_packager/games/gog_icon.py"
> , line 43
>     match self.game.shortname:
>     ^
> SyntaxError: invalid syntax. Perhaps you forgot a comma?

What version(s) of Python 3 do you have installed? For example, do you
have python3.9-minimal installed, or something like that?

This is new syntax in Python 3.10, but Debian >= 12 only supports Python
3.11 or newer, so that syntax shouldn't be a problem...

Looking at the generated game-data-packager.postinst, I see it invokes
pypy3compile. Could that be the problem here? Do you have pypy3 installed?

    smcv



More information about the Pkg-games-devel mailing list