Hi, I'm getting the following error when trying to use the asegstats2table command, I can't see anything similar from previous emails, any ideas what the issue is? Thanks v much in advance.
asegstats2table --subjects baseline 12m 24m 36m --meas volume --tablefile aseg_stats.txt
File "/Applications/freesurfer/bin/asegstats2table", line 195
print 'ERROR: subjects are not specified (use --subjects SUBJECTS)'
SyntaxError: invalid syntax
Hi,
This is a bug introduced by python3, you must run this script with python2 by either modifying the first line to say: #!/usr/bin/env python2
or by running: python2 $FREESURFER_HOME/bin/asegstats2table --subjects baseline 12m 24m 36m --meas volume --tablefile aseg_stats.txt
best, Andrew
On Jan 6, 2018, at 1:22 PM, Hugh Pemberton <hughpemberton1@gmail.commailto:hughpemberton1@gmail.com> wrote:
Hi, I'm getting the following error when trying to use the asegstats2table command, I can't see anything similar from previous emails, any ideas what the issue is? Thanks v much in advance.
asegstats2table --subjects baseline 12m 24m 36m --meas volume --tablefile aseg_stats.txt
File "/Applications/freesurfer/bin/asegstats2table", line 195
print 'ERROR: subjects are not specified (use --subjects SUBJECTS)'
SyntaxError: invalid syntax _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu