GitHub user eastlondoner opened a pull request:

    https://github.com/apache/spark/pull/14303

    python import pyspark fails

    ## What changes were proposed in this pull request?
    
    Fix importing pyspark in python
    
    ## How was this patch tested?
    
    manually tested
    
    BEFORE patch error was:
    
    import pyspark
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "pyspark/__init__.py", line 44, in <module>
        from pyspark.context import SparkContext
      File "pyspark/context.py", line 28, in <module>
        from pyspark import accumulators
    ImportError: cannot import name accumulators

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/eastlondoner/spark fix-pyspark-import

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/14303.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #14303
    
----
commit 2b218ee9ae1299a1acff8779dc0a399d01c7ab14
Author: eastlondoner <[email protected]>
Date:   2016-07-21T15:15:43Z

    python import pyspark fails 
    
    import pyspark
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "pyspark/__init__.py", line 44, in <module>
        from pyspark.context import SparkContext
      File "pyspark/context.py", line 28, in <module>
        from pyspark import accumulators
    ImportError: cannot import name accumulators

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to