Skip to content

Update dependencies to switch qt backend to pyqt6#1187

Merged
constantinpape merged 5 commits into
mainfrom
switch-qt-backend
Jun 17, 2026
Merged

Update dependencies to switch qt backend to pyqt6#1187
constantinpape merged 5 commits into
mainfrom
switch-qt-backend

Conversation

@anwai98

@anwai98 anwai98 commented Apr 1, 2026

Copy link
Copy Markdown
Collaborator

This currently switches the qt backend to pyqt6 for making napari v7 GUI launch work! (more context in napari/napari#8808)

PS. I still need to check micro-sam's compatibility with the v7 updates, that'll be the next step!

cc: @constantinpape (I'll leave this PR open for now)

@anwai98

anwai98 commented Apr 1, 2026

Copy link
Copy Markdown
Collaborator Author

Okay, the conda platform selector trick does not work for Windows like the way I did. Hmm interesting!

@anwai98

anwai98 commented Apr 1, 2026

Copy link
Copy Markdown
Collaborator Author

Okay, it's indeed true that macOS and Windows don't like / have qt6-wayland package compatibility at all (makes it a bit more difficult to generalize).

PS. I think the last resort (an obvious solution) might be to ask users to install micro-sam by adding qt6-wayland as an additional dependency by hand!

@constantinpape

Copy link
Copy Markdown
Contributor

Just following up here: it appears like napari/napari#9009 will fix the issues and make it possible to install without users needing to specify GUI packages. We should wait for this before updating qt backends / unpinning napari in the conda env.

@anwai98

anwai98 commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator Author

Nice!

@TimMonko

TimMonko commented Jun 4, 2026

Copy link
Copy Markdown

Thanks you for following along with napari's work, and do continue to reach out in scenarios like this (like in napari/napari#8808) so that we can all move forward together! 🍻

@anwai98

anwai98 commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks @TimMonko for the appreciation. And quick re on the PR above: @constantinpape: the PR with modular backend switch has been merged now napari/napari#9009.

We'll wait until the next official release to check it out! ;)

@constantinpape

constantinpape commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

The release is there now: https://github.com/napari/napari/releases/tag/v0.7.1
Edit: but not on conda-forge yet, so can't yet be tested

@constantinpape

Copy link
Copy Markdown
Contributor

Release is on conda-forge now.

@constantinpape constantinpape marked this pull request as ready for review June 17, 2026 13:10
@constantinpape constantinpape changed the base branch from dev to main June 17, 2026 13:10
@anwai98

anwai98 commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator Author

Let's wait until we merge this @constantinpape. I got segfaults in the morning when I tried installing it!

(I'll debug it in some what's the root cause)

@constantinpape

Copy link
Copy Markdown
Contributor

I am also setting up an env to test it right now.

@anwai98

anwai98 commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator Author

Okay the segfaults can be dodged using your fontconfig cache removal, but I notice some other RuntimeError: Cannot FRAMEBUFFER object 15 because it does not exist, once napari opens up -> I'll debug this quickly with Claude!

@anwai98

anwai98 commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator Author

Found it. It's an opengl platform choice issue. Lemme validate a few more things before I conclude on a solution!

@constantinpape

Copy link
Copy Markdown
Contributor

I also had to delete the font-cache to avoid the Segmentation Fault. But then it worked for me.

@constantinpape

Copy link
Copy Markdown
Contributor

I will go ahead and merge this. Can you update the FAQ with a short description how to fix the pyopengl backend issue if it happens?

@constantinpape constantinpape merged commit 0d8cd33 into main Jun 17, 2026
4 checks passed
@constantinpape constantinpape deleted the switch-qt-backend branch June 17, 2026 14:27
anwai98 added a commit that referenced this pull request Jun 17, 2026
* Update dependencies to switch qt backend to pyqt6 (#1187)

* Update dependencies to switch qt backend to pyqt6

* Try to remove qt6-wayland from dependencies and add it for linux CI

* Update napari version requirement in environment.yaml

* Bump version from 1.8.2 to 1.8.3

---------

Co-authored-by: Constantin Pape <constantin.pape@informatik.uni-goettingen.de>

* Bump version in PyPI as well (#1239)

* Add FAQ for napari fontconfig segfault and Wayland OpenGL errors (#1240)

* Update release overview with napari pins removed (#1241)

---------

Co-authored-by: Constantin Pape <constantin.pape@informatik.uni-goettingen.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants