Github user JoshRosen commented on the pull request:

    https://github.com/apache/spark/pull/5694#issuecomment-110815502
  
    Any idea what's up with this Python style check failure?
    
    ```
    ========================================================================
    Running Python style checks
    ========================================================================
    Python lint checks failed.
    *** Error compiling './examples/src/main/python/kmeans.py'...
      File "./examples/src/main/python/kmeans.py", line 71
        lambda (p1, c1), (p2, c2): (p1 + p2, c1 + c2))
               ^
    SyntaxError: invalid syntax
    
    [error] running ['./dev/lint-python'] ; received return code 1
    ```
    
    Could `dev/lint-python` be using a different Python version in a way that's 
breaking things?  That looks like a Python-3-like error, since I think Python 3 
dropped support for tuple unpacking in lambdas, so are we maybe using Python 3 
to run `lint-python` as of this patch?


---
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