Page MenuHomePhabricator

Running scripts via pwb wrapper fails due to outdated setuptools on Appveyor for older Pythons
Closed, ResolvedPublicBUG REPORT

Description

pwb.py wrapper compares the framework Version with the script Version. The release method of Version class is required which is provided with pkg_resources 20.4. This Vendor package is shipped with setuptools 49.4.0.

======================================================================
FAIL: test_djvutext (tests.script_tests.TestScriptSimulate)
Test running djvutext -simulate.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\projects\pywikibot-g4xqx\tests\script_tests.py", line 243, in testScript
    stderr_other)
AssertionError: 'Use -help for further information.' not found in ['Traceback (most recent call last):', '  File "C:\\projects\\pywikibot-g4xqx\\pwb.py", line 399, in <module>', '    if not main():', '  File "C:\\projects\\pywikibot-g4xqx\\pwb.py", line 394, in main', '    module)', '  File "C:\\projects\\pywikibot-g4xqx\\pwb.py", line 93, in run_python_file', '    check_pwb_versions(package)', '  File "C:\\projects\\pywikibot-g4xqx\\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'>"]

https://ci.appveyor.com/project/Ladsgroup/pywikibot-g4xqx/build/job/txu4q1lxfrk09q50?fullLog=true

Event Timeline

Xqt triaged this task as High priority.Jun 4 2021, 12:40 PM
Xqt changed the subtype of this task from "Task" to "Bug Report".
Xqt renamed this task from Running scripts wia pwb wrapper fails due to outdated setuptools on Appveyor for older Pythons to Running scripts via pwb wrapper fails due to outdated setuptools on Appveyor for older Pythons.Jun 4 2021, 12:57 PM

Change 698189 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [deps] setuptools 49.4.0 is required

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

Change 698189 merged by jenkins-bot:

[pywikibot/core@master] [deps] setuptools 49.4.0 is required

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

Xqt claimed this task.

Change 700163 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [deps] update setuptools requirements

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

Change 700163 merged by jenkins-bot:

[pywikibot/core@master] [deps] update setuptools requirements

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