Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Error : Missing 'pick_types' Function from mne.io.pick Module #581

Open
Paulhb7 opened this issue Apr 29, 2024 · 2 comments
Open

Comments

@Paulhb7
Copy link
Contributor

Paulhb7 commented Apr 29, 2024

When attempting to import moabb in a Python environment, I encountered an ImportError related to the mne package. Specifically, the error arises because the pick_types function cannot be imported from mne.io.pick. This issue occurred during the execution of the mne_bids module, which attempts to import pick_types, as shown in the traceback below:

`---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
in <cell line: 1>()
----> 1 import moabb

13 frames
/usr/local/lib/python3.10/dist-packages/mne_bids/utils.py in
17 from mne.channels import make_standard_montage
18 from mne.io.kit.kit import get_kit_info
---> 19 from mne.io.pick import pick_types
20 from mne.utils import warn as _warn, logger, verbose
21

ImportError: cannot import name 'pick_types' from 'mne.io.pick' (/usr/local/lib/python3.10/dist-packages/mne/io/pick.py)

---------------------------------------------------------------------------`

@Paulhb7
Copy link
Contributor Author

Paulhb7 commented Apr 29, 2024

Works using mne==1.6.1

@bruAristimunha
Copy link
Collaborator

Hi @Paulhb7,

Thank you for reporting this issue. Looks like this is related to mne_bids, they solved it here: mne-tools/mne-bids#1165.

We will upgrade the moabb dependencies soon with a new version.

I asked Bruna (@brunaafl) to take a look and see if it doesn't affect another place in our code. I'm almost sure it affects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants