Dear FS,
I'm basically stocked with a problem when I press the "Generate Stats Data Import" in the Qdec GUI.
I got the following error message as in the attached file.
I'm running FS using a python 2.6 version.
It seems that I do have a problem with the asegstat2table command line but I don't understand why...
Any advice, please?
Many thanks in advance for your help.
Sincerely,
Gaëlle Leroux.
Hi Gaelle
This seems to be an error due to Python's "warning" module being deprecated in Python 2.6. I'll update the sources so as to accommodate this change.
Meanwhile, the quickest fix is to open up
nano $FREESURFER_HOME/bin/asegstats2table
and comment out the following lines ( put a "#" at the start of the line ).. i.e change
import warnings warnings.filterwarnings('ignore', '.*negative int.*')
to
#import warnings #warnings.filterwarnings('ignore', '.*negative int.*')
and see whether it works.
Best Krish
On Jul 6, 2010, at 4:31 AM, Gaëlle Leroux wrote:
Dear FS,
I'm basically stocked with a problem when I press the "Generate Stats Data Import" in the Qdec GUI. I got the following error message as in the attached file. I'm running FS using a python 2.6 version. It seems that I do have a problem with the asegstat2table command line but I don't understand why... Any advice, please?
Many thanks in advance for your help.
Sincerely, Gaëlle Leroux. <Diapositive1.PNG> _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Hi Krish,
Thank you for your reply. Unfortunately none of these did work (but now I've an up-to-date environment at least). But the IT/research engineer in the lab found that it was "just" my environment PYTHONHOME and PYTHONPATH which were pointing at a bad directory. After unsetting these two env, it works perfectly fine.
Thanks for your help, Gaëlle.
-----Message d'origine----- De : Krish Subramaniam [mailto:krish@nmr.mgh.harvard.edu] Envoyé : mardi 6 juillet 2010 17:47 À : Gaëlle Leroux Cc : freesurfer@nmr.mgh.harvard.edu Objet : Re: [Freesurfer] Qdec - problem with the Generate Stats Data Import button.
Hi Gaelle
This seems to be an error due to Python's "warning" module being deprecated in Python 2.6. I'll update the sources so as to accommodate this change.
Meanwhile, the quickest fix is to open up
nano $FREESURFER_HOME/bin/asegstats2table
and comment out the following lines ( put a "#" at the start of the line ).. i.e change
import warnings warnings.filterwarnings('ignore', '.*negative int.*')
to
#import warnings #warnings.filterwarnings('ignore', '.*negative int.*')
and see whether it works.
Best Krish
On Jul 6, 2010, at 4:31 AM, Gaëlle Leroux wrote:
Dear FS,
I'm basically stocked with a problem when I press the "Generate Stats Data Import" in the Qdec GUI. I got the following error message as in the attached file. I'm running FS using a python 2.6 version. It seems that I do have a problem with the asegstat2table command line but I don't understand why... Any advice, please?
Many thanks in advance for your help.
Sincerely, Gaëlle Leroux. <Diapositive1.PNG> _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu