1

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.

Rabbid76
  • 202,892
  • 27
  • 131
  • 174
lilsolar
  • 59
  • 7

0 Answers0