<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>kamailio should use the python3 library app_python3 was compiled
with, you should run ldd to see the linking chain, like:</p>
<p>$ ldd src/modules/app_python3/app_python3.so</p>
<p> linux-vdso.so.1 (0x00007ffe8336a000)<br>
libpython3.9.so.1.0 =>
/lib/x86_64-linux-gnu/libpython3.9.so.1.0 (0x00007fa4d2f54000)<br>
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6
(0x00007fa4d2d7f000)<br>
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1
(0x00007fa4d2d50000)<br>
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1
(0x00007fa4d2d33000)<br>
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007fa4d2d11000)<br>
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2
(0x00007fa4d2d0b000)<br>
libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1
(0x00007fa4d2d04000)<br>
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6
(0x00007fa4d2bc0000)<br>
/lib64/ld-linux-x86-64.so.2 (0x00007fa4d3578000)<br>
</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 05.10.22 10:05, Lợi Đặng wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAGsrq_tyToJYfmOwwDjWDm=7Dga=On=E5W_fLOfoqw63z_yO-g@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">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.
<div><br>
</div>
<div>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.<br>
<div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Any help would be appreciated.</div>
<div><br clear="all">
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div>rgds,</div>
<div>Loi Dang Thanh<br>
</div>
Phone : +84. 774.735.448<br>
</div>
Email : <a
href="mailto:loi.dangthanh@gmail.com"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">loi.dangthanh@gmail.com</a><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
* <a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
Nov 7-10, 2022 (Europe Timezone)
* <a class="moz-txt-link-freetext" href="https://www.asipto.com/sw/kamailio-advanced-training-online/">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
</body>
</html>