You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/07/01 18:04:04 UTC

[jira] [Commented] (SPARK-8763) executing run-tests.py with Python 2.6 fails with absence of subprocess.check_output function

    [ https://issues.apache.org/jira/browse/SPARK-8763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14610530#comment-14610530 ] 

Apache Spark commented on SPARK-8763:
-------------------------------------

User 'cocoatomo' has created a pull request for this issue:
https://github.com/apache/spark/pull/7161

> 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.
>              Labels: pyspark, testing
>
> 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