# ModuleNotFoundError in Overview of MEG/EEG analysis with MNE-Python

**URL:** <https://mne.discourse.group/t/modulenotfounderror-in-overview-of-meg-eeg-analysis-with-mne-python/7027>\
**Category:** Support & Discussions\
**Created:** [June 6, 2023, 9:56am UTC](https://mne.discourse.group/t/modulenotfounderror-in-overview-of-meg-eeg-analysis-with-mne-python/7027 "2023-06-06T09:56:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![margarida.serra](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@margarida.serra](https://mne.discourse.group/u/margarida.serra)\
**Post date:** [June 6, 2023, 9:56am UTC](https://mne.discourse.group/t/modulenotfounderror-in-overview-of-meg-eeg-analysis-with-mne-python/7027/1 "2023-06-06T09:56:10Z")

</div>

- MNE version: 1.3.1
- operating system: macOS 12.5.1

I am using this tutorial: [Overview of MEG/EEG analysis with MNE-Python — MNE 1.4.1 documentation](https://mne.tools/stable/auto_tutorials/intro/10_overview.html#sphx-glr-auto-tutorials-intro-10-overview-py)

and when I do:  
sample\_data\_folder = mne.datasets.sample.data\_path()  
sample\_data\_raw\_file = (  
sample\_data\_folder / “MEG” / “sample” / “sample\_audvis\_filt-0-40\_raw.fif”  
)  
raw = mne.io.read\_raw\_fif(sample\_data\_raw\_file)

it says:  
ModuleNotFoundError Traceback (most recent call last)  
Cell In[2], line 1  
----\> 1 sample\_data\_folder = mne.datasets.sample.data\_path()  
2 sample\_data\_raw\_file = (  
3 sample\_data\_folder / “MEG” / “sample” / “sample\_audvis\_filt-0-40\_raw.fif”  
4 )  
5 raw = mne.io.read\_raw\_fif(sample\_data\_raw\_file)

File :12, in data\_path(path, force\_update, update\_path, download, verbose)

File /lib/python3.11/site-packages/mne/datasets/sample/sample.py:14, in data\_path(path, force\_update, update\_path, download, verbose)  
11 @verbose  
12 def data\_path(path=None, force\_update=False, update\_path=True,  
13 download=True, \*, verbose=None): # noqa: D103  
—\> 14 return \_download\_mne\_dataset(  
15 name=‘sample’, processor=‘untar’, path=path,  
16 force\_update=force\_update, update\_path=update\_path,  
17 download=download)

File /lib/python3.11/site-packages/mne/datasets/utils.py:195, in \_download\_mne\_dataset(name, processor, path, force\_update, update\_path, download, accept)  
192 def \_download\_mne\_dataset(name, processor, path, force\_update,  
193 update\_path, download, accept=False):  
194 “”“Aux function for downloading internal MNE datasets.”“”  
 → 195 import pooch  
196 from mne.datasets.\_fetch import fetch\_dataset  
198 \_check\_in\_testing\_and\_raise(name, download)

ModuleNotFoundError: No module named ‘pooch’  
​  
what is happening?

---

<div class="post-metadata">

**Author:** ![cbrnr](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/cbrnr/32/1409_2.png) [@cbrnr](https://mne.discourse.group/u/cbrnr)\
**Post date:** [June 6, 2023, 9:59am UTC](https://mne.discourse.group/t/modulenotfounderror-in-overview-of-meg-eeg-analysis-with-mne-python/7027/2 "2023-06-06T09:59:07Z")

</div>

Your Python environment is missing the `pooch` package. Depending on how you installed MNE-Python, you need to `pip install pooch` or `conda install pooch`.

---

<div class="post-metadata">

**Author:** ![margarida.serra](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@margarida.serra](https://mne.discourse.group/u/margarida.serra)\
**Post date:** [June 6, 2023, 10:55am UTC](https://mne.discourse.group/t/modulenotfounderror-in-overview-of-meg-eeg-analysis-with-mne-python/7027/3 "2023-06-06T10:55:56Z")

</div>

I already did that and nothing changed.

This is what I got after doing pip install pooch:

Requirement already satisfied: pooch in ./opt/anaconda3/lib/python3.9/site-packages (1.7.0)

Requirement already satisfied: packaging\>=20.0 in ./opt/anaconda3/lib/python3.9/site-packages (from pooch) (21.3)

Requirement already satisfied: requests\>=2.19.0 in ./opt/anaconda3/lib/python3.9/site-packages (from pooch) (2.28.1)

Requirement already satisfied: platformdirs\>=2.5.0 in ./opt/anaconda3/lib/python3.9/site-packages (from pooch) (2.5.2)

Requirement already satisfied: pyparsing!=3.0.5,\>=2.0.2 in ./opt/anaconda3/lib/python3.9/site-packages (from packaging\>=20.0-\>pooch) (3.0.9)

Requirement already satisfied: idna\<4,\>=2.5 in ./opt/anaconda3/lib/python3.9/site-packages (from requests\>=2.19.0-\>pooch) (3.3)

Requirement already satisfied: urllib3\<1.27,\>=1.21.1 in ./opt/anaconda3/lib/python3.9/site-packages (from requests\>=2.19.0-\>pooch) (1.26.11)

Requirement already satisfied: certifi\>=2017.4.17 in ./opt/anaconda3/lib/python3.9/site-packages (from requests\>=2.19.0-\>pooch) (2022.9.24)

Requirement already satisfied: charset-normalizer\<3,\>=2 in ./opt/anaconda3/lib/python3.9/site-packages (from requests\>=2.19.0-\>pooch) (2.0.4)

What now?

---

<div class="post-metadata">

**Author:** ![cbrnr](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/cbrnr/32/1409_2.png) [@cbrnr](https://mne.discourse.group/u/cbrnr)\
**Post date:** [June 6, 2023, 10:58am UTC](https://mne.discourse.group/t/modulenotfounderror-in-overview-of-meg-eeg-analysis-with-mne-python/7027/4 "2023-06-06T10:58:16Z")

</div>

Then you are probably not in the correct environment. In your script, can you please run `mne.sys_info()` and post the output here?

---

<div class="post-metadata">

**Author:** ![margarida.serra](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@margarida.serra](https://mne.discourse.group/u/margarida.serra)\
**Post date:** [June 6, 2023, 11:06am UTC](https://mne.discourse.group/t/modulenotfounderror-in-overview-of-meg-eeg-analysis-with-mne-python/7027/5 "2023-06-06T11:06:04Z")

</div>

Platform: Emscripten-3.1.32-wasm32-32bit  
Python: 3.11.2 (main, Mar 30 2023, 21:37:59) [Clang 17.0.0 ([GitHub - llvm/llvm-project: The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. Note: the repository does not accept github pull requests at this moment. Please submit your patches at http://reviews.llvm.org.](https://github.com/llvm/llvm-project) df82394e7a2d06506718cafa347b  
Executable: /home/pyodide/this.program  
CPU: : 1 cores  
Memory: Unavailable (requires “psutil” package)  
mne: 1.3.1  
numpy: 1.24.2 {unknown linalg bindings (threadpoolctl module not found: The module ‘threadpoolctl’ is included in the Pyodide distribution, but it is not installed.  
You can install it by calling:  
await micropip.install(“threadpoolctl”) in Python, or  
await pyodide.loadPackage(“threadpoolctl”) in JavaScript  
See [Loading packages — Version 0.23.2](https://pyodide.org/en/stable/usage/loading-packages.html) for more details.)}  
scipy: 1.9.3  
matplotlib: Not found

sklearn: Not found  
numba: Not found  
nibabel: Not found  
nilearn: Not found  
dipy: Not found  
openmeeg: Not found  
cupy: Not found  
pandas: Not found  
pyvista: Not found  
pyvistaqt: Not found  
ipyvtklink: Not found  
vtk: Not found  
qtpy: Not found  
ipympl: Not found  
pyqtgraph: Not found  
pooch: Not found

mne\_bids: Not found  
mne\_nirs: Not found  
mne\_features: Not found  
mne\_qt\_browser: Not found  
mne\_connectivity: Not found  
mne\_icalabel: Not found

---

<div class="post-metadata">

**Author:** ![cbrnr](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/cbrnr/32/1409_2.png) [@cbrnr](https://mne.discourse.group/u/cbrnr)\
**Post date:** [June 6, 2023, 11:30am UTC](https://mne.discourse.group/t/modulenotfounderror-in-overview-of-meg-eeg-analysis-with-mne-python/7027/6 "2023-06-06T11:30:42Z")

</div>

This output shows that you don’t have `pooch` (and many other packages) installed. Are you intentionally running MNE-Python on Pyodide (AFAIK we don’t officially support it)? You need to install the packages inside the correct environment, in your previous post you seem to have installed `pooch` in another (conda) env.
