[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#847208: AttributeError: 'module' object has no attribute 'warning'



Package: linkchecker
Version: 9.3-4
Severity: important

Dear Maintainer,

   * What led up to the situation?

Called LinkChecker with authentication


   * What exactly did you do (or not do) that was effective (or
     ineffective)?

linkchecker -f example.rc http://www.example.com

where example.rc is

[authentication]
entry=^https?://www\.edithwilmot\.co\.uk nosuch nosuch 
loginurl=https://www.edithwilmot.co.uk/User/Login



   * What was the outcome of this action?

WARNING 2016-12-06 13:40:48,971 MainThread Error using login URL: 'module' object has no attribute 'warning'.
Traceback (most recent call last):
  File "/usr/bin/linkchecker", line 599, in <module>
    check_urls(aggregate)
  File "/usr/lib/python2.7/dist-packages/linkcheck/director/__init__.py", line 34, in check_urls
    aggregate.visit_loginurl()
  File "/usr/lib/python2.7/dist-packages/linkcheck/director/aggregator.py", line 86, in visit_loginurl
    encoding=response.encoding)
  File "/usr/lib/python2.7/dist-packages/linkcheck/htmlutil/formsearch.py", line 101, in search_form
    parser.feed(content)
  File "/usr/lib/python2.7/dist-packages/linkcheck/htmlutil/formsearch.py", line 74, in start_element
    log.warning(LOG_CHECK, "nameless form input %s" % attrs)
AttributeError: 'module' object has no attribute 'warning'


   * What outcome did you expect instead?

No traceback!

Failed login to site and/or linkchecking as a non-logged-in user.



-- System Information:
Debian Release: 8.6
  APT prefers testing
  APT policy: (1000, 'testing'), (1000, 'stable'), (900, 'stable'), (800, 'stable-updates'), (750, 'testing'), (50, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.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.19-18+deb8u6
ii  python           2.7.9-1
ii  python-requests  2.4.3-6
ii  python-urllib3   1.9.1-3
pn  python:any       <none>

linkchecker recommends no packages.

Versions of packages linkchecker suggests:
ii  clamav-daemon       0.99.2+dfsg-0+deb8u2
pn  linkchecker-gui     <none>
pn  linkchecker-web     <none>
pn  python-argcomplete  <none>
ii  python-cssutils     0.9.10-1
pn  python-gconf        <none>
pn  python-geoip        <none>
pn  python-meliae       <none>
ii  python-twill        0.9-3

-- Configuration Files:
/etc/bash_completion.d/linkchecker-completion 2755f1dcd3afae3fa06cfdaf927d0d50 [Errno 2] No such file or directory: u'/etc/bash_completion.d/linkchecker-completion 2755f1dcd3afae3fa06cfdaf927d0d50'

-- no debconf information


Reply to: