Install & Compatibility
Where this runs
tested against v0.17.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 8.102s · 348.6MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 13.7s · import 7.688s · 336MB
353MB installed
● package 353MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
read_raw_bids
✓ from mne_bids import read_raw_bids
✗ from mne.bids import read_raw_bids
mne-bids is a separate package, not part of mne
BIDSPath
✓ from mne_bids import BIDSPath
Minimal example: define a BIDS path and read raw data.
from mne_bids import BIDSPath, read_raw_bids
bids_path = BIDSPath(subject='01', session='01', task='audiovisual', root='/path/to/bids')
raw = read_raw_bids(bids_path=bids_path)
print(raw) # prints info about the raw data
mne_bids --version
Debug
Known issues
breakingVersion 0.15.0 dropped support for Python 3.8. Upgrade Python to 3.9+.affects: >=0.15.0
breakingVersion 0.12.0 changed the default behavior of write_raw_bids to overwrite files. Previously it raised an error if a file existed.fixSet overwrite=False explicitly if you want the old behavior
affects: >=0.12.0
deprecatedUsing MNE-BIDS with MNE <1.0 is deprecated. MNE-BIDS 0.12+ requires MNE >=1.0.affects: >=0.12.0, <1.0.0
gotchaBIDSPath does not automatically infer the root directory. If root is not set, write_raw_bids may default to current working directory.fixAlways specify the root parameter explicitly.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'mne_bids'
Package not installed.
fixRun pip install mne-bids
ValueError: The provided BIDS root directory does not exist
Root path specified does not exist or is incorrect.
fixEnsure the root path is a valid directory. Use absolute paths.
TypeError: read_raw_bids() got an unexpected keyword argument 'bids_path'
Using too old version (prior to v0.11) where read_raw_bids accepted positional args.
fixUpdate mne-bids to >=0.11.0 and use the keyword argument 'bids_path'.
Upgrade
Version history
0.19.0latest on PyPI · released May 26, 2026
Audit
Dependencies
mnerequiredCore dependency for data handling and analysis
numpyrequiredNumerical operations
scipyrequiredScientific computing
pybvrequiredWriting BrainVision data
formatspecrequiredBIDS specification validation