Bug#783981: AttributeError: 'module' object has no attribute 'add_metaclass'
Gilles Mocellin
gilles.mocellin at nuagelibre.org
Thu May 14 10:03:29 UTC 2015
Package: python-debian
Followup-For: Bug #783981
Dear Maintainer,
reportbug, apt-xapian-index and certainly other tools still do not work
on jessie (for me).
The only difference I see between my SID install and my Jessie one is
python-six package version.
Now, python-six is available in backports, so I have upgraded it (1.9.0-3~bpo8+1).
And I still have the same error :
~ reportbug
Traceback (most recent call last):
File "/usr/bin/reportbug", line 38, in <module>
from reportbug import utils
File "/usr/lib/python2.7/dist-packages/reportbug/utils.py", line 70, in <module>
import debbugs
File "/usr/lib/python2.7/dist-packages/reportbug/debbugs.py", line 43, in <module>
import checkversions
File "/usr/lib/python2.7/dist-packages/reportbug/checkversions.py", line 39, in <module>
from debian.deb822 import Deb822
File "/usr/lib/python2.7/dist-packages/debian/deb822.py", line 1481, in <module>
@six.add_metaclass(_ClassInitMeta)
AttributeError: 'module' object has no attribute 'add_metaclass'
Ah !
I've just made a diff of strace calls whime launching reportbug...
I have manually installed python modules in /usr/local (via pip), and there is a six module (1.6.0) : that's it.
And no need to upgrade to the backported version of python-six, it works with 1.8.0-1.
Bug can be closed, it was not a bug...
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.0.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
More information about the pkg-python-debian-maint
mailing list