ubuntuusers.de

Mechanize Fehler

Datum:
22. Januar 2009 18:19
Code:
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
vogti@techbot:~/mechanize-0.1.10$ sudo python functional_tests.py
..................E.............
======================================================================
ERROR: test_digest_auth (functional_tests.SimpleTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vogti/mechanize-0.1.10/functional_tests.py", line 137, in test_digest_auth
    self.browser.open(uri)
  File "/home/vogti/mechanize-0.1.10/mechanize/_mechanize.py", line 209, in open
    return self._mech_open(url, data, timeout=timeout)
  File "/home/vogti/mechanize-0.1.10/mechanize/_mechanize.py", line 236, in _mech_open
    response = UserAgentBase.open(self, request, data)
  File "/home/vogti/mechanize-0.1.10/mechanize/_opener.py", line 202, in open
    response = meth(req, response)
  File "/home/vogti/mechanize-0.1.10/mechanize/_http.py", line 612, in http_response
    "http", request, response, code, msg, hdrs)
  File "/home/vogti/mechanize-0.1.10/mechanize/_opener.py", line 219, in error
    result = apply(self._call_chain, args)
  File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
    result = func(*args)
  File "/home/vogti/mechanize-0.1.10/mechanize/_auth.py", line 451, in http_error_401
    host, req, headers)
  File "/home/vogti/mechanize-0.1.10/mechanize/_auth.py", line 342, in http_error_auth_reqed
    return self.retry_http_digest_auth(req, authreq)
  File "/home/vogti/mechanize-0.1.10/mechanize/_auth.py", line 355, in retry_http_digest_auth
    return self.parent.open(newreq)
  File "/home/vogti/mechanize-0.1.10/mechanize/_mechanize.py", line 209, in open
    return self._mech_open(url, data, timeout=timeout)
  File "/home/vogti/mechanize-0.1.10/mechanize/_mechanize.py", line 236, in _mech_open
    response = UserAgentBase.open(self, request, data)
  File "/home/vogti/mechanize-0.1.10/mechanize/_opener.py", line 202, in open
    response = meth(req, response)
  File "/home/vogti/mechanize-0.1.10/mechanize/_http.py", line 612, in http_response
    "http", request, response, code, msg, hdrs)
  File "/home/vogti/mechanize-0.1.10/mechanize/_opener.py", line 219, in error
    result = apply(self._call_chain, args)
  File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
    result = func(*args)
  File "/home/vogti/mechanize-0.1.10/mechanize/_auth.py", line 451, in http_error_401
    host, req, headers)
  File "/home/vogti/mechanize-0.1.10/mechanize/_auth.py", line 342, in http_error_auth_reqed
    return self.retry_http_digest_auth(req, authreq)
  File "/home/vogti/mechanize-0.1.10/mechanize/_auth.py", line 355, in retry_http_digest_auth
    return self.parent.open(newreq)
  File "/home/vogti/mechanize-0.1.10/mechanize/_mechanize.py", line 209, in open
    return self._mech_open(url, data, timeout=timeout)
  File "/home/vogti/mechanize-0.1.10/mechanize/_mechanize.py", line 236, in _mech_open
    response = UserAgentBase.open(self, request, data)
  File "/home/vogti/mechanize-0.1.10/mechanize/_opener.py", line 202, in open
    response = meth(req, response)
  File "/home/vogti/mechanize-0.1.10/mechanize/_http.py", line 612, in http_response
    "http", request, response, code, msg, hdrs)
  File "/home/vogti/mechanize-0.1.10/mechanize/_opener.py", line 219, in error
    result = apply(self._call_chain, args)
  File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
    result = func(*args)
  File "/home/vogti/mechanize-0.1.10/mechanize/_auth.py", line 451, in http_error_401
    host, req, headers)
  File "/home/vogti/mechanize-0.1.10/mechanize/_auth.py", line 342, in http_error_auth_reqed
    return self.retry_http_digest_auth(req, authreq)
  File "/home/vogti/mechanize-0.1.10/mechanize/_auth.py", line 355, in retry_http_digest_auth
    return self.parent.open(newreq)
  File "/home/vogti/mechanize-0.1.10/mechanize/_mechanize.py", line 209, in open
    return self._mech_open(url, data, timeout=timeout)
  File "/home/vogti/mechanize-0.1.10/mechanize/_mechanize.py", line 236, in _mech_open
    response = UserAgentBase.open(self, request, data)
  File "/home/vogti/mechanize-0.1.10/mechanize/_opener.py", line 202, in open
    response = meth(req, response)
  File "/home/vogti/mechanize-0.1.10/mechanize/_http.py", line 612, in http_response
    "http", request, response, code, msg, hdrs)
  File "/home/vogti/mechanize-0.1.10/mechanize/_opener.py", line 219, in error
    result = apply(self._call_chain, args)
  File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
    result = func(*args)
  File "/home/vogti/mechanize-0.1.10/mechanize/_auth.py", line 451, in http_error_401
    host, req, headers)
  File "/home/vogti/mechanize-0.1.10/mechanize/_auth.py", line 342, in http_error_auth_reqed
    return self.retry_http_digest_auth(req, authreq)
  File "/home/vogti/mechanize-0.1.10/mechanize/_auth.py", line 355, in retry_http_digest_auth
    return self.parent.open(newreq)
  File "/home/vogti/mechanize-0.1.10/mechanize/_mechanize.py", line 209, in open
    return self._mech_open(url, data, timeout=timeout)
  File "/home/vogti/mechanize-0.1.10/mechanize/_mechanize.py", line 236, in _mech_open
    response = UserAgentBase.open(self, request, data)
  File "/home/vogti/mechanize-0.1.10/mechanize/_opener.py", line 202, in open
    response = meth(req, response)
  File "/home/vogti/mechanize-0.1.10/mechanize/_http.py", line 612, in http_response
    "http", request, response, code, msg, hdrs)
  File "/home/vogti/mechanize-0.1.10/mechanize/_opener.py", line 219, in error
    result = apply(self._call_chain, args)
  File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
    result = func(*args)
  File "/home/vogti/mechanize-0.1.10/mechanize/_auth.py", line 451, in http_error_401
    host, req, headers)
  File "/home/vogti/mechanize-0.1.10/mechanize/_auth.py", line 342, in http_error_auth_reqed
    return self.retry_http_digest_auth(req, authreq)
  File "/home/vogti/mechanize-0.1.10/mechanize/_auth.py", line 355, in retry_http_digest_auth
    return self.parent.open(newreq)
  File "/home/vogti/mechanize-0.1.10/mechanize/_mechanize.py", line 209, in open
    return self._mech_open(url, data, timeout=timeout)
  File "/home/vogti/mechanize-0.1.10/mechanize/_mechanize.py", line 236, in _mech_open
    response = UserAgentBase.open(self, request, data)
  File "/home/vogti/mechanize-0.1.10/mechanize/_opener.py", line 202, in open
    response = meth(req, response)
  File "/home/vogti/mechanize-0.1.10/mechanize/_http.py", line 612, in http_response
    "http", request, response, code, msg, hdrs)
  File "/home/vogti/mechanize-0.1.10/mechanize/_opener.py", line 219, in error
    result = apply(self._call_chain, args)
  File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
    result = func(*args)
  File "/home/vogti/mechanize-0.1.10/mechanize/_auth.py", line 451, in http_error_401
    host, req, headers)
  File "/home/vogti/mechanize-0.1.10/mechanize/_auth.py", line 342, in http_error_auth_reqed
    return self.retry_http_digest_auth(req, authreq)
  File "/home/vogti/mechanize-0.1.10/mechanize/_auth.py", line 355, in retry_http_digest_auth
    return self.parent.open(newreq)
  File "/home/vogti/mechanize-0.1.10/mechanize/_mechanize.py", line 209, in open
    return self._mech_open(url, data, timeout=timeout)
  File "/home/vogti/mechanize-0.1.10/mechanize/_mechanize.py", line 236, in _mech_open
    response = UserAgentBase.open(self, request, data)
  File "/home/vogti/mechanize-0.1.10/mechanize/_opener.py", line 202, in open
    response = meth(req, response)
  File "/home/vogti/mechanize-0.1.10/mechanize/_http.py", line 612, in http_response
    "http", request, response, code, msg, hdrs)
  File "/home/vogti/mechanize-0.1.10/mechanize/_opener.py", line 219, in error
    result = apply(self._call_chain, args)
  File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
    result = func(*args)
  File "/home/vogti/mechanize-0.1.10/mechanize/_auth.py", line 451, in http_error_401
    host, req, headers)
  File "/home/vogti/mechanize-0.1.10/mechanize/_auth.py", line 336, in http_error_auth_reqed
    headers, None)
HTTPError: HTTP Error 401: digest auth failed

----------------------------------------------------------------------
Ran 32 tests in 42.402s

FAILED (errors=1)