flint: Can't start with cv2 in the env
Noticed with MXcube webenv by @beteva
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/users/blissadm/conda/miniconda/envs/mxcubeweb/lib/python3.9/site-packages/cv2/qt/plugins" even though it was found.
Opencv was installed with pip.
Solution 1
Install instead a headless version of opencv. It doesn't package plugins for Qt
pip uninstall opencv-python
pip install opencv-python-headless
Things to check
- Maybe the conda package for opencv is just working in the case (because the dependency solver can do its job).
- Test with
QT_DEBUG_PLUGINS=1
to have a bit more information