[ https://issues.apache.org/jira/browse/SPARK-34196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17270354#comment-17270354 ]
Holden Karau commented on SPARK-34196: -------------------------------------- I tried to fix this, but because of the way Python works I couldn't think of a good way (my attempt of adding the version check didn't work because Ptyhon starts with trying to parse the input, so the parse fail occurs first). > Improve error message when folks try and install in Python 2 > ------------------------------------------------------------ > > Key: SPARK-34196 > URL: https://issues.apache.org/jira/browse/SPARK-34196 > Project: Spark > Issue Type: Improvement > Components: PySpark > Affects Versions: 3.1.0, 3.2.0, 3.1.1, 3.1.2 > Reporter: Holden Karau > Priority: Major > > Current error message: > > {code:java} > Processing ./pyspark-3.1.1.tar.gz > ERROR: Command errored out with exit status 1: > command: /tmp/py3.1/bin/python2 -c 'import sys, setuptools, tokenize; > sys.argv[0] = '"'"'/tmp/pip-req-build-lmlitE/setup.py'"'"'; > __file__='"'"'/tmp/pip-req-build-lmlitE/setup.py'"'"';f=getattr(tokenize, > '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', > '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' > egg_info --egg-base /tmp/pip-pip-egg-info-W1BsIL > cwd: /tmp/pip-req-build-lmlitE/ > Complete output (6 lines): > Traceback (most recent call last): > File "<string>", line 1, in <module> > File "/tmp/pip-req-build-lmlitE/setup.py", line 31 > file=sys.stderr) > ^ > SyntaxError: invalid syntax > ---------------------------------------- > ERROR: Command errored out with exit status 1: python setup.py egg_info Check > the logs for full command output.{code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org