[sr-dev] [kamailio/kamailio] app_python3.so undefined symbol: PyExc_SystemExit on Ubuntu 20.04 (#2534)

Dylan notifications at github.com
Tue Oct 27 21:11:09 CET 2020


# Description

We installed kamailio from the ubuntu package manager along with several of the modules, including `kamailio-python3-modules`, which gives us the app_python3 module.

We edited the default, provided config to add the lines

```
loadmodule "app_python3.so"
...
modparam("app_python3", "load", "my_cool_python_file.py")
```
Restarted kamailio and found the log messages below.

#### Log Messages

```
Oct 27 20:05:19 kamailio-stage-1 systemd[1]: Starting Kamailio SIP Server...
Oct 27 20:05:19 kamailio-stage-1 kamailio[2243329]:  0(2243329) ERROR: <core> [core/sr_module.c:512]: load_module(): could not open module </usr/lib/x86_64-linux-gnu/kamailio/modules/app_python3.so>: /usr/lib/x86_64-linux-gnu/kamailio/modules/app_python3.so: undefined symbol: PyExc_SystemExit
Oct 27 20:05:19 kamailio-stage-1 kamailio[2243329]:  0(2243329) CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 266, column 12-27: failed to load module
Oct 27 20:05:19 kamailio-stage-1 kamailio[2243329]:  0(2243329) ERROR: <core> [core/modparam.c:176]: set_mod_param_regex(): No module matching <app_python3> found
Oct 27 20:05:19 kamailio-stage-1 kamailio[2243329]:  0(2243329) CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 496, column 64: Can't set module parameter
```

### Additional Information

```
version: kamailio 5.3.2 (x86_64/linux) 
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown 
compiled with gcc 9.2.1
```

* **Operating System**:
```
Linux kamailio-stage-1 5.4.0-1024-aws #24-Ubuntu SMP Sat Sep 5 06:19:55 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
```

`lsb_release -a`
```
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.1 LTS
Release:	20.04
Codename:	focal
```


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2534
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20201027/a02f34de/attachment.htm>


More information about the sr-dev mailing list