Page MenuHomePhabricator

Required script error is not much informative on Toolforge
Closed, ResolvedPublic

Description

T248376:

(requests 2.12.4 (/usr/lib/python3/dist-packages), Requirement.parse('requests>=2.20.1; python_version != "3.4"'))

Please install/update required module with:


    pip install "requests>=2.20.1"

I would expect something like:

Python module called requests is missing or has insufficient version.

Please install/update required module with:


    pip install "requests>=2.20.1"

Event Timeline

(requests 2.12.4 (/usr/lib/python3/dist-packages), Requirement.parse('requests>=2.20.1; python_version != "3.4"'))

Please install/update required module with:

I get this message with Python 2.7.17

C:\pwb\GIT\core>py -2 pwb.py
The 'pathlib2; python_version < "3"' distribution was not found and is required by the application
Pywikibot framework dependency package is missing or has insufficient version


Please install/update required module with:


    pip install "pathlib2"


C:\pwb\GIT\core>

and with Python 3.8.0 I get

C:\pwb\GIT\core>py -3 pwb.py
The 'Foobar' distribution was not found and is required by the application

Please install/update required module with:


    pip install "Foobar"


C:\pwb\GIT\core>

which looks informative enough for me.

Then there's something wrong with Toolforge.

Maybe this is the cause:

$ apt-cache policy python3-setuptools
python3-setuptools:
  Installed: 33.1.1-1
  Candidate: 33.1.1-1
  Version table:
 *** 33.1.1-1 500
        500 http://deb.debian.org/debian stretch/main amd64 Packages
        100 /var/lib/dpkg/status

pkg_resources are installed with setuptools. It seems old version of setuptools behaves differently

Dvorapa renamed this task from Required script error is not much informative to Required script error is not much informative on Toolforge.Mar 24 2020, 7:48 PM

Change 583293 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] Enable pywikibot run even there is a package version conflict

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

Xqt triaged this task as Low priority.

Change 583293 merged by jenkins-bot:
[pywikibot/core@master] Enable pywikibot run even there is a package version conflict

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