wummel / linkchecker

check links in web documents or full websites
http://wummel.github.io/linkchecker/
GNU General Public License v2.0
1.42k stars 234 forks source link

Linkchecker does not work with requests 2.10.0 (fails with This program requires Python requests 2.2.0 or later.) #649

Open jenshnielsen opened 8 years ago

jenshnielsen commented 8 years ago

Trying to install linkchecker into a python 2.7 virtual env currently fails apparently do to incompatibility with the just released requests 2.10.0

See below for an installation into a fresh python 2.7 virtual env on OSX 10.11 (We have seen the same issue on Travis CI (Ubuntu 12.04)

(test) ✔ ~ python --version
Python 2.7.11
(test) ✔ ~ pip --version
pip 8.1.1 from /Users/jhn/Envs/test/lib/python2.7/site-packages (python 2.7)
(test) ✔ ~ pip install linkchecker
Collecting linkchecker
Collecting requests>=2.2.0 (from linkchecker)
  Using cached requests-2.10.0-py2.py3-none-any.whl
Installing collected packages: requests, linkchecker
Successfully installed linkchecker-9.3 requests-2.10.0
(test) ✔ ~ linkchecker --help
This program requires Python requests 2.2.0 or later.
(test) ✘-1 ~ pip install requests==2.9.2
Collecting requests==2.9.2
  Using cached requests-2.9.2-py2.py3-none-any.whl
Installing collected packages: requests
  Found existing installation: requests 2.10.0
    Uninstalling requests-2.10.0:
      Successfully uninstalled requests-2.10.0
Successfully installed requests-2.9.2
(test) ✔ ~ linkchecker --help
usage: linkchecker [-h] [-f FILENAME] [-t NUMBER] [-V] [--list-plugins]
                   [--stdin] [-D STRING] [-F TYPE[/ENCODING[/FILENAME]]]
                   [--no-status] [--no-warnings] [-o TYPE[/ENCODING]] [-q]
                   [-v] [--cookiefile FILENAME] [--check-extern]
                   [--ignore-url REGEX] [--no-follow-url REGEX] [-N STRING]
                   [-p] [-r NUMBER] [--timeout NUMBER] [-u STRING]
                   [--user-agent STRING]
                   [url [url ...]]
...
flyn-org commented 8 years ago

I am the maintainer of the Fedora linkchecker package, and this issue affects the forthcoming Fedora 24. See also https://bugzilla.redhat.com/show_bug.cgi?id=1337343.

ssk2 commented 8 years ago

I see the same bug using Ubuntu 16.04 and the 9.3-1 deb.

elevenchars commented 8 years ago

Having the same issue on Ubuntu 16.04 and 9.3-1. Same as @ssk2

mgedmin commented 8 years ago

Should be fixed with c2ce810c3fb00b895a841a7be6b2e78c64e7b042.

Can we have a new release soon please?

jackfischer commented 8 years ago

+1 for this on Python 2.7.12 on OS X 10.11.6 with 9.3

Jelle-S commented 8 years ago

+1 for a new release please

Travis-S commented 8 years ago

+1 for new release.

arcalinea commented 7 years ago

+1 for a new release :) same issue on Python 2.7.12 on Debian stretch/sid

mkormendy commented 7 years ago

Tick-tock .. any pull-requests with repairs waiting on this?

henrylawson commented 7 years ago

+1

PetrDlouhy commented 7 years ago

+1

MarkWieczorek commented 7 years ago

still does not work on osx.

DonRichards commented 7 years ago

Let's start with what I'm running.

$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.12.2
BuildVersion:   16C67

# Brew installed version of Python
$ brew list
...
python
python3
...

$ python --version
Python 2.7.13

The issue

$ pip install linkchecker
Collecting linkchecker
Requirement already satisfied: requests>=2.2.0 in /usr/local/lib/python2.7/site-packages (from linkchecker)
Installing collected packages: linkchecker
Successfully installed linkchecker-9.3

$ linkchecker
This program requires Python requests 2.2.0 or later.

$ pip show requests
Name: requests
Version: 2.12.4
Summary: Python HTTP for Humans.
Home-page: http://python-requests.org
Author: Kenneth Reitz
Author-email: me@kennethreitz.com
License: Apache 2.0
Location: /usr/local/lib/python2.7/site-packages
Requires:
< 2 blank lines, leading me to think something is suppose to be here!>
dryhurst commented 7 years ago

OSX SIERRA 10.12.3

Darwin derpasaurus 16.4.0 Darwin Kernel Version 16.4.0: Thu Dec 22 22:53:21 PST 2016; root:xnu-3789.41.3~3/RELEASE_X86_64 x86_64

2017-01-29 21:24:17 ⌚ derpasaurus in ~ ○ → python --version Python 2.7.13

2017-01-29 21:25:19 ⌚ derpasaurus in ~ ○ → pip show requests Name: requests Version: 2.13.0 Summary: Python HTTP for Humans. Home-page: http://python-requests.org Author: Kenneth Reitz Author-email: me@kennethreitz.com License: Apache 2.0 Location: /usr/local/lib/python2.7/site-packages Requires:

2017-01-29 21:25:28 ⌚ derpasaurus in ~ ○ → linkchecker This program requires Python requests 2.2.0 or later.

edmond-chhung commented 7 years ago

+1

peterafarmer commented 7 years ago

+1 Occurs on CentOs 7.2.1511 python 2.7.5-48.el7

wdschei commented 7 years ago

Given that I would love to see a new release sooner rather than later, but a work around for anyone else landing on this is to just downgrade the requests package to v2.9.2 after installing linkchecker.

sudo pip install linkchecker --upgrade
sudo pip install requests==2.9.2
linkchecker http://www.example.com
vkotovv commented 7 years ago

@wdschei Another way of doing it is to use .deb package provided to install linkchecker. It contains this fix.

dpalic commented 6 years ago

Thank you for the issue report. Sadly this project is dead, and a new team is around with https://github.com/linkcheck/linkchecker for more details please see: #708 Also please close this issue and report it freshly on the new repo https://github.com/linkcheck/linkchecker/issues if your issue still persists