I can confirm I’ve just seen the same error message when trying to run a cluster job using SGE. For some reason it doesn’t appear consistently. The command I was running was
python /usr/prog/cellprofiler/2.x.10821/CellProfiler/CellProfiler.py -p Batch_data.mat -c -r -b -f $SGE_TASK_ID -l $SGE_TASK_ID
The output from from the job:
-bash-3.2$ cat CellProfiler.o1401489.194
File "/usr/prog/cellprofiler/2.x.10821/CellProfiler/CellProfiler.py", line 240
webpage_path = options.output_directory if options.output_directory else None
SyntaxError: invalid syntax
We’re running Python 2.6.6 on RHEL 5.4.