[SR-Users] How to use different version of python3 with KEMI

Daniel-Constantin Mierla miconda at gmail.com
Wed Oct 5 17:05:47 CEST 2022


Hello,

kamailio should use the python3 library app_python3 was compiled with,
you should run ldd to see the linking chain, like:

$ ldd src/modules/app_python3/app_python3.so

    linux-vdso.so.1 (0x00007ffe8336a000)
    libpython3.9.so.1.0 => /lib/x86_64-linux-gnu/libpython3.9.so.1.0
(0x00007fa4d2f54000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa4d2d7f000)
    libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1
(0x00007fa4d2d50000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fa4d2d33000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007fa4d2d11000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fa4d2d0b000)
    libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007fa4d2d04000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fa4d2bc0000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fa4d3578000)

Cheers,
Daniel

On 05.10.22 10:05, Lợi Đặng wrote:
> Hi all, regarding KEMI with python3, how to specify the python
> instance we're going to use instead of the system's? i.e: virtual
> environment or alternative installation of python3.
>
> Asking as I'm having existing code running on a version which does not
> match the system's, and upgrading system's to the specific version is
> not feasible.
>
> I tried specifying the python3 instance in
> src/modules/app_python3/Makefile but it seems only to help with the
> build, later the system python is used when kamailio starts.
>
> Any help would be appreciated.
>
> rgds,
> Loi Dang Thanh
> Phone : +84. 774.735.448
> Email : loi.dangthanh at gmail.com
>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users at lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online
  Nov 7-10, 2022 (Europe Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20221005/16e9b6e5/attachment.htm>


More information about the sr-users mailing list