Are you positive you set up your Python environment correctly?  To me,
those error messages look like you are running Python 2, but it should be
Python 3.

On Thu, May 14, 2020 at 1:34 PM Sudharshann D <sd3...@nyu.edu> wrote:

> Hello! ;)
>
> I'm new to spark development and have been trying to set up my dev
> environment for hours without much success. :-(
>
> Firstly, I'm wondering why my  ./dev/run-tests fails even though in on the
> master branch.
>
> This is the error:
>
> flake8 checks failed:
> ./examples/src/main/python/sql/arrow.py:67:16: E999 SyntaxError: invalid
> syntax
>     def func(s1: pd.Series, s2: pd.Series, s3: pd.DataFrame) ->
> pd.DataFrame:
>                ^
> ./python/run-tests.py:123:48: E999 SyntaxError: invalid syntax
>                         print(decoded_line, end='')
>                                                ^
> ./dev/run-tests-jenkins.py:43:20: E999 SyntaxError: invalid syntax
>     print(msg, file=sys.stderr)
>                    ^
> ./dev/run-tests.py:273:44: E999 SyntaxError: invalid syntax
>             print(line.decode('utf-8'), end='')
>                                            ^
> ./dev/pip-sanity-check.py:31:76: E999 SyntaxError: invalid syntax
>         print("Value {0} did not match expected value.".format(value),
> file=sys.stderr)
>
>  ^
> 5     E999 SyntaxError: invalid syntax
> 5
> 1
> [error] running /home/vagrant/gtSync/suddhuApache/spark/dev/lint-python ;
> received return code 1
>
>
>
> Would love to have some help with setting up my dev environment. I've done
> some other open source contributions and setting up the dev env there was
> easier...
>
> Regards
> Sudha
> ᐧ
>

Reply via email to