Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-34196

Improve error message when folks try and install in Python 2

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 3.1.0, 3.1.1, 3.1.2, 3.2.0
    • None
    • PySpark
    • None

    Description

      Current error message:

       

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            holden Holden Karau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: