Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Apr 30, 2016 · 19 comments

Comments

@jenshnielsen
Copy link

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
Copy link

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
Copy link

ssk2 commented Jun 7, 2016

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

@elevenchars
Copy link

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

@mgedmin
Copy link
Contributor

mgedmin commented Jun 29, 2016

Should be fixed with c2ce810.

Can we have a new release soon please?

@jackfischer
Copy link

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

@Jelle-S
Copy link

Jelle-S commented Aug 18, 2016

+1 for a new release please

@Travis-S
Copy link

+1 for new release.

@arcalinea
Copy link

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

@mkormendy
Copy link

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

@henrylawson
Copy link

+1

1 similar comment
@PetrDlouhy
Copy link

+1

@MarkWieczorek
Copy link

still does not work on osx.

@DonRichards
Copy link

DonRichards commented Dec 22, 2016

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: [email protected]
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
Copy link

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: [email protected]
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
Copy link

+1

@peterafarmer
Copy link

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

@wdschei
Copy link

wdschei commented May 23, 2017

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
Copy link

vkotovv commented Jul 26, 2017

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

@dpalic
Copy link

dpalic commented Oct 29, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests