Page MenuHomePhabricator

error in pywikibot setup command: use_2to3 is invalid as of setuptools 58.0.2
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce:
pip install pywikibot==6.5.0

What happens?:

$ pip install pywikibot==6.5.0
Collecting pywikibot==6.5.0
  Using cached pywikibot-6.5.0.tar.gz (505 kB)
    ERROR: Command errored out with exit status 1:
     command: /home/jjmc89/.pyenv/versions/pwb/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zdpgiyem/pywikibot_4d090a707618479496e721c78bedaf84/setup.py'"'"'; __file__='"'"'/tmp/pip-install-zdpgiyem/pywikibot_4d090a707618479496e721c78bedaf84/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-y0k8dt2m
         cwd: /tmp/pip-install-zdpgiyem/pywikibot_4d090a707618479496e721c78bedaf84/
    Complete output (3 lines):
    error in pywikibot setup command: use_2to3 is invalid.
    Cannot include ROADMAP.rst; file not found
    Cannot include CODE_OF_CONDUCT.rst; file not found
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/95/f4/e990b5bf39625f45bfe03212af0d142e484c4deab23ca1fa390dfbde76bf/pywikibot-6.5.0.tar.gz#sha256=d14f7e6db108e88477b41b00b9fc6a439e106433ffb0c9723b0aa173562d5829 (from https://pypi.org/simple/pywikibot/) (requires-python:>=3.5.0). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement pywikibot==6.5.0 (from versions: 2.0rc1.post1, 2.0rc1.post2, 2.0rc3, 2.0rc4, 2.0rc5, 3.0.20170403, 3.0.20170521, 3.0.20170713, 3.0.20170801, 3.0.20171212, 3.0.20180108, 3.0.20180204, 3.0.20180302, 3.0.20180304, 3.0.20180403, 3.0.20180505, 3.0.20180603, 3.0.20180710, 3.0.20180823, 3.0.20180922, 3.0.20181203, 3.0.20190106, 3.0.20190204, 3.0.20190301, 3.0.20190430, 3.0.20190722, 3.0.20200111, 3.0.20200306, 3.0.20200326, 3.0.20200405, 3.0.20200508, 3.0.20200609, 3.0.20200703, 4.0.0, 4.1.0, 4.1.1, 4.2.0, 4.3.0, 5.0.0, 5.1.0, 5.2.0, 5.3.0, 5.4.0, 5.5.0, 5.6.0, 6.0.0, 6.0.1, 6.1.0, 6.2.0, 6.3.0, 6.4.0, 6.5.0)
ERROR: No matching distribution found for pywikibot==6.5.0

What should have happened instead?:
Pywikibot 6.5.0 is installed successfully

Software version:
Python 3.7.3
setuptools 58.0.2

Event Timeline

Change 719151 had a related patch set uploaded (by JJMC89; author: JJMC89):

[pywikibot/core@master] setup: remove use_2to3

https://gerrit.wikimedia.org/r/719151

Change 719151 merged by jenkins-bot:

[pywikibot/core@master] setup: remove use_2to3

https://gerrit.wikimedia.org/r/719151