# Cannot launch a Kilosort Qt GUI on baobab on demand

**URL:** <http://hpc-community.unige.ch/t/cannot-launch-a-kilosort-qt-gui-on-baobab-on-demand/3522>\
**Category:** HPC Technical\
**Created:** [July 2, 2024, 10:07am UTC](http://hpc-community.unige.ch/t/cannot-launch-a-kilosort-qt-gui-on-baobab-on-demand/3522 "2024-07-02T10:07:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Njiva.Andrianarivelo](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/n/ba8739/32.png) [@Njiva.Andrianarivelo](http://hpc-community.unige.ch/u/Njiva.Andrianarivelo)\
**Post date:** [July 2, 2024, 10:07am UTC](http://hpc-community.unige.ch/t/cannot-launch-a-kilosort-qt-gui-on-baobab-on-demand/3522/1 "2024-07-02T10:07:34Z")

</div>

Hi Guys,

My name is Andry, postdoc in the Bellone’s Lab.  
I’m trying to use `Kilosort`, an electrophysiological spike sorter that use GPU on baobab on demand.  
`https://github.com/MouseLand/Kilosort`  
Kilosort 4 uses `pyqt6` and `pyqtgraph` for its GUI.  
I am using the `PRIVATE-BELONE` node and `gpu046` through a windows desktop.

My problem is that when I launch the program, the GUI doesnt load and show this error:

```auto
(base) (baobab)-[andrianj@gpu046 ~]$ conda activate ks4
(ks4) (baobab)-[andrianj@gpu046 ~]$ python -m kilosort
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: vkkhrdisplay, wayland, minimalegl, vnc, offscreen, eglfs, minimal, xcb, wayland-egl, linuxfb.

Aborted (core dumped)

```

I installed `Kilosort 4` on my local machine and didn’t have any trouble also I don’t have any problem with other software using GUI on baobab on demand (for instance `Phy` ([GitHub - cortex-lab/phy: phy: interactive visualization and manual spike sorting of large-scale ephys data](https://github.com/cortex-lab/phy/)) and the display interface support is mainly why I use baobab on demand.

So far I tried:  
uninstalling/intalling `pyqt6` and `pyqtgraph`,  
downgrading to `pyqt6=6.5.0/ 6.4.0`,  
even using `pyqt5` instead,  
trying `unset DISPLAY`,

> export XDG\_RUNTIME\_DIR=/tmp/runtime-andrianj

```auto
export QT_QPA_PLATFORM=wayland

```

(and each of vkkhrdisplay, minimalegl, vnc, offscreen, eglfs, minimal, xcb, wayland-egl, linuxfb)

Can you please help me ? This step is very important for analyzing my data…

Best,  
Andry

---

<div class="post-metadata">

**Author:** ![Adrien.Albert](http://hpc-community.unige.ch/user_avatar/hpc-community.unige.ch/adrien.albert/32/188_2.png) [@Adrien.Albert](http://hpc-community.unige.ch/u/Adrien.Albert)\
**Post date:** [July 19, 2024, 6:15pm UTC](http://hpc-community.unige.ch/t/cannot-launch-a-kilosort-qt-gui-on-baobab-on-demand/3522/2 "2024-07-19T18:15:20Z")

</div>

Hi @Njiva.Andrianarivelo

I tried on OpenOnDemand ans it’s working:

 ![image](http://hpc-community.unige.ch/uploads/default/original/1X/fcee577507a97b9d7555d76e6d58590400e74fbc.png)

[Baobab OpenOnDemand](https://openondemand.baobab.hpc.unige.ch/pun/sys/dashboard/) select advanced desktop pick your need and submit job.

Open a terminal and load the module kilosort:

> [@New software installed: kilosort version 4.0.13](https://hpc-community.unige.ch/t/new-software-installed-kilosort-version-4-0-13/3551/1):
>
> Dear users, we have installed a new software: kilosort 4.0.13: --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- kilosort: kilosort/4.0.13 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------…

and execute `python -m kilosort` to open the soft

---

<div class="post-metadata">

**Author:** ![Njiva.Andrianarivelo](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/n/ba8739/32.png) [@Njiva.Andrianarivelo](http://hpc-community.unige.ch/u/Njiva.Andrianarivelo)\
**Post date:** [September 24, 2024, 1:06pm UTC](http://hpc-community.unige.ch/t/cannot-launch-a-kilosort-qt-gui-on-baobab-on-demand/3522/3 "2024-09-24T13:06:54Z")

</div>

> [@Adrien.Albert](#):
>
> select advanced desktop pick

This is wonderful thanks !
