cortex-lab / phy

phy: interactive visualization and manual spike sorting of large-scale ephys data
BSD 3-Clause "New" or "Revised" License
314 stars 157 forks source link

libGL error when trying to open template_gui #1198

Open GoktugAlkan opened 1 year ago

GoktugAlkan commented 1 year ago

Dear community,

When I try to run the code

from phy.apps.template import template_gui; template_gui(PATH OF PARAMS.py)

I am facing the following error:

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
WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
QGLXContext: Failed to create dummy context

I tried to fix this issue by trying out all proposed solutions here, however, the same issue still appears.

I am running the code on ubuntu/linux where a GPU is active (before I was trying to run the code on a docker image but there I faced another issue #1197, which was the reason to try the code on the ubuntu system directly).

Remark: I am conntected to the ubuntu/linux machine via ssh.

Thanks for your effort in advance!