@ss_review ERROR

Hi all,

I’ve been using the command “tcsh @ss_review_driver” and “tcsh @ss_review_basic” in the results directory for my patients for months. The past few times I’ve tried on my laptop and desktop it runs fine from subject through average censored motion then I get the same errors:

File “/Users/rolinskira/abin/1d_tool.py”, line 1170
if self.verb > 2: print “++ read 1D data from file ‘%s’” % fname
^
SyntaxError: Missing parentheses in call to ‘print’. Did you mean print(if self.verb > 2: print “++ read 1D data from file ‘%s’” % fname)?
max motion displacement :
File “/Users/rolinskira/abin/1d_tool.py”, line 1170
if self.verb > 2: print “++ read 1D data from file ‘%s’” % fname
^
SyntaxError: Missing parentheses in call to ‘print’. Did you mean print(if self.verb > 2: print “++ read 1D data from file ‘%s’” % fname)?
max censored displacement :
outlier limit : 0.1
average outlier frac (TR) : 0.00515897
num TRs above out limit : 6

File “/Users/rolinskira/abin/1d_tool.py”, line 1170
if self.verb > 2: print “++ read 1D data from file ‘%s’” % fname
^
SyntaxError: Missing parentheses in call to ‘print’. Did you mean print(if self.verb > 2: print “++ read 1D data from file ‘%s’” % fname)?
File “/Users/rolinskira/abin/1d_tool.py”, line 1170
if self.verb > 2: print “++ read 1D data from file ‘%s’” % fname
^
SyntaxError: Missing parentheses in call to ‘print’. Did you mean print(if self.verb > 2: print “++ read 1D data from file ‘%s’” % fname)?
num runs found :
num TRs per run :
File “/Users/rolinskira/abin/1d_tool.py”, line 1170
if self.verb > 2: print “++ read 1D data from file ‘%s’” % fname
^
SyntaxError: Missing parentheses in call to ‘print’. Did you mean print(if self.verb > 2: print “++ read 1D data from file ‘%s’” % fname)?
File “/Users/rolinskira/abin/1d_tool.py”, line 1170
if self.verb > 2: print “++ read 1D data from file ‘%s’” % fname
^
SyntaxError: Missing parentheses in call to ‘print’. Did you mean print(if self.verb > 2: print “++ read 1D data from file ‘%s’” % fname)?
File “/Users/rolinskira/abin/1d_tool.py”, line 1170
if self.verb > 2: print “++ read 1D data from file ‘%s’” % fname
^
SyntaxError: Missing parentheses in call to ‘print’. Did you mean print(if self.verb > 2: print “++ read 1D data from file ‘%s’” % fname)?
num TRs per run (applied) :
num TRs per run (censored):
fraction censored per run :
File “/Users/rolinskira/abin/1d_tool.py”, line 1170
if self.verb > 2: print “++ read 1D data from file ‘%s’” % fname
^
SyntaxError: Missing parentheses in call to ‘print’. Did you mean print(if self.verb > 2: print “++ read 1D data from file ‘%s’” % fname)?
rows_cols: Subscript out of range.

Does it have to do with some sort of update or is it me? I am running from a shared server. Thank you!!

Also, when I try to run afni_proc.py I get this error:

File “/Users/rolinskira/abin/afni_proc.py”, line 860
print ‘%sSubjProcSream: %s’ % (mesg, self.label)
^
SyntaxError: invalid syntax

Again, I tried on both my laptop and desktop. Are these two errors related? Need help asap :frowning:

UPDATE:

I figured it out. My python version was updated to 3.6 and that is why there were syntax errors. I corrected the problem with the following commands:

conda create --name py2.7 python=2.7
source activate py2.7
python --version ##to check you are actually running the version you want

Sorry to bother anyone, but hopefully this may help another novice like me one day :slight_smile:

It is good to know that you resolved it. Those print statement
errors are a good indicator. Note that many AFNI python programs
will work with python3 now (not all), and afni_system_check.py will
warn you if that is what is being run.

  • rick

Hi
thanks. I also met same problem, and resolve it using your suggestions.
Best.