You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So the reason this is happening is because ultrack has pyqt5 in the dependencies.
This is a pypi package not compatible with the conda-forge pyqt, resulting in a broken environment.
In general, we don't recommend depending on a specific Qt backend, but rather just qtpy: https://napari.org/stable/plugins/building_a_plugin/best_practices.html#don-t-include-pyside2-or-pyqt5-in-your-plugin-s-dependencies
Likewise if someone has pyqt6 or pyside2 in their existing env, e.g. the napari bundle, then installing ultrack will also likely break the env.
Now, given the conda dependencies, maybe no-one would do such an install? 🤷
So your options are:
remove the pyqt in the conda install line, leaving the potential issue with the pyqt5 dependency, but resolving the issue now by just having the pypi packaged Qt in the env.
remove the explicit pyqt5 pypi dependency in favor of qtpy, and then leave the pyqt from conda-forge. You will want a Qt backend for tests though, because napari[testing] alone does not include one, so you can add pyqt5 to your testing set. You could also switch to something like ultrack[all] with pyqt5 mirroring napari[all] or a ultrack[pyq5] or something and then use that to have the backend be more explicit.
Thanks a lot, @psobolewskiPhD; I didn't know they were conflicting; it seems this is more common than I realized; we had similar issues with numba from different conda channels.
From @TeunHuijben
Installing with the repo instructions doesn't work out-of-the-box
Opening napari gave me Pyqt5 errors:
This can be fixed by installing
napari[all]
afterwards, but it's a bit puzzling becausepyqt
was installed in the first line (conda install ...
)The text was updated successfully, but these errors were encountered: