Syntax error using apqc_make_tcsh.py

AFNI version info (afni -ver): Precompiled binary linux_ubuntu_16_64: Jul 28 2023 (Version AFNI_23.2.02 'Marcus Didius Severus Julianus')

Hi,

I used uber_subjetc.py to run resting state in one subject, and it all went well until the last part when it wanted to generate the QC files:

apqc_make_tcsh.py -review_style pythonic -subj_dir . -uvar_json out.ss_review_uvars.json
Traceback (most recent call last):
  File "/home/egarza/abin/apqc_make_tcsh.py", line 261, in <module>
    from afnipy import lib_apqc_tcsh       as lat
  File "/home/egarza/abin/afnipy/lib_apqc_tcsh.py", line 1324
    print("++ APQC create:", oname, flush=True)
                                         ^
SyntaxError: invalid syntax

Any idea how to fix this error? If I try to run it in terminal I get the same error.

Thanks,

Eduardo

I think this particular line is using a python3 specific option. Can you try with python3 as your default python or calling this with python3 apqc_make_tcsh.py ... ?

Hi Daniel,

Seemms uber_subject.py is now deprecated, so Paul suggested to just use de afin_proc.py instead.

Thanks!

Eduardo

2 Likes

Oh, I didn't realize I had just used python 3.*-specific syntax there, either. I will put a try/except there, too.