Page MenuHomePhabricator

Python 2 and 3.5.0 AppVeyor tests fail because of setuptools
Closed, ResolvedPublic

Event Timeline

Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald Transcript
Dvorapa renamed this task from Python 2 AppVeyor tests fail becuase of setuptools to Python 2 AppVeyor tests fail because of setuptools.Jan 18 2020, 10:39 PM

Change 565758 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [tests] set fast_finish to false to enable all remaining tests

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

Xqt triaged this task as High priority.Jan 19 2020, 1:02 PM

Change 565758 merged by jenkins-bot:
[pywikibot/core@master] [tests] set fast_finish to false to enable all remaining tests

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

Xqt renamed this task from Python 2 AppVeyor tests fail because of setuptools to Python 2 and 3.5.0 AppVeyor tests fail because of setuptools.Jan 19 2020, 1:29 PM
Xqt updated the task description. (Show Details)

Change 565778 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] Do not UserWarning to exceptions

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

Change 565778 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] Do not convert UserWarning to exceptions

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

Still failing, but now in multiple tests, not just in the beginning

Still failing, but now in multiple tests, not just in the beginning

Hm yes. I reverted the last patch. Should we try “ignore” option? I am wondering why 3.5.0 is failing. And why there is no such problem at Travis. Is there a way to install setuptools depending on the Python version. At last possibility we can drop Py2 tests at Appveyor and announce using pwb with Py2 on their own risk due to this lack of testing.

3.5.0 is failing, because it somehow uses Python 2, even though Python 3.5 is installed. I'm not sure why this happens. I'll upload a patch to find out more about this issue.

We can either ignore/hide the warning using PYTHONWARNINGS=ignore:::pkg_resources.py2_warn environment variable, or reinstall setuptools < 45