Latest psychopy 2024.1.1 Ubuntu 23.10 error at import

EDIT: This issue has been resolved by installing the proper GPU drivers for your device. Unfortunately, it took a while and I did not take a record of all the commands I ran to install them but it is possible to find the necessary commands in the first few google search results.

Hi, so I installed the latest psychopy to Ubuntu 23.10. The first time I ran my script I received an error regarding libtiff.so.5 file not existing, which is due to ubuntu 23.10 shipping with a new version (version 6). I solved this using a symbolic link from to 6 to 5. but this time I am running into this error:

(hcf) fnl@fnl-ThinkCentre-neo-50t-Gen-3:~/hcf_lab/time_exp_dyn$ /home/fnl/anaconda3/envs/hcf/bin/python /home/fnl/hcf_lab/time_exp_dyn/time_exp_dyn_new.py
libGL error: MESA-LOADER: failed to open nouveau: /usr/lib/dri/nouveau_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: nouveau
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
Traceback (most recent call last):
  File "/home/fnl/hcf_lab/time_exp_dyn/time_exp_dyn_new.py", line 14, in <module>
    from psychopy import visual, event, core
  File "/home/fnl/anaconda3/envs/hcf/lib/python3.8/site-packages/psychopy/visual/__init__.py", line 27, in <module>
    from psychopy import event  # import before visual or
  File "/home/fnl/anaconda3/envs/hcf/lib/python3.8/site-packages/psychopy/event.py", line 77, in <module>
    from pyglet.window.mouse import LEFT, MIDDLE, RIGHT
  File "/home/fnl/anaconda3/envs/hcf/lib/python3.8/site-packages/pyglet/window/__init__.py", line 1919, in <module>
    gl._create_shadow_window()
  File "/home/fnl/anaconda3/envs/hcf/lib/python3.8/site-packages/pyglet/gl/__init__.py", line 206, in _create_shadow_window
    _shadow_window = Window(width=1, height=1, visible=False)
  File "/home/fnl/anaconda3/envs/hcf/lib/python3.8/site-packages/pyglet/window/xlib/__init__.py", line 171, in __init__
    super(XlibWindow, self).__init__(*args, **kwargs)
  File "/home/fnl/anaconda3/envs/hcf/lib/python3.8/site-packages/pyglet/window/__init__.py", line 616, in __init__
    context = config.create_context(gl.current_context)
  File "/home/fnl/anaconda3/envs/hcf/lib/python3.8/site-packages/pyglet/gl/xlib.py", line 204, in create_context
    return XlibContextARB(self, share)
  File "/home/fnl/anaconda3/envs/hcf/lib/python3.8/site-packages/pyglet/gl/xlib.py", line 314, in __init__
    super(XlibContext13, self).__init__(config, share)
  File "/home/fnl/anaconda3/envs/hcf/lib/python3.8/site-packages/pyglet/gl/xlib.py", line 218, in __init__
    raise gl.ContextException('Could not create GL context')
pyglet.gl.ContextException: Could not create GL context