CellProfiler/CellProfiler — Issue #265: subprocess.check_output not available in Python 2.6
Author: LeeKamentsky
Created: 2012-01-04 14:14:41+00:00
State: open
Labels: current

The Mac build machine has Python 2.6 installed. subprocess.check_output is only available in Python 2.7. version.py calls it to get the GIT hash. The build is failing on the Mac machine.

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py", line 279, in run
testMethod()
File "/cc/trunk/CellProfiler/cellprofiler/tests/Test_Pipeline.py", line 124, in test_06_01_run_pipeline
x.run()
File "/cc/trunk/CellProfiler/cellprofiler/pipeline.py", line 1127, in run
initial_measurements = measurements):
File "/cc/trunk/CellProfiler/cellprofiler/pipeline.py", line 1191, in run_with_yield
if not self.prepare_run(workspace):
File "/cc/trunk/CellProfiler/cellprofiler/pipeline.py", line 1466, in prepare_run
self.write_pipeline_measurement(m)
File "/cc/trunk/CellProfiler/cellprofiler/pipeline.py", line 897, in write_pipeline_measurement
self.savetxt(fd)
File "/cc/trunk/CellProfiler/cellprofiler/pipeline.py", line 835, in savetxt
from cellprofiler.utilities.version import version_number
File "/cc/trunk/CellProfiler/cellprofiler/utilities/version.py", line 67, in
version_string = get_version()
File "/cc/trunk/CellProfiler/cellprofiler/utilities/version.py", line 38, in get_version
timestamp, hash = subprocess.check_output(['git', 'log', '--format=%ct %h', '-n', '1'],
AttributeError: 'module' object has no attribute 'check_output'
-------------------- >> begin captured logging << --------------------