Seg fault with kb = keyboard.Keyboard() (linux)

info:
Linux 6.1.38 #1 SMP PREEMPT_DYNAMIC Wed Jul 5 15:32:38 CDT 2023 x86_64 AMD Ryzen 7 5700U with Radeon Graphics AuthenticAMD GNU/Linux

Python 3.9.17 (main, Jun 8 2023, 14:52:17)
[GCC 13.1.0] on linux

just did

pip3 install --upgrade psychopy
pip3 install --upgrade pygame
pip3 install --upgrade psychtoolbox

psychopy.version
‘2024.1.4’

pygame 2.5.2 (SDL 2.28.2, Python 3.9.17)

psychtoolbox.version
‘3.0.19.0’

I get a segfault at the 2nd line of

snippet

import ctypes
xlib = ctypes.cdll.LoadLibrary("libX11.so")
xlib.XInitThreads()


from psychopy.hardware import keyboard
kb = keyboard.Keyboard()

strace output:

 openat(AT_FDCWD, "/usr/share/X11/locale/en_US.UTF-8/Compose", O_RDONLY) = 12
close(12)                               = 0
geteuid()                               = 1000
getegid()                               = 100
openat(AT_FDCWD, "/u/bgbauer/.XCompose", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/X11/locale/compose.dir", O_RDONLY) = 12
newfstatat(12, "", {st_mode=S_IFREG|0644, st_size=31977, ...}, AT_EMPTY_PATH) = 0
read(12, "#\n#\tThis file contains compose t"..., 4096) = 4096
read(12, "Y.ISO8859-1\niso8859-15/Compose\t\t"..., 4096) = 4096
read(12, "iso8859-15/Compose\t\ttn_ZA.ISO885"..., 4096) = 4096
read(12, "se\t\tfr_BE.UTF-8\nen_US.UTF-8/Comp"..., 4096) = 4096
read(12, "r_OM.ISO8859-6\niso8859-6/Compose"..., 4096) = 4096
read(12, "e:\t\tfo_FO.ISO8859-15\niso8859-1/C"..., 4096) = 4096
read(12, "_VN.tcvn/Compose:\t\tvi_VN.TCVN\nis"..., 4096) = 4096
close(12)                               = 0
access("/usr/share/X11/locale/en_US.UTF-8/Compose", R_OK) = 0
getuid()                                = 1000
getgid()                                = 100
newfstatat(AT_FDCWD, "/usr/share/X11/locale/en_US.UTF-8/Compose", {st_mode=S_IFREG|0644, st_size=460228, ...}, 0) = 0
newfstatat(AT_FDCWD, "/var/cache/libx11/compose/", 0x7ffdad71d0e0, 0) = -1 ENOENT (No such file or directory)
getuid()                                = 1000
getgid()                                = 100
newfstatat(AT_FDCWD, "/usr/share/X11/locale/en_US.UTF-8/Compose", {st_mode=S_IFREG|0644, st_size=460228, ...}, 0) = 0
newfstatat(AT_FDCWD, "/u/bgbauer/.compose-cache/", 0x7ffdad71d0e0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/X11/locale/en_US.UTF-8/Compose", O_RDONLY) = 12
newfstatat(12, "", {st_mode=S_IFREG|0644, st_size=460228, ...}, AT_EMPTY_PATH) = 0
newfstatat(12, "", {st_mode=S_IFREG|0644, st_size=460228, ...}, AT_EMPTY_PATH) = 0
read(12, "# UTF-8 (Unicode) Compose sequen"..., 4096) = 4096
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x10} ---
+++ killed by SIGSEGV +++
Segmentation fault

Bus 003 Device 007: ID 413c:2107 Dell Computer Corp. KB212-B Quiet Key Keyboard
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x413c Dell Computer Corp.
idProduct 0x2107 KB212-B Quiet Key Keyboard
bcdDevice 1.78
iManufacturer 1 DELL
iProduct 2 Dell USB Entry Keyboard