Skip to content

Python 3.12 not supported - widgets black #1366

@pas-calc

Description

@pas-calc

This seems to be problem with Qt dependencies on Python 3.12

Error was like MouseLand/Kilosort#613 (comment) or after using one of the solutions mentioned, then phy would show up, but all widgets remain black, except for the unit list. When navigating through it, the other widgets still are black.

Expected behavior: Widgets show waveforms, spike times, channels, ...

Downgrading to Python 3.11 solved it

# add python other versions repo
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.11 python3.11-venv # install python 3.11 and virtual env

# create venv using python 3.11
mkdir ~/python_virtual_envs
cd ~/python_virtual_envs
python3.11 -m venv phy
source ~/python_virtual_envs/bin/activate
# install newest phy from git
pip install git+https://github.com/cortex-lab/phy.git

# now run the template GUI
cd spikesorting_output_folder # navigate to the desired folder
phy templates-gui params.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions