Package: linkchecker
Version: 9.3-1.1
Severity: important
Dear Maintainer,
* What led up to the situation?
Today's apt upgrade brought python-requests from 2.9.1-3 to 2.10.0-1.
* What exactly did you do (or not do) that was effective (or
ineffective)?
Run linkchecker.
* What was the outcome of this action?
linkchecker aborts with error message
This program requires Python requests 2.2.0 or later.
* What outcome did you expect instead?
linkchecker should run, because 2.10.0-1 is later than 2.2.0.
The source of the issue must be the version check itself. The error
comes from
/usr/lib/python2.7/dist-packages/linkcheck/__init__.py
These three lines are the culprit:
import requests
if requests.__version__ <= '2.2.0':
raise SystemExit("This program requires Python requests 2.2.0 or
later.")
My python-fu is not up to speed to fix it, but it should be trivial.
Compare the version numbers as numbers, not as a string.
Cheers,
Wouter
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'stable-updates'), (500,
'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.6.0+ (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages linkchecker depends on:
ii libc6 2.22-9
ii python 2.7.11-1
ii python-requests 2.10.0-1
linkchecker recommends no packages.
Versions of packages linkchecker suggests:
pn clamav-daemon <none>
pn linkchecker-gui <none>
pn linkchecker-web <none>
pn python-argcomplete <none>
ii python-cssutils 1.0-4.1
ii python-gconf 2.28.1+dfsg-1.1
pn python-geoip <none>
pn python-meliae <none>
pn python-twill <none>
-- no debconf information