[Mne_analysis] mne-python config file path could not be determined...

Eric Larson larson.eric.d at gmail.com
Wed May 21 15:52:07 EDT 2014
Search archives:

This has to do with file path determination:

https://github.com/mne-tools/mne-python/blob/master/mne/utils.py#L780

If you're up for fixing it, open an issue on Github and we'll figure out
the best way to deal with it.

Cheers,
Eric



On Wed, May 21, 2014 at 12:44 PM, Peter C. Marks <peter.c.marks at gmail.com>wrote:

> Thanks Mads. That worked although I think I"m going to have to dig a
> little deeper to find the cause.
>
> Best,
>
> Peter
>
>
> On Wed, May 21, 2014 at 2:47 PM, Mads Jensen <mje.mads at gmail.com> wrote:
>
>> Hi peter,
>>
>> I don't know if it's useful but you can set environment variables from
>> python using the os module
>>
>> import os
>> os.environ["HOME"] = "/desired/path"
>>
>> best,
>> mads
>>
>>
>> On 21/05/14 20:34, Alexandre Gramfort wrote:
>> > hi Peter,
>> >
>> >> I'm using mne as part of a browser-based web application - it is using
>> the
>> >> Django framework.
>> >
>> > sounds exciting !
>> >
>> >> Development is done using a built-in web server. Yesterday
>> >> I moved the application to Apache but I am getting an error (see
>>  below).
>> >>
>> >> I can see why the error is occurring - mne utils.py is attempting to
>> open a
>> >> config file that is located at $HOME/.mne/mne-python.json but $HOME
>> doesn't
>> >> seem to be set in the Apache environment, hence the error.
>> >>
>> >> Has anyone had a similar experience using Apache?
>> >
>> > I doubt it.
>> >
>> > What we could do is to support an environment variable eg.
>> MNE_CONFIG_DIR
>> > that defaults to $HOME but can be overwritten by the user. Would that
>> help?
>> >
>> > out of curiosity do you plan to open this code? what is the context of
>> > this work?
>> >
>> > Best,
>> > Alex
>> > _______________________________________________
>> > 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
>>
>
>
> _______________________________________________
> 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.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20140521/c6eb7cea/attachment.html 


More information about the Mne_analysis mailing list