Package: python3-apt
Version: 0.8.9.1+b1
Severity: normal
Tags: upstream

Dear Maintainer,

The uniq() method seems to call set() which does not work with SourcesList
objects in python3. The following exception is thrown:

Traceback (most recent call last):

  File "./apt-provides", line 10, in <module>

    for line in
aptsources.sourceslist.uniq(aptsources.sourceslist.SourcesList()):

  File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 76,
in uniq
    return list(set(s))

TypeError: unhashable type: 'SourceEntry'

This was also tested on version 0.8.9.1+b1. The same code works in the
python2 version.

-- System Information:
Debian Release: 7.1
  APT prefers stable
  APT policy: (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python3-apt depends on:
ii  libapt-inst1.5     0.9.7.9
ii  libapt-pkg4.12     0.9.7.9
ii  libc6              2.16-0experimental1
ii  libgcc1            1:4.7.2-5
ii  libstdc++6         4.7.2-5
ii  python-apt-common  0.8.8.2
ii  python3            3.2.3-6

Versions of packages python3-apt recommends:
ii  iso-codes    3.41-1
ii  lsb-release  4.1+Debian9

Versions of packages python3-apt suggests:
pn  python-apt-doc   <none>
pn  python3-apt-dbg  <none>

-- no debconf information


-- 
Jordan Metzmeier

Reply via email to