Since beginning of June all Pywikibot scripts in Toolforge fail to run due to the following issue:
(setuptools 33.1.1 (/usr/lib/python3/dist-packages), Requirement.parse('setuptools!=50.0.0,<50.2.0,>=49.4.0; python_version < "3.6"')) A package necessary for pywikibot is outdated. Please update required module with: pip install "setuptools!=50.0.0,<50.2.0,>=49.4.0" You may continue on your own risk; type CTRL-C to stop. CRITICAL: Exiting due to uncaught exception <class 'AttributeError'> Traceback (most recent call last): File "pwb.py", line 399, in <module> if not main(): File "pwb.py", line 394, in main module) File "pwb.py", line 93, in run_python_file check_pwb_versions(package) File "pwb.py", line 51, in check_pwb_versions if scripts_version.release > wikibot_version.release: AttributeError: 'Version' object has no attribute 'release' CRITICAL: Exiting due to uncaught exception <class 'AttributeError'>
Expected behavior
Scripts should not throw critical error with this message. Also Toolforge Pywikibot installation is not installed using setuptools (it is cloned by git), so the message is pointless here.
Configuration
Toolforge, Python 3.5.3, Debian 9.13 Stretch (Linux 4.19), python3-setuptools 33.1.1, Pywikibot master