You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Tomohiko K. (JIRA)" <ji...@apache.org> on 2015/07/01 17:22:04 UTC
[jira] [Created] (SPARK-8763) executing run-tests.py with Python
2.6 fails with absence of subprocess.check_output function
Tomohiko K. created SPARK-8763:
----------------------------------
Summary: executing run-tests.py with Python 2.6 fails with absence of subprocess.check_output function
Key: SPARK-8763
URL: https://issues.apache.org/jira/browse/SPARK-8763
Project: Spark
Issue Type: Bug
Components: PySpark
Affects Versions: 1.5.0
Environment: Mac OS X 10.10.3 Python 2.6.9 Java 1.8.0
Reporter: Tomohiko K.
Running run-tests.py with Python 2.6 cause following error:
{noformat}
Running PySpark tests. Output is in python//Users/tomohiko/.jenkins/jobs/pyspark_test/workspace/python/unit-tests.log
Will test against the following Python executables: ['python2.6', 'python3.4', 'pypy']
Will test the following Python modules: ['pyspark-core', 'pyspark-ml', 'pyspark-mllib', 'pyspark-sql', 'pyspark-streaming']
Traceback (most recent call last):
File "./python/run-tests.py", line 196, in <module>
main()
File "./python/run-tests.py", line 159, in main
python_implementation = subprocess.check_output(
AttributeError: 'module' object has no attribute 'check_output'
...
{noformat}
The cause of this error is using subprocess.check_output function, which exists since Python 2.7.
(ref. https://docs.python.org/2.7/library/subprocess.html#subprocess.check_output)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org