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

Oops #145

Closed
wummel opened this issue Dec 21, 2012 · 2 comments
Closed

Oops #145

wummel opened this issue Dec 21, 2012 · 2 comments

Comments

@wummel
Copy link
Owner

wummel commented Dec 21, 2012

Converted from SourceForge issue 1501920, submitted by sebastien-mahe

Trying link checker for the first time, with the
following arguments :

linkchecker --threads=1 --recursion-level=-1 --intern=bigship.com --cookies --pause=1
http://www.bigship.com/ >> linkchecker.txt

produces the following error :

exceptions.AttributeError addinfourl instance has no
attribute 'code'
Traceback (most recent call last):

File "/usr/lib/python2.4/site-packages/linkcheck/UrlData.py",
line 293, in check
self._check()

File "/usr/lib/python2.4/site-packages/linkcheck/UrlData.py",
line 354, in _check
self.checkConnection()

File "/usr/lib/python2.4/site-packages/linkcheck/HttpUrlData.py",
line 112, in checkConnection
if not self.robotsTxtAllowsUrl():

File "/usr/lib/python2.4/site-packages/linkcheck/HttpUrlData.py",
line 418, in robotsTxtAllowsUrl
rp.read()

File "/usr/lib/python2.4/site-packages/linkcheck/robotparser2.py",
line 70, in read
f = _opener.open(req)
File "/usr/lib/python2.4/urllib2.py", line 364, in
open
response = meth(req, response)
File "/usr/lib/python2.4/urllib2.py", line 468, in
http_response
code, msg, hdrs = response.code, response.msg,
response.info()
AttributeError: addinfourl instance has no
attribute 'code'
System info:
LinkChecker 1.12.1
Python 2.4.2 (#1, Apr 15 2006, 03:47:47)
[GCC 3.4.5 (Gentoo 3.4.5-r1, ssp-3.4.5-1.0,
pie-8.7.9)] on linux2

******** LinkChecker internal error, bailing out


@wummel
Copy link
Owner Author

wummel commented Dec 21, 2012

Submitted by calvin

Logged In: YES
user_id=9205

Hi,

please try to use a more recent version of LinkChecker. On
Gentoo, you can emerge a more recent version (3.3 at the
time of this writing) with:

$ ACCEPT_KEYWORDS="~x86" emerge -Dvp linkchecker

However I suggest installing the latest version, which is at
the moment 4.1.

Hope this helps,
Bastian

@wummel
Copy link
Owner Author

wummel commented Dec 21, 2012

Submitted by nobody

Logged In: NO

Version 4.1 works fine. I've thus submitted a new ebuild to
gentoo :
http://bugs.gentoo.org/show_bug.cgi?id=135858

@wummel wummel closed this as completed Dec 21, 2012
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

1 participant