Skip to content

Version 42.0.0 not working with Python 2.7 #1919

@lorilew

Description

@lorilew

Hi, we're getting this error when we use the latest build of setuptools for versions 42.0.0 and 42.0.1.

The command we are executing is:

python setup.py sdist

We fixed our build by pinning version to 41.6.0. We're using Python 2.7 on Ubuntu.

Error message:

FAILED! => {"changed": false, "cmd": ["/opt/susenv/bin/pip2", "install", "--upgrade", "nts-0+0.abcdef1.tar.gz"], "msg": "stdout: Processing ./nts-0+0.abcdef1.tar.gz
Collecting pyspark==2.3.0
  Downloading https://files.pythonhosted.org/packages/58/49/45370cc153a6adcf2c304a3c06e801ed3c9650d0f852e7fde04bd8ffb534/pyspark-2.3.0.tar.gz (211.9MB)

:stderr: DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
    ERROR: Command errored out with exit status 1:
     command: /opt/susenv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-install-PASxaL/pyspark/setup.py'\"'\"'; __file__='\"'\"'/tmp/pip-install-PASxaL/pyspark/setup.py'\"'\"';f=getattr(tokenize, '\"'\"'open'\"'\"', open)(__file__);code=f.read().replace('\"'\"'\\r\
'\"'\"', '\"'\"'\
'\"'\"');f.close();exec(compile(code, __file__, '\"'\"'exec'\"'\"'))' egg_info --egg-base /tmp/pip-install-PASxaL/pyspark/pip-egg-info
         cwd: /tmp/pip-install-PASxaL/pyspark/
    Complete output (51 lines):
    Could not import pypandoc - required to package PySpark
    WARNING: The wheel package is not available.
    DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
      ERROR: Command errored out with exit status 1:
       command: /opt/susenv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-wheel-bXGLeK/pypandoc/setup.py'\"'\"'; __file__='\"'\"'/tmp/pip-wheel-bXGLeK/pypandoc/setup.py'\"'\"';f=getattr(tokenize, '\"'\"'open'\"'\"', open)(__file__);code=f.read().replace('\"'\"'\\r\
'\"'\"', '\"'\"'\
'\"'\"');f.close();exec(compile(code, __file__, '\"'\"'exec'\"'\"'))' bdist_wheel -d /tmp/pip-wheel-7kV1zL
           cwd: /tmp/pip-wheel-bXGLeK/pypandoc/
      Complete output (20 lines):
      Maybe try:
    
          sudo apt-get install pandoc
      See http://johnmacfarlane.net/pandoc/installing.html
      for installation options
      ---------------------------------------------------------------
    
    
    
      !!! pandoc not found, long_description is bad, don't upload this to PyPI !!!
    
    
      no pandoc found, building platform unspecific wheel...
      use 'python setup.py download_pandoc' to download pandoc.
      usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
         or: setup.py --help [cmd1 cmd2 ...]
         or: setup.py --help-commands
         or: setup.py cmd --help
    
      error: invalid command 'bdist_wheel'
      ----------------------------------------
      ERROR: Failed building wheel for pypandoc
    ERROR: Failed to build one or more wheels
    Traceback (most recent call last):
      File \"<string>\", line 1, in <module>
      File \"/tmp/pip-install-PASxaL/pyspark/setup.py\", line 223, in <module>
        'Programming Language :: Python :: Implementation :: PyPy']
      File \"/opt/susenv/lib/python2.7/site-packages/setuptools/__init__.py\", line 144, in setup
        _install_setup_requires(attrs)
      File \"/opt/susenv/lib/python2.7/site-packages/setuptools/__init__.py\", line 139, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File \"/opt/susenv/lib/python2.7/site-packages/setuptools/dist.py\", line 721, in fetch_build_eggs
        replace_conflicting=True,
      File \"/opt/susenv/lib/python2.7/site-packages/pkg_resources/__init__.py\", line 782, in resolve
        replace_conflicting=replace_conflicting
      File \"/opt/susenv/lib/python2.7/site-packages/pkg_resources/__init__.py\", line 1065, in best_match
        return self.obtain(req, installer)
      File \"/opt/susenv/lib/python2.7/site-packages/pkg_resources/__init__.py\", line 1077, in obtain
        return installer(requirement)
      File \"/opt/susenv/lib/python2.7/site-packages/setuptools/dist.py\", line 777, in fetch_build_egg
        return fetch_build_egg(self, req)
      File \"/opt/susenv/lib/python2.7/site-packages/setuptools/installer.py\", line 121, in fetch_build_egg
        raise DistutilsError(str(e))
    distutils.errors.DistutilsError: Command '['/opt/susenv/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpHnv8Lg', '--quiet', 'pypandoc']' returned non-zero exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions