[Mne_analysis] plot_read_foward.py and plot_make_forward.py error
junpeng.zhang
junpeng.zhang at gmail.com
Thu Oct 30 03:41:25 EDT 2014
Hi Alex,
Thank you for your quick response.
I will try your suggetions.
May I ask you
what is the matter with my first question:
" ImportError: No module named surfer ".
When I run the example code plot_read_forward.py,
such error raised.
Best wishes,
Junpeng
2014-10-30
junpeng.zhang
发件人:Alexandre Gramfort <alexandre.gramfort at telecom-paristech.fr>
发送时间:2014-10-30 14:54
主题:Re: [Mne_analysis] plot_read_foward.py and plot_make_forward.py error
收件人:"Discussion and support forum for the users of MNE Software"<mne_analysis at nmr.mgh.harvard.edu>
抄送:
hi Junpeng,
I assume you work on a windows machine. To allow parallel computing
you need to start the functions using "if __name__ == '__main__'".
Your script should look something like this:
if __name__ == '__main__':
import mne
mne. ...
HTH
Alex
On Thu, Oct 30, 2014 at 3:17 AM, junpeng.zhang <junpeng.zhang at gmail.com> wrote:
> Hi MNERs,
> When I run the code, plot_read_forward.py,
> fig1 fig2 can be plotted correctly. However, an error raised,
> *************************************************************************************
> /root/Enthought/Canopy_32bit/User/lib/python2.7/site-packages/mne-0.8.6-py2.7.egg/mne/viz/_3d.pyc
> in plot_source_estimates(stc, subject, surface, hemi, colormap, time_label,
> smoothing_steps, fmin, fmid, fmax, transparent, alpha, time_viewer,
> config_opts, subjects_dir, figure, views, colorbar)
> 401 A instance of surfer.viz.Brain from PySurfer.
> 402 """
> --> 403 import surfer
> 404 from surfer import Brain, TimeViewer
> 405
>
> ImportError: No module named surfer
> *********************************************************************************
>
> Q2. When I run plot_make_forward.py,
> the error as,
> **************************************************************************************
> /root/Enthought/Canopy_32bit/User/lib/python2.7/site-packages/sklearn/externals/joblib/parallel.pyc
> in __call__(self, iterable)
> 475 already_forked =
> int(os.environ.get('__JOBLIB_SPAWNED_PARALLEL__', 0))
> 476 if already_forked:
> --> 477 raise ImportError('[joblib] Attempting to do
> parallel computing'
> 478 'without protecting your import on a
> system that does '
> 479 'not support forking. To use
> parallel-computing in a '
>
> ImportError: [joblib] Attempting to do parallel computingwithout protecting
> your import on a system that does not support forking. To use
> parallel-computing in a script, you must protect you main loop using "if
> __name__ == '__main__'". Please see the joblib documentation on Parallel for
> more information
>
> **********************************************************************************8***
> Sorry for sending such simple questions, and any responses are appreciated.
>
> Best regards,
> Junpeng
>
>
>
>
>
>
>
>
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20141030/554c990f/attachment.html
More information about the Mne_analysis
mailing list