Dear Maintainer, when I run pysiogame in console I get: pygame 2.1.2 (SDL 2.24.1, Python 3.10.8) Hello ..... Traceback file "/usr/share/games/pysiogame/eduactiv8.py", line 659, in <module> main() file "/usr/share/games/pysiogame/eduactiv8.py", line 649, in main app.run() file "/usr/share/games/pysiogame/eduactiv8.py", line 408, in run self.create subsurfaces() file "/usr/share/games/pysiogame/eduactiv8.py", line 131, in create_subsurfaces self.game_bg = self.screen.subsurface(self.sizer.game_bg_pos) ValueError: subsurface rectangle outside surface area After that pysiogame crashes immediatly. Thanks. PS this is with Bookworm, with Bullseye pysiogame works fine.
Dear Gerard and Maintainers, Thank you for reporting the issue and sorry for the late reply, I only just realized a new bug was reported. If I am not mistaken I have encountered this issue previously. The problem is that the latest distros started using Python 3, Pygame 2+ and the latest SDL 2+ which seems to draw windows differently. I ended up changing the way the program's window gets resized at startup which I believe solved the reported problem. The latest source release (just published with the fix) is available on GitHub at: https://github.com/imiolek-ireneusz/eduActiv8/releases The upstream version also solves issues: #721829, #721830, #721899 and #721852. A hopefully working, but not the most up-to-date (yet) version is available at: https://software.opensuse.org/download.html?project=home%3Aimiolek-i&package=eduactiv8 FAO: Maintainers - just in case any of the configuration files here are of any use: https://build.opensuse.org/package/show/home:imiolek-i/eduActiv8 I would really appreciate if you could confirm the latest source code works as expected, please. Thanks, Ireneusz Imiolek (eduActiv8 Dev)
Working directory: /usr/share/games/eduactiv8
Traceback (most recent call last):
File "/usr/share/games/eduactiv8/eduactiv8.py", line 41, in <module>
import pygame
ImportError: No module named pygame
Thanks.
Dear Gerard, From your message, I see that there was an issue with pygame. Seems the python3-pygame package did not get installed. Are you running eduactiv8 from the source or did you add the repo from the OpenSUSE Build Service? If running from the source you will need to manually install python3-pygame and espeak packages. I used a weekly ISO of bookworm for testing (running in VirtualBox), following the guidance to add a repo from: https://software.opensuse.org/download.html?project=home%3Aimiolek-i&package=eduactiv8 and selecting the instructions for Debian Testing seems to work fine (the dependencies installed correctly and resulted with the installation of eduactiv8 version 4.22.06 - I have also just updated the repo to the latest version 4.22.11 - this updated on Bookworm as expected and seems to work without issues). FAO Maintainers: the link I posted previously was for the version of configuration files used with python 2, the following one is used to build the program for the current versions of Linux distros (with python 3 only): https://build.opensuse.org/package/show/home:imiolek-i/eduactiv8-py3 The version of standards used in this configuration file is rather dated, but personally, I do not have the knowledge to bring it back up to date. Thanks, Ireneusz Imiolek