Score:0

pygame won't compile on ubuntu device but complies on windows (ubuntu 22.04)

qa flag

Currently running Ubuntu 22.04.1 LTS x86_64. When running code that utilizes pygame on mu editor & other code editors, I get this error.

pygame 2.1.2 (SDL 2.0.16, Python 3.8.12)
Hello from the pygame community. https://www.pygame.org/contribute.html
[xcb] Extra reply data still left in queue
[xcb] This is most likely caused by a broken X extension library
[xcb] Aborting, sorry about that.
python: xcb_io.c:581: int _XReply(Display *, xReply *, int, int): Assertion `!xcb_xlib_extra_reply_data_left' failed.


---------- FINISHED ----------
exit code: 6 status: 1

This error originates before my code is even run. I've tried the code on a windows machine, and the code ran fine.

I've read on this forum that it was an issue regarding wine. So I uninstalled it using this guide. This didn't fix the issue.

The error code claimed it was a broken "X extension library". From a quick google search, I got this guide on installing the latest version of xcb. Didn't work.

installing pygame doesn't work. I used the command sudo apt-get install python3-pygame

I've restarted my device as well.

Thank you.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.