Bug 2123208 - When trying to run a python program using pygame I get a version mismatch error for SDL
Summary: When trying to run a python program using pygame I get a version mismatch err...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pygame
Version: 37
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-01 04:07 UTC by stan
Modified: 2022-12-14 15:47 UTC (History)
6 users (show)

Fixed In Version: pygame-2.1.2-6.fc37
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-12 17:44:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description stan 2022-09-01 04:07:41 UTC
Description of problem:
I am running a python program that uses pygame.  When I try to start it, I get an error that there is a version mismatch in SDL

Version-Release number of selected component (if applicable):
python3-pygame-2.1.2-5.fc37.x86_64

How reproducible:
Every time.

Steps to Reproduce:
1.  Have a program that uses pygame
2.  Try to start it
3.

Actual results:
$ ./cogflex
pygame 2.1.2 (SDL 2.24.0, Python 3.11.0)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "src/cogflex/./cogflex", line 142, in <module>
    pygame.init()
RuntimeError: SDL compiled with version 2.0.22, linked to 2.24.0


Expected results:
program starts

Additional info:

SDL2-2.24.0-1.fc37.x86_64
Build Date  : Fri 19 Aug 2022 01:36:51 PM MST

sdl12-compat-1.2.52-2.fc37.x86_64
Build Date  : Sat 23 Jul 2022 01:22:53 AM MST

Comment 1 Fedora Update System 2022-09-01 17:05:54 UTC
FEDORA-2022-86d4c4e3d3 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-86d4c4e3d3

Comment 2 Fedora Update System 2022-09-02 08:27:28 UTC
FEDORA-2022-86d4c4e3d3 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-86d4c4e3d3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-86d4c4e3d3

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 stan 2022-09-02 13:52:25 UTC
Just updated, and this fix came through.  And it works!
Thanks!

Comment 4 Fedora Update System 2022-09-12 17:44:23 UTC
FEDORA-2022-86d4c4e3d3 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Gwyn Ciesla 2022-09-13 21:48:56 UTC
*** Bug 2126561 has been marked as a duplicate of this bug. ***

Comment 6 François Charlier 2022-12-14 15:45:06 UTC
Hi, this problem occurs again, apparently a new SDL release has been pushed and breaks pygame again.

How to reproduce:

❯ dnf -y install python3-pygame
❯ python3.11 -m pygame.examples.aliens
pygame 2.1.2 (SDL 2.26.0, Python 3.11.0)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/lib64/python3.11/site-packages/pygame/examples/aliens.py", line 400, in <module>
    main()
  File "/usr/lib64/python3.11/site-packages/pygame/examples/aliens.py", line 235, in main
    pg.init()
RuntimeError: SDL compiled with version 2.24.0, linked to 2.26.0


Versions:
python3-pygame-2.1.2-6.fc37.x86_64
SDL2-2.26.0-1.fc37.x86_64

Should a new bug be opened or is this report sufficient ?

Comment 7 Gwyn Ciesla 2022-12-14 15:47:07 UTC
A new bug, please and thank you!


Note You need to log in before you can comment on or make changes to this bug.