** Description changed:
+ [ 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.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2085524
Title:
not starting after upgrading to 24.04
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/krank/+bug/2085524/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs