[Mne_analysis] Assertion error when running mne.io.read_raw_brainvision

Alexandre Gramfort alexandre.gramfort at telecom-paristech.fr
Sat Apr 23 04:31:24 EDT 2016
Search archives:

hi,

as explained on the readme [1] you need to do:

"
for the latest development version (the most up to date):

pip install -e git+https://github.com/mne-tools/mne-python#egg=mne-dev --user
"

in a terminal.


Do not type it in the python interpreter of pycharm but in a console/terminal.

HTH
Alex

[1] https://github.com/mne-tools/mne-python

On Sat, Apr 23, 2016 at 2:38 AM, Gladia Hotan <gladiach at gmail.com> wrote:
> Hi Eric,
>
> Do I get the latest version by running $ pip install mne –upgrade in python?
> I did this in pycharm and I got 'invalid syntax'.
>
> Best,
> Gladia
>
> On Fri, Apr 22, 2016 at 7:34 PM, Eric Larson <larson.eric.d at gmail.com>
> wrote:
>>
>> I believe this issue has been fixed in latest master, can you give it a
>> try?
>>
>> Eric
>>
>>
>> On Fri, Apr 22, 2016 at 4:18 PM, Gladia Hotan <gladiach at gmail.com> wrote:
>>>
>>> Hi,
>>>
>>> I'm trying to open a vhdr file in Python. When I do
>>>
>>> raw = mne.io.read_raw_brainvision(<filename>)
>>>
>>> I get this error:
>>> Traceback (most recent call last):
>>>   File
>>> "/usr/pubsw/packages/python/anaconda/lib/python2.7/site-packages/IPython/core/interactiveshell.py",
>>> line 3035, in run_code
>>>     exec(code_obj, self.user_global_ns, self.user_ns)
>>>   File "<ipython-input-4-1ae38f69fbbe>", line 1, in <module>
>>>     mne.io.read_raw_brainvision(filename)
>>>   File
>>> "/usr/pubsw/packages/python/anaconda/lib/python2.7/site-packages/mne/io/brainvision/brainvision.py",
>>> line 624, in read_raw_brainvision
>>>     preload=preload, verbose=verbose)
>>>   File "<string>", line 2, in __init__
>>>   File
>>> "/usr/pubsw/packages/python/anaconda/lib/python2.7/site-packages/mne/utils.py",
>>> line 541, in verbose
>>>     return function(*args, **kwargs)
>>>   File
>>> "/usr/pubsw/packages/python/anaconda/lib/python2.7/site-packages/mne/io/brainvision/brainvision.py",
>>> line 80, in __init__
>>>     info, self._eeg_info, events = _get_eeg_info(vhdr_fname, eog, misc)
>>>   File
>>> "/usr/pubsw/packages/python/anaconda/lib/python2.7/site-packages/mne/io/brainvision/brainvision.py",
>>> line 406, in _get_eeg_info
>>>     assert l == 'Brain Vision Data Exchange Header File Version 1.0'
>>> AssertionError
>>>
>>> How can I debug this? I think there's nothing wrong with the vhdr file
>>> itself because I have been able to load it and process it in Matlab.
>>>
>>>
>>> Thanks,
>>>
>>> Gladia
>>>
>>>
>>>
>>> _______________________________________________
>>> Mne_analysis mailing list
>>> Mne_analysis at nmr.mgh.harvard.edu
>>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>>>
>>>
>>> The information in this e-mail is intended only for the person to whom it
>>> is
>>> addressed. If you believe this e-mail was sent to you in error and the
>>> e-mail
>>> contains patient information, please contact the Partners Compliance
>>> HelpLine at
>>> http://www.partners.org/complianceline . If the e-mail was sent to you in
>>> error
>>> but does not contain patient information, please contact the sender and
>>> properly
>>> dispose of the e-mail.
>>>
>>
>>
>> _______________________________________________
>> Mne_analysis mailing list
>> Mne_analysis at nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>>
>>
>> The information in this e-mail is intended only for the person to whom it
>> is
>> addressed. If you believe this e-mail was sent to you in error and the
>> e-mail
>> contains patient information, please contact the Partners Compliance
>> HelpLine at
>> http://www.partners.org/complianceline . If the e-mail was sent to you in
>> error
>> but does not contain patient information, please contact the sender and
>> properly
>> dispose of the e-mail.
>>
>
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> The information in this e-mail is intended only for the person to whom it is
> addressed. If you believe this e-mail was sent to you in error and the
> e-mail
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>



More information about the Mne_analysis mailing list