Hi Vittal, I can only repro your error by running ‘python asegstats2table …’. And the alias solution works for me.
Running ‘asegstats2table’ directly doesn’t give me any errors, and it doesn’t need the alias setting. Best, Yujing From: freesurfer-boun...@nmr.mgh.harvard.edu <freesurfer-boun...@nmr.mgh.harvard.edu> On Behalf Of fsbuild Sent: Friday, December 30, 2022 12:29 AM To: freesurfer@nmr.mgh.harvard.edu Cc: vittalkor...@gmail.com Subject: Re: [Freesurfer] Help: Aparcstats and asegstats not working External Email - Use Caution SyntaxError: Missing parentheses in call to 'print'. Did you mean print('ERROR: atleast 1 subject must be provided')? It does not look like you are running a python 2.X. That may be because only python3 is installed by default. $ which python $ which python2 $ which python3 /bin/python3 … if you need to install python2, you can do it with ... $ sudo apt update $ sudo apt install python2 $ which python2 /bin/python2 $ python2 --version Python 2.7.18 One way or another you need “python” to report it is a 2.X version *after* you set FREESURFER_HOME and source the freesurfer setup script. To force “python” to run as “python2” you can try using an alias, $ alias python=python2 $ python --version Python 2.7.18 Similarly, if you needed python to run as python3 you could reset the alias to use =python3 instead. For the error, print 'ERROR: subjects are not specified (use --subjects SUBJECTS)’ I would check the subjects you are listing as argument can be found as directories under what SUBJECTS_DIR is currently set to. - R.
_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer 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 Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline <https://www.massgeneralbrigham.org/complianceline> . Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.