mne-python: Segfault with raw.plot() on macOS

Consider the following example:

import numpy as np
import mne
info = mne.create_info(10, 500, "eeg")
raw = mne.io.RawArray(np.random.normal(scale=1e-5, size=(10, 10000)), info)
raw.plot()

When I run this script interactively (i.e. from IPython with %run plot_example.py) everything works fine. However, when I run the script with python3 plot_example.py, I get a segfault:

[1]    44467 segmentation fault  python3 plot_example.py

I use Python 3.8.2 installed via Homebrew, but the same happens with Anaconda Python 3.7.6 and 3.8.2. Is it just me or can someone reproduce this?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (17 by maintainers)

Most upvoted comments