Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Migration from sleap 1.4.1 to sleap 1.5 in windows machine #2430

@skyshi0

Description

@skyshi0

Hi SLEAP team,

Thank you for upgrading SLEAP to 1.5.1, I am very excited to try it out. I’ve tested SLEAP 1.5.1 on both Linux and Windows platforms, and the problems with Linux installation was posted 2428, mostly about automatic GUI close and index out of bound error.

I summarized the issues with windows installation here.
“installation as a system-wide tool with uv”

Steps to reproduce:

powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
uv tool install "sleap[nn]" --index https://download.pytorch.org/whl/cu130 --index https://pypi.org/simple
# Install sleap-nn
# CUDA 13.0
uv tool install sleap-nn[torch] --index-url https://pypi.org/simple --extra-index-url https://download.pytorch.org/whl/cu130

sleap-label
in cmd:

Problems Description:

Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\skyshi.local\bin\sleap-label.exe_main
.py", line 4, in
from sleap.gui.app import main
File "C:\Users\skyshi\AppData\Roaming\uv\tools\sleap\Lib\site-packages\sleap\gui\app.py", line 56, in
from qtpy import QtCore, QtGui
File "C:\Users\skyshi\AppData\Roaming\uv\tools\sleap\Lib\site-packages\qtpy_init
.py", line 293, in
raise QtBindingsNotFoundError from None
qtpy.QtBindingsNotFoundError: No Qt bindings could be found

Then I uninstall sleap and sleap-nn with uv tool uninstall sleap, uv tool uninstall sleap-nn
And tried “installation with uv pip”

Steps to reproduce

powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
uv init 
uv venv
# CUDA 13.0
uv pip install "sleap[nn]" --index https://download.pytorch.org/whl/cu130 --index https://pypi.org/simple
uv run --active sleap-label --help

I encountered the same problems:

Problems Description:

Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\skyshi\Desktop\local_project\2025Fall_MEC_recording_cohort1\code\sleap151.venv\Scripts\sleap-label.exe_main
.py", line 4, in
from sleap.gui.app import main
File "C:\Users\skyshi\Desktop\local_project\2025Fall_MEC_recording_cohort1\code\sleap151.venv\Lib\site-packages\sleap\gui\app.py", line 56, in
from qtpy import QtCore, QtGui
File "C:\Users\skyshi\Desktop\local_project\2025Fall_MEC_recording_cohort1\code\sleap151.venv\Lib\site-packages\qtpy_init
.py", line 293, in
raise QtBindingsNotFoundError from None
qtpy.QtBindingsNotFoundError: No Qt bindings could be found

Then I removed the .venv and .lock and tried the installation in a conda environment using pip

Steps to reproduce

conda create -n sleap python=3.12
conda activate sleap
# CUDA 13.0
pip install "sleap[nn]" --extra-index-url https://download.pytorch.org/whl/cu130 --index-url https://pypi.org/simple

Now, I can open the sleap GUI and load the project done with 1.4.1a2, However, I encountered the same problems as described in 2429,

Problems Description:

The symmetry of nodes and edges are messed up

C:\Users\skyshi\Desktop\local_project\2025Fall_MEC_recording_cohort1\code\sleap151>sleap-label
Saving config: C:\Users\skyshi.sleap\1.5.1\preferences.yaml

Software versions:
SLEAP: 1.5.1
Numpy: 2.2.6
Python: 3.12.12
OS: Windows-11-10.0.26100-SP0

Happy SLEAPing! :)
Error occurred during callback 0 for palette!
[<function MainWindow._create_menus..add_submenu_choices.. at 0x00000174B6C2FBA0>, <function MainWindow._load_overlays..overlay_state_connect.. at 0x00000174BA7934C0>, <bound method MainWindow.plotFrame of <sleap.gui.app.MainWindow(0x174fd07b550) at 0x00000174B5791FC0>>, <function MainWindow._load_overlays.. at 0x00000174BA7936A0>, <function MainWindow._load_overlays.. at 0x00000174BA793740>, <function MainWindow._load_overlays..overlay_state_connect.. at 0x00000174BA793C40>, <bound method MainWindow.plotFrame of <sleap.gui.app.MainWindow(0x174fd07b550) at 0x00000174B5791FC0>>, <function MainWindow._load_overlays.. at 0x00000174BA793E20>, <function MainWindow._load_overlays.. at 0x00000174BA793EC0>]
'PySide6.QtWidgets.QGraphicsDropShadowEffect' object has no attribute 'text'
Error occurred during callback 0 for distinctly_color!
[<function MainWindow._create_menus..add_submenu_choices.. at 0x00000174B6C2FEC0>, <function MainWindow._load_overlays..overlay_state_connect.. at 0x00000174BA793560>, <bound method MainWindow.plotFrame of <sleap.gui.app.MainWindow(0x174fd07b550) at 0x00000174B5791FC0>>, <function MainWindow._load_overlays.. at 0x00000174BA7937E0>, <function MainWindow._load_overlays..overlay_state_connect.. at 0x00000174BA793A60>, <bound method MainWindow.plotFrame of <sleap.gui.app.MainWindow(0x174fd07b550) at 0x00000174B5791FC0>>, <function MainWindow._load_overlays.. at 0x00000174BA793F60>]
'PySide6.QtWidgets.QGraphicsDropShadowEffect' object has no attribute 'text'

Expected behaviors VS Observed behaviors

I then remove the sleap 1.5.1 conda environment and reinstall the sleap 1.4.1a2, and I attached the nodes and edges connections in two GUI

Image

Your personal set up

Self assembled windows machine
Processor: 13th Gen Intel(R) Core(TM) i9-13900K (3.00 GHz)
RAM: 128 GB
Windows: windows 11 Windows 11 Education, version 24H2
GPU: NVIDIA GeForce RTX 5070 Ti
GPU Driver: Game Ready Driver version 581.08
CUDA driver: 13.0
Previous sleap installation: 1.4.1a2

Conda update -n base conda
Conda install -n base conda-libmamba-solver
Conda config –set solver libmamba
Conda create -y -n sleap -c conda-forge -c nvidia -c sleap/label/dev -c sleap-c anaconda sla=1.4.1

Let me know if you have any insights on above questions, and I’d love to provide with more details if needed.

Best,
Sky

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