Qt conflict problem on Mac

I’m following the instructions provided in https://forum.cuttingeeg.org/t/mne-python-pr25-participants-instructions/984

An error occurred with visualization module pyvistaqt and the kernel crashed when running mne.sys_info() to check modules and dependencies:

├☑ pyvistaqt         0.11.3
objc[3300]: Class RunLoopModeTracker is implemented in both /opt/anaconda3/envs/mne/lib/libQt5Core.5.15.15.dylib (0x168835370) and /opt/anaconda3/envs/mne/lib/libQt6Core.6.9.3.dylib (0x34838d5d0). One of the two will be used. Which one is undefined.
objc[3300]: Class QT_ROOT_LEVEL_POOL__THESE_OBJECTS_WILL_BE_RELEASED_WHEN_QAPP_GOES_OUT_OF_SCOPE is implemented in both /opt/anaconda3/envs/mne/lib/libQt5Core.5.15.15.dylib (0x1688352f8) and /opt/anaconda3/envs/mne/lib/libQt6Core.6.9.3.dylib (0x34838d698). One of the two will be used. Which one is undefined.
objc[3300]: Class KeyValueObserver is implemented in both /opt/anaconda3/envs/mne/lib/libQt5Core.5.15.15.dylib (0x168835320) and /opt/anaconda3/envs/mne/lib/libQt6Core.6.9.3.dylib (0x34838d6c0). One of the two will be used. Which one is undefined.

Looks like different packages are installed with inconsistent qt dependencies that cause a conflict. I did a bit of searching and it seems to be a relatively common issue for Mac, but I didn’t see a consistent way of solving it. For Mac users here, has anyone run into a similar issue and know a stable way to fix it?
Many thanks in advance!

@nschawor @wmvanvliet @christelle.guette

Hi @Yunluo !

Have you tried conda remove pyqt qt-main, this way was suggested here: https://mne.discourse.group/t/installation-issues-conflict-between-qt5-and-qt6/10393/6 , that situation looks quite similar to the error you obtained.

Best,
Natalie

Thanks Natalie! This is the exact same issue indeed. It does solve the conflicting problem. The original post hinted at issues with plotting at a later stage. I’m not sure if I will run into similar problems later.
I did have the same problem of frozen GUI window discussed here
https://forum.cuttingeeg.org/t/mne-python-gui-freezes-does-not-respond-windows-os/987/2
and I’m trying to find a solution. But I suppose it’s a separate issue then.

  • update: the block = True magic solved it. All good now!
2 Likes