[Python-modules-team] Bug#895372: dulwich: TypeError in deprecation warning
Paul Gevers
elbrus at debian.org
Tue Apr 10 19:38:49 BST 2018
Source: dulwich
Version: 0.19.1-1
Severity: normal
User: ci-team at tracker.debian.org
Usertags: triggers
Affects: xandikos
Since some weeks ci.debian.net is running autopkgtests in testing with
packages that try to migrate from unstable. With the upload of version
0.19.1-1 of dulwich, the autopkgtest of xandikos in testing¹ started to
fail.
If I interpret the error message correctly (please just close this bug
if I am mistaken), the autopkgtest hit a deprecation warning in dulwich
that errors out on a TypeError.
Traceback (most recent call last):
File "/usr/lib/python3.6/wsgiref/handlers.py", line 137, in run
self.result = application(self.environ, self.start_response)
File "/usr/lib/python3/dist-packages/xandikos/web.py", line 905, in
__call__
return self._inner_app(environ, start_response)
File "/usr/lib/python3/dist-packages/xandikos/webdav.py", line 1787,
in __call__
return do.handle(environ, start_response, self)
File "/usr/lib/python3/dist-packages/xandikos/webdav.py", line 1397,
in handle
unused_href, path, r = app._get_resource_from_environ(environ)
File "/usr/lib/python3/dist-packages/xandikos/webdav.py", line 1744,
in _get_resource_from_environ
r = self.backend.get_resource(path)
File "/usr/lib/python3/dist-packages/xandikos/web.py", line 805, in
get_resource
return store.get_member(name)
File "/usr/lib/python3/dist-packages/xandikos/web.py", line 260, in
get_member
for (fname, content_type, fetag) in self.store.iter_with_etag():
File "/usr/lib/python3/dist-packages/xandikos/store/git.py", line 217,
in iter_with_etag
for (name, mode, sha) in self._iterblobs(ctag):
File "/usr/lib/python3/dist-packages/xandikos/store/git.py", line 625,
in _iterblobs
for (name, sha, mode) in index.iterblobs():
File "/usr/lib/python3/dist-packages/dulwich/index.py", line 278, in
iterblobs
warnings.warn(PendingDeprecationWarning, 'Use iterobjects() instead.')
TypeError: category must be a Warning subclass, not 'str'
The autopkgtest in unstable are fine, I assume that xandikos is not
using the deprecated code anymore.
Paul
¹ https://ci.debian.net/packages/x/xandikos/testing/amd64/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20180410/59aae2d8/attachment.sig>
More information about the Python-modules-team
mailing list