[Bug 2085524] [NEW] not starting after upgrading to 24.04
Launchpad Bug Tracker
2085524 at bugs.launchpad.net
Thu Nov 14 09:26:29 UTC 2024
You have been subscribed to a public bug by Dmitriy Prokaten (kar-karych):
[ 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.
** Affects: krank (Ubuntu)
Importance: Undecided
Status: Fix Released
** Affects: krank (Ubuntu Noble)
Importance: Undecided
Status: Confirmed
** Affects: krank (Ubuntu Oracular)
Importance: Undecided
Status: Confirmed
** Affects: krank (Ubuntu Plucky)
Importance: Undecided
Status: Fix Released
** Affects: krank (Debian)
Importance: Unknown
Status: New
** Tags: krank patch pygame python3
--
not starting after upgrading to 24.04
https://bugs.launchpad.net/bugs/2085524
You received this bug notification because you are a member of Ubuntu Sponsors, which is subscribed to the bug report.
More information about the Ubuntu-sponsors
mailing list