FWIW, there's a pull request on linkchecker's github repository for this problem (https://github.com/wummel/linkchecker/pull/650): ------------------------------------------------- --- old/linkcheck/__init__.py +++ new/link/check/__init__.py @@ -20,13 +20,14 @@
# version checks import sys +from distutils.version import LooseVersion # Needs Python >= 2.7 because we use dictionary based logging config # Needs Python >= 2.7.2 which fixed http://bugs.python.org/issue11467 if not (hasattr(sys, 'version_info') or sys.version_info < (2, 7, 2, 'final', 0)): raise SystemExit("This program requires Python 2.7.2 or later.") import requests -if requests.__version__ < '2.2.0': +if LooseVersion(requests.__version__) < LooseVersion('2.2.0'): raise SystemExit("This program requires Python requests 2.2.0 or later.") import os -------------------------------------------------- This relies on distutils, which is apparently part of libpython2.7-stdlib (that might be needed as a new dependency of the linkchecker package) -- E tutto per oggi, a la prossima volta Virgile