{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/setuptools/issues/1919","repository_url":"https://api.github.com/repos/pypa/setuptools","labels_url":"https://api.github.com/repos/pypa/setuptools/issues/1919/labels{/name}","comments_url":"https://api.github.com/repos/pypa/setuptools/issues/1919/comments","events_url":"https://api.github.com/repos/pypa/setuptools/issues/1919/events","html_url":"https://github.com/pypa/setuptools/issues/1919","id":528197722,"node_id":"MDU6SXNzdWU1MjgxOTc3MjI=","number":1919,"title":"Version 42.0.0 not working with Python 2.7","user":{"login":"lorilew","id":6436283,"node_id":"MDQ6VXNlcjY0MzYyODM=","avatar_url":"https://avatars0.githubusercontent.com/u/6436283?v=4","gravatar_id":"","url":"https://api.github.com/users/lorilew","html_url":"https://github.com/lorilew","followers_url":"https://api.github.com/users/lorilew/followers","following_url":"https://api.github.com/users/lorilew/following{/other_user}","gists_url":"https://api.github.com/users/lorilew/gists{/gist_id}","starred_url":"https://api.github.com/users/lorilew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorilew/subscriptions","organizations_url":"https://api.github.com/users/lorilew/orgs","repos_url":"https://api.github.com/users/lorilew/repos","events_url":"https://api.github.com/users/lorilew/events{/privacy}","received_events_url":"https://api.github.com/users/lorilew/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-11-25T16:29:16Z","updated_at":"2019-11-25T17:21:21Z","closed_at":null,"author_association":"NONE","body":"Hi, we're getting this error when we use the latest build of setuptools for versions 42.0.0 and 42.0.1.\r\n\r\nThe command we are executing is:\r\n```\r\npython setup.py sdist\r\n```\r\n\r\nWe fixed our build by pinning version to 41.6.0. We're using Python 2.7 on Ubuntu.\r\n\r\nError message:\r\n\r\n```\r\nFAILED! => {\"changed\": false, \"cmd\": [\"/opt/susenv/bin/pip2\", \"install\", \"--upgrade\", \"nts-0+0.abcdef1.tar.gz\"], \"msg\": \"stdout: Processing ./nts-0+0.abcdef1.tar.gz\r\nCollecting pyspark==2.3.0\r\n  Downloading https://files.pythonhosted.org/packages/58/49/45370cc153a6adcf2c304a3c06e801ed3c9650d0f852e7fde04bd8ffb534/pyspark-2.3.0.tar.gz (211.9MB)\r\n\r\n: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\r\n    ERROR: Command errored out with exit status 1:\r\n     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\\\r\n'\\\"'\\\"', '\\\"'\\\"'\\\r\n'\\\"'\\\"');f.close();exec(compile(code, __file__, '\\\"'\\\"'exec'\\\"'\\\"'))' egg_info --egg-base /tmp/pip-install-PASxaL/pyspark/pip-egg-info\r\n         cwd: /tmp/pip-install-PASxaL/pyspark/\r\n    Complete output (51 lines):\r\n    Could not import pypandoc - required to package PySpark\r\n    WARNING: The wheel package is not available.\r\n    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\r\n      ERROR: Command errored out with exit status 1:\r\n       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\\\r\n'\\\"'\\\"', '\\\"'\\\"'\\\r\n'\\\"'\\\"');f.close();exec(compile(code, __file__, '\\\"'\\\"'exec'\\\"'\\\"'))' bdist_wheel -d /tmp/pip-wheel-7kV1zL\r\n           cwd: /tmp/pip-wheel-bXGLeK/pypandoc/\r\n      Complete output (20 lines):\r\n      Maybe try:\r\n    \r\n          sudo apt-get install pandoc\r\n      See http://johnmacfarlane.net/pandoc/installing.html\r\n      for installation options\r\n      ---------------------------------------------------------------\r\n    \r\n    \r\n    \r\n      !!! pandoc not found, long_description is bad, don't upload this to PyPI !!!\r\n    \r\n    \r\n      no pandoc found, building platform unspecific wheel...\r\n      use 'python setup.py download_pandoc' to download pandoc.\r\n      usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]\r\n         or: setup.py --help [cmd1 cmd2 ...]\r\n         or: setup.py --help-commands\r\n         or: setup.py cmd --help\r\n    \r\n      error: invalid command 'bdist_wheel'\r\n      ----------------------------------------\r\n      ERROR: Failed building wheel for pypandoc\r\n    ERROR: Failed to build one or more wheels\r\n    Traceback (most recent call last):\r\n      File \\\"<string>\\\", line 1, in <module>\r\n      File \\\"/tmp/pip-install-PASxaL/pyspark/setup.py\\\", line 223, in <module>\r\n        'Programming Language :: Python :: Implementation :: PyPy']\r\n      File \\\"/opt/susenv/lib/python2.7/site-packages/setuptools/__init__.py\\\", line 144, in setup\r\n        _install_setup_requires(attrs)\r\n      File \\\"/opt/susenv/lib/python2.7/site-packages/setuptools/__init__.py\\\", line 139, in _install_setup_requires\r\n        dist.fetch_build_eggs(dist.setup_requires)\r\n      File \\\"/opt/susenv/lib/python2.7/site-packages/setuptools/dist.py\\\", line 721, in fetch_build_eggs\r\n        replace_conflicting=True,\r\n      File \\\"/opt/susenv/lib/python2.7/site-packages/pkg_resources/__init__.py\\\", line 782, in resolve\r\n        replace_conflicting=replace_conflicting\r\n      File \\\"/opt/susenv/lib/python2.7/site-packages/pkg_resources/__init__.py\\\", line 1065, in best_match\r\n        return self.obtain(req, installer)\r\n      File \\\"/opt/susenv/lib/python2.7/site-packages/pkg_resources/__init__.py\\\", line 1077, in obtain\r\n        return installer(requirement)\r\n      File \\\"/opt/susenv/lib/python2.7/site-packages/setuptools/dist.py\\\", line 777, in fetch_build_egg\r\n        return fetch_build_egg(self, req)\r\n      File \\\"/opt/susenv/lib/python2.7/site-packages/setuptools/installer.py\\\", line 121, in fetch_build_egg\r\n        raise DistutilsError(str(e))\r\n    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\r\n    ----------------------------------------\r\nERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.\r\n\"}\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pypa/setuptools/issues/comments/558255479","html_url":"https://github.com/pypa/setuptools/issues/1919#issuecomment-558255479","issue_url":"https://api.github.com/repos/pypa/setuptools/issues/1919","id":558255479,"node_id":"MDEyOklzc3VlQ29tbWVudDU1ODI1NTQ3OQ==","user":{"login":"benoit-pierre","id":5104286,"node_id":"MDQ6VXNlcjUxMDQyODY=","avatar_url":"https://avatars1.githubusercontent.com/u/5104286?v=4","gravatar_id":"","url":"https://api.github.com/users/benoit-pierre","html_url":"https://github.com/benoit-pierre","followers_url":"https://api.github.com/users/benoit-pierre/followers","following_url":"https://api.github.com/users/benoit-pierre/following{/other_user}","gists_url":"https://api.github.com/users/benoit-pierre/gists{/gist_id}","starred_url":"https://api.github.com/users/benoit-pierre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benoit-pierre/subscriptions","organizations_url":"https://api.github.com/users/benoit-pierre/orgs","repos_url":"https://api.github.com/users/benoit-pierre/repos","events_url":"https://api.github.com/users/benoit-pierre/events{/privacy}","received_events_url":"https://api.github.com/users/benoit-pierre/received_events","type":"User","site_admin":false},"created_at":"2019-11-25T17:21:20Z","updated_at":"2019-11-25T17:21:20Z","author_association":"MEMBER","body":"> WARNING: The wheel package is not available.\r\n\r\n`pip` is now used (when available) for fetching/building wheels for missing `setup_requires`/`tests_require` requirements. Depending on the requirement, you may need to install `wheel` too (if no compatible wheels are available on PyPI / through dependency links, or PEP 517/518 is not used).\r\n\r\nSo can you try again with the wheel command installed (or installed your build dependencies before running `setup.py`)?"}}
{"actor":{"display_login":"benoit-pierre"}}