<div dir="ltr">[+cc debian-python]<div><br></div><div>Sorry, I have no idea what’s going wrong here or how to fix this. Maybe the debian-python team can help?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 25, 2017 at 5:32 PM, Gabriel Detraz <span dir="ltr"><<a href="mailto:detraz@crans.org" target="_blank">detraz@crans.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Package: freeradius<br>
Version: 3.0.12+dfsg-5<br>
Severity: normal<br>
<br>
Dear Maintainer,<br>
<br>
I think there is a problem with python module of freeradius3, in the actual build<br>
(Python version: 2.7.13 (default, Jan 19 2017, 14:48:08)  [GCC 6.3.0 20170118])<br>
<br>
In particular, "import ldap" directive in a python file linked with the python module<br>
make it crash with this error code when we start freeradius with freeradius -X in particular :<br>
<br>
Python version: 2.7.13 (default, Jan 19 2017, 14:48:08)  [GCC 6.3.0 20170118]<br>
Failed loading libpython symbols into global symbol table: <a href="http://libpython2.7.so" rel="noreferrer" target="_blank">libpython2.7.so</a>: cannot open shared object file: No such file or directory<br>
python_function_load - Module 'auth3' not found<br>
<type 'exceptions.ImportError'> (/usr/lib/python2.7/dist-<wbr>packages/_<a href="http://ldap.x86_64-linux-gnu.so" rel="noreferrer" target="_blank">ldap.x86_64-linux-<wbr>gnu.so</a>: undefined symbol: PyExc_SystemError)<br>
python_function_load - Failed to import python function 'auth3.instantiate'<br>
<br>
<br>
Here is the auth3.py file :<br>
(very simple for testing purpose)<br>
<br>
# ⁻*- mode: python; coding: utf-8 -*-<br>
"""<br>
Backend python pour freeradius.<br>
<br>
Ce fichier contient la définition de plusieurs fonctions d'interface à<br>
freeradius qui peuvent être appelées (suivant les configurations) à certains<br>
moment de l'authentification, en WiFi, filaire, ou par les NAS eux-mêmes.<br>
<br>
Inspirés d'autres exemples trouvés ici :<br>
<a href="https://github.com/FreeRADIUS/freeradius-server/blob/master/src/modules/rlm_python/" rel="noreferrer" target="_blank">https://github.com/FreeRADIUS/<wbr>freeradius-server/blob/master/<wbr>src/modules/rlm_python/</a><br>
"""<br>
<br>
import netaddr<br>
import radiusd # Module magique freeradius (radiusd.py is dummy)<br>
import ldap<br>
<br>
<br>
Moreover, import ldap doesn't crash in a "normal" ipython shell, so the problem seems to<br>
be with the build of freeradius python module.<br>
<br>
<br>
*** Reporter, please consider answering these questions, where appropriate ***<br>
<br>
   * What led up to the situation?<br>
   * What exactly did you do (or not do) that was effective (or<br>
     ineffective)?<br>
   * What was the outcome of this action?<br>
   * What outcome did you expect instead?<br>
<br>
*** End of the template - remove these template lines ***<br>
<br>
<br>
-- System Information:<br>
Debian Release: 9.1<br>
  APT prefers stable<br>
  APT policy: (500, 'stable')<br>
Architecture: amd64 (x86_64)<br>
<br>
Kernel: Linux 4.9.0-3-amd64 (SMP w/1 CPU core)<br>
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8)<br>
Shell: /bin/sh linked to /bin/dash<br>
Init: systemd (via /run/systemd/system)<br>
<br>
Versions of packages freeradius depends on:<br>
ii  freeradius-common  3.0.12+dfsg-5<br>
ii  freeradius-config  3.0.12+dfsg-5<br>
ii  libc6              2.24-11+deb9u1<br>
ii  libcap2            1:2.25-1<br>
ii  libfreeradius3     3.0.12+dfsg-5<br>
ii  libgdbm3           1.8.3-14<br>
ii  libpam0g           1.1.8-3.6<br>
ii  libpcre3           2:8.39-3<br>
ii  libperl5.24        5.24.1-3+deb9u1<br>
ii  libpython2.7       2.7.13-2<br>
ii  libreadline7       7.0-3<br>
ii  libsqlite3-0       3.16.2-5<br>
ii  libssl1.1          1.1.0f-3<br>
ii  libtalloc2         2.1.8-1<br>
ii  libwbclient0       2:4.5.8+dfsg-2+deb9u1+b1<br>
ii  lsb-base           9.20161125<br>
<br>
Versions of packages freeradius recommends:<br>
ii  freeradius-utils  3.0.12+dfsg-5<br>
<br>
Versions of packages freeradius suggests:<br>
pn  freeradius-krb5        <none><br>
pn  freeradius-ldap        <none><br>
pn  freeradius-mysql       <none><br>
pn  freeradius-postgresql  <none><br>
ii  snmp                   5.7.3+dfsg-1.7<br>
<br>
-- no debconf information<br>
______________________________<wbr>_________________<br>
Pkg-freeradius-maintainers mailing list<br>
<a href="mailto:Pkg-freeradius-maintainers@lists.alioth.debian.org">Pkg-freeradius-maintainers@<wbr>lists.alioth.debian.org</a><br>
<a href="https://lists.alioth.debian.org/mailman/listinfo/pkg-freeradius-maintainers" rel="noreferrer" target="_blank">https://lists.alioth.debian.<wbr>org/mailman/listinfo/pkg-<wbr>freeradius-maintainers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Best regards,<br>Michael</div>
</div>