Hello! I have been having issues with creating plots with mne, for example stc.plot()
. I have installed mne multiple times (with conda and using the installer). I even removed conda and reinstalled it again but there is an error at the time of installation that persists. The installation procedure works fine but when I try to validate it using sys.info(), I get this error:
- MNE version: 1.8.0
- operating system: e.g. macOS 14
(improved_mne) % python -c "import mne; mne.sys_info()"
Platform macOS-14.4-arm64-arm-64bit
Python 3.12.7 | packaged by conda-forge | (main, Oct 4 2024, 15:57:01) [Clang 17.0.6 ]
Executable /opt/anaconda3/envs/improved_mne/bin/python
CPU arm (12 cores)
Memory 18.0 GB
Core
ββ mne 1.8.0 (latest release)
ββ numpy 1.26.4 (OpenBLAS 0.3.27 with 12 threads)
ββ scipy 1.14.1
Matplotlib is building the font cache; this may take a moment.
ββ matplotlib 3.9.2 (backend=macosx)
Numerical (optional)
ββ sklearn 1.5.2
ββ numba 0.60.0
ββ nibabel 5.3.0
ββ nilearn 0.10.4
ββ dipy 1.9.0
ββ openmeeg 2.5.12
ββ pandas 2.2.2
ββ h5io 0.2.4
ββ h5py 3.11.0
ββ unavailable cupy
Visualization (optional)
ββ pyvista 0.44.1 (OpenGL 4.1 Metal - 88 via Apple M3 Pro)
ββ pyvistaqt 0.11.1
objc[3144]: Class QT_ROOT_LEVEL_POOL__THESE_OBJECTS_WILL_BE_RELEASED_WHEN_QAPP_GOES_OUT_OF_SCOPE is implemented in both /opt/anaconda3/envs/improved_mne/lib/libQt5Core.5.15.8.dylib (0x3183b92e0) and /opt/anaconda3/envs/improved_mne/lib/libQt6Core.6.7.3.dylib (0x320be5558). One of the two will be used. Which one is undefined.
objc[3144]: Class KeyValueObserver is implemented in both /opt/anaconda3/envs/improved_mne/lib/libQt5Core.5.15.8.dylib (0x3183b9308) and /opt/anaconda3/envs/improved_mne/lib/libQt6Core.6.7.3.dylib (0x320be5580). One of the two will be used. Which one is undefined.
objc[3144]: Class RunLoopModeTracker is implemented in both /opt/anaconda3/envs/improved_mne/lib/libQt5Core.5.15.8.dylib (0x3183b9358) and /opt/anaconda3/envs/improved_mne/lib/libQt6Core.6.7.3.dylib (0x320be55d0). One of the two will be used. Which one is undefined.
ββ vtk 9.3.1
zsh: segmentation fault python -c βimport mne; mne.sys_info()β
After this I get an error window telling me that python has crashed. I am attaching a couple of lines of the error message:
Translated Report (Full Report Below)
Process: python3.12 [3332]
Path: /opt/anaconda3/*/python
Identifier: python3.12
Version: ???
Code Type: ARM-64 (Native)
Parent Process: zsh [2590]
Responsible: pycharm [1532]
User ID: 501
Date/Time: 2024-10-15 15:17:55.3061 +0200
OS Version: macOS 14.4 (23E214)
Report Version: 12
Anonymous UUID: 1ECFF9FA-B932-B25E-A5B9-B90BE62633EA
Time Awake Since Boot: 3300 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [3332]
VM Region Info: 0 is not in any region. Bytes before following region: 4345118720
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
β>
__TEXT 102fd4000-103380000 [ 3760K] r-x/r-x SM=COW /opt/anaconda3/*/python3.12
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libQt6Gui.6.7.3.dylib 0x301ac4998 +[NSImage(QtExtras) imageFromQIcon:withSize:] + 760
1 libqcocoa.dylib 0x3084ee2dc 0x3084e4000 + 41692
2 python3.12 0x10309a688 cfunction_call + 308
3 python3.12 0x10303e6d8 _PyObject_MakeTpCall + 316
4 python3.12 0x10316d7c0 _PyEval_EvalFrameDefault + 57428
5 python3.12 0x10315e83c PyEval_EvalCode + 300
6 python3.12 0x1031d81a8 run_mod + 228
7 python3.12 0x1031dbd0c PyRun_SimpleStringFlags + 336
8 python3.12 0x103203a44 Py_RunMain + 2420
9 python3.12 0x103204984 pymain_main + 628
10 python3.12 0x102fd77c0 main + 56
11 dyld 0x181ce20e0 start + 2360
Thread 1:
0 libsystem_pthread.dylib 0x182065d20 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x182065d20 start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x18202d9ec __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x18206b55c _pthread_cond_wait + 1228
2 interpreter.cpython-312-darwin.so 0x14a98205c th_worker(void*) + 152
3 libsystem_pthread.dylib 0x18206af94 _pthread_start + 136
4 libsystem_pthread.dylib 0x182065d34 thread_start + 8
Thread 4:
0 libsystem_kernel.dylib 0x18202d9ec __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x18206b55c _pthread_cond_wait + 1228
2 interpreter.cpython-312-darwin.so 0x14a98205c th_worker(void*) + 152
3 libsystem_pthread.dylib 0x18206af94 _pthread_start + 136
4 libsystem_pthread.dylib 0x182065d34 thread_start + 8
Thread 5:
0 libsystem_kernel.dylib 0x18202d9ec __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x18206b55c _pthread_cond_wait + 1228
2 interpreter.cpython-312-darwin.so 0x14a98205c th_worker(void*) + 152
3 libsystem_pthread.dylib 0x18206af94 _pthread_start + 136
4 libsystem_pthread.dylib 0x182065d34 thread_start + 8
I understand that there may be a conflict between qt5 and qt6, but I am not sure how to resolve this. Should I remove one or the other package?
Thanks for your help!