[Mne_analysis] plot_read_foward.py and plot_make_forward.py error

junpeng.zhang junpeng.zhang at gmail.com
Wed Oct 29 22:17:59 EDT 2014
Search archives:

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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20141030/22c7a25f/attachment.html 


More information about the Mne_analysis mailing list