[Bug 2085524] Re: not starting after upgrading to 24.04
Bug Watch Updater
2085524 at bugs.launchpad.net
Fri Nov 15 15:57:27 UTC 2024
** Changed in: krank (Debian)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2085524
Title:
not starting after upgrading to 24.04
Status in krank package in Ubuntu:
Fix Released
Status in krank source package in Noble:
Confirmed
Status in krank source package in Oracular:
Confirmed
Status in krank source package in Plucky:
Fix Released
Status in krank package in Debian:
Fix Released
Bug description:
[ Impact ]
The game doesn't work.
All levels in krank are imported as python modules and all game
screens (menus, settings, actual game stages) are 'levels'. Deprecated
'imp' is used in Level.py, but in "try - except" statement, so the
error emerges in other place.
The solution is to use 'importlib' instead of 'imp'.
[ Test Plan ]
Run the game and it will crash after a few moments or not.
Also in /usr/lib/krank/Main.py you could try to select different levels and try to load them directrly in debug mode
{{{
k.debug = 0
startlevel = k.debug and 24
}}}
[ Where problems could occur ]
Since the problem is in module that loads all the levels - some levels
may not load (in debug mode some game logic is missing and it is hard
to test all of them "the right way").
[ Other Info ]
Showing game window for a few seconds and then exits and prints in
terminal
{{{
Traceback (most recent call last):
File "/usr/lib/krank/Main.py", line 97, in <module>
k.screen.blit(k.world.image, k.screen.get)rect())
TypeError: argument 1 must be pygame.surface.Surface, not None
}}}
Long story short - it is because "imp" module is deprecated.
https://docs.python.org/3.9/library/imp.html
I've created .patch file, but don't know what I shoud do next.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/krank/+bug/2085524/+subscriptions
More information about the Ubuntu-sponsors
mailing list