วันพุธที่ 30 มีนาคม พ.ศ. 2565

Raspberry pi python error

 libpng warning: iCCP: known incorrect sRGB profile

X Error of failed request:  BadValue (integer parameter out of range for operation)

  Major opcode of failed request:  153 (XFree86-VidModeExtension)

  Minor opcode of failed request:  10 (XF86VidModeSwitchToMode)

  Value in failed request:  0x35e

  Serial number of failed request:  126

  Current serial number in output stream:  128


Solve :

Because  Pygame version 

pip3 install pygame --upgrade


pygame.error: File is not a Windows BMP file

Solve :

apt-get install libsdl2-image-2.0-0


font module not available (ImportError: libSDL2_ttf-2.0.so.0: cannot open shared object file: No such file or directory)

Solve :sudo apt install libsdl2-ttf-2.0-0


ไม่มีความคิดเห็น:

แสดงความคิดเห็น