[Python-modules-team] Bug#836704: python3-iptables: doesn't find xtables in multi-arch directories

IOhannes m zmoelnig umlaeute at debian.org
Sun Sep 4 21:19:16 UTC 2016


Package: python3-iptables
Version: 0.11.0-1
Severity: normal

python-iptables fails to load, as it cannot find the xtables-directory

> >>> import iptc
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/lib/python3/dist-packages/iptc/__init__.py", line 10, in <module>
>     from iptc.ip4tc import (is_table_available, Table, Chain, Rule, Match, Target,
>   File "/usr/lib/python3/dist-packages/iptc/ip4tc.py", line 13, in <module>
>     from .xtables import (XT_INV_PROTO, NFPROTO_IPV4, XTablesError, xtables,
>   File "/usr/lib/python3/dist-packages/iptc/xtables.py", line 704, in <module>
>     raise XTablesError("can't find directory with extensions; "
> iptc.xtables.XTablesError: can't find directory with extensions; please set XTABLES_LIBDIR

it works if i manually set the XTABLES_LIBDIR to /usr/lib/x86_64/xtables, as
suggested by the error-message.
however, the package should of course be able to find the xtables extensions
by itself, without user-intervention.

this is true for both python2 and python3 flavours of the package.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python3-iptables depends on:
ii  libc6        2.23-5
ii  python3      3.5.1-4
pn  python3:any  <none>

python3-iptables recommends no packages.

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

-- no debconf information



More information about the Python-modules-team mailing list