-
Notifications
You must be signed in to change notification settings - Fork 56
Feat/pyqt6 napari07 migration #606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Alpaca233
wants to merge
2
commits into
Cephla-Lab:master
from
jsschwrz:feat/pyqt6-napari07-migration
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| # Python 3.14 Compatibility -- Squid Dependencies | ||
|
|
||
| ## Supported (confirmed) | ||
| | Package | Notes | | ||
| |---------|-------| | ||
| | numpy | Wheels for 3.14 since v2.3+ | | ||
| | scipy | Supported | | ||
| | pandas | Supported | | ||
| | pydantic (v2) | Supported -- but **pydantic v1** (used by old napari) is **NOT** | | ||
| | Pillow | Supported | | ||
| | matplotlib | Supported | | ||
| | PyYAML | Supported | | ||
| | filelock | Supported | | ||
| | platformdirs | Supported | | ||
| | scikit-image | Wheels for 3.14 since v0.26 | | ||
| | napari (latest) | Supported -- requires PyQt6, not PyQt5 | | ||
| | opencv-python-headless | Uses stable ABI (cp37-abi3), works | | ||
| | opencv-contrib-python-headless | Same stable ABI, works | | ||
| | torch (PyTorch) | Supported since ~2.13 | | ||
| | dask | Active releases in 2026 | | ||
| | zarr | Supported | | ||
| | tifffile | Supported | | ||
| | imageio | Supported | | ||
| | pyqtgraph | Pure Python, likely works | | ||
| | qtpy | Pure Python abstraction layer, works | | ||
|
|
||
| ## Blocked / Incompatible | ||
| | Package | Issue | | ||
| |---------|-------| | ||
| | **PyQt5** | **No Python 3.14 support -- this is the main blocker** | | ||
| | **pydantic v1** | Explicitly incompatible with 3.14 (the `__slots__` error) | | ||
|
|
||
| ## Uncertain / Likely OK but unconfirmed | ||
| | Package | Notes | | ||
| |---------|-------| | ||
| | pyserial | Pure Python, last release 2020 -- probably works but untested | | ||
| | pyvisa | Likely works | | ||
| | hidapi | Cython extension -- no 3.14 wheels confirmed | | ||
| | GitPython | Marked as NOT supporting 3.14 on pyreadiness.org | | ||
| | aicsimageio | Unclear, niche package | | ||
| | basicpy | Unclear | | ||
| | ome-zarr | Unclear | | ||
| | pydantic-xml | Likely works if pydantic v2 is used | | ||
| | pyreadline3 | Windows-specific, unclear | | ||
| | qtconsole | Depends on Qt backend | | ||
| | lxml / lxml_html_clean | C extension -- needs checking | | ||
| | mcp | Unclear | | ||
| | Hardware drivers (PySpin, pyAndorSDK3, ids_peak, pyvcam, pm16) | Vendor-specific, unlikely to have 3.14 builds yet | | ||
|
|
||
| ## Bottom Line | ||
|
|
||
| The **two hard blockers** are **PyQt5** and **pydantic v1** (via old napari). Migrating to Python 3.14 would require: | ||
| 1. Switching from PyQt5 to PyQt6 (non-trivial API changes) | ||
| 2. Upgrading napari to a version that uses pydantic v2 | ||
| 3. Verifying all hardware vendor SDKs have 3.14 builds | ||
|
|
||
| **Recommendation: Stay on Python 3.10** for production use. It's the sweet spot where everything works. | ||
|
|
||
| ## Sources | ||
| - [Python 3.14 Readiness](https://pyreadiness.org/3.14/) | ||
| - [NumPy 2.3.0 Release Notes](https://numpy.org/devdocs/release/2.3.0-notes.html) | ||
| - [PyQt5 on PyPI](https://pypi.org/project/PyQt5/) | ||
| - [napari Installation](https://napari.org/stable/getting_started/installation.html) | ||
| - [PyTorch torch.compile Python 3.14 support](https://dev-discuss.pytorch.org/t/torch-compile-support-for-python-3-14-completed/3276) | ||
| - [Pydantic v1 Python 3.14 issue](https://github.com/pydantic/pydantic/issues/12618) | ||
| - [Anaconda Python 3.14 overview](https://www.anaconda.com/blog/python-3-14-what-data-scientists-developers-need-know) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Claude Code] Fixed in e879d3e on #622 (this PR's head is on the jsschwrz fork, which we can't push to). updateNapariConnections now disconnects before connecting, so it is idempotent across performance-mode toggles; tests/control/test_napari_connections.py asserts exact receiver counts after repeated toggles (the old code fired updateTile 4x after three toggles). Note on the suggested alternative: OR-ing Qt.UniqueConnection into the requested type isn't possible under PyQt6 — Qt.ConnectionType is a plain Enum there, so
Qt.QueuedConnection | Qt.UniqueConnectionraises TypeError (it works under PyQt5, where the enum is int-based).