computational-cell-analytics / micro-sam

Segment Anything for Microscopy
https://computational-cell-analytics.github.io/micro-sam/
MIT License
311 stars 35 forks source link

Fix pyqt error on macos-14 (macos-latest) #595

Closed GenevieveBuckley closed 1 month ago

GenevieveBuckley commented 1 month ago

Problem

Closes https://github.com/computational-cell-analytics/micro-sam/issues/558

Tests were failing on the macos-latest github runner (which currently runs the macos-14 M1 Mac image). The cause of this appears to be that pyqt was first being installed by conda/micromamba, then pip was uninstalling that and re-installing another pyqt. Something is wrong with the pyqt from pip, and it causes errors on M1 Mac machines.

Fix

The simplest solution is to remove napari[all] from the requirements-dev.txt file, so that pip does not try to uninstall the existing version of pyqt. All the github actions tests now finish without errors.