<h3>Description</h3>
<p>I tried package app_python3 and found this error on all dist where python3 is exist</p>
<pre><code>[  419s] CC (gcc) [M app_python.so]              python_support.o
[  419s] python_support.c:22:20: fatal error: Python.h: No such file or directory
[  419s]  #include <Python.h>
[  419s]                     ^
[  419s] compilation terminated.
[  419s] make[2]: *** [python_support.o] Error 1
[  419s] make[1]: *** [modules] Error 1
[  419s] make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/kamailio-5.3.0-dev5/src'
[  419s] make: *** [every-module] Error 2
</code></pre>
<p>But <code>Python.h</code> is present in system.<br>
Include dir and libsdir you can get using command <code>python3-config</code>. Like</p>
<pre><code># python3-config --includes
-I/usr/include/python3.7m -I/usr/include/python3.7m
# python3-config --libs
-lpython3.7m -lpthread -ldl  -lutil -lm 
</code></pre>
<h3>Possible Solutions</h3>
<p>Update make files to use <code>python3-config</code>.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1959?email_source=notifications&email_token=ABO7UZOEHFAS3ZBXL4WYUVTPWA6KFA5CNFSM4HN2YK7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GURNXJQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZMAIJF3D7LTRK6R5V3PWA6KFANCNFSM4HN2YK7A">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZJ7DO4KWUUTMBVG3MLPWA6KFA5CNFSM4HN2YK7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GURNXJQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1959?email_source=notifications\u0026email_token=ABO7UZOEHFAS3ZBXL4WYUVTPWA6KFA5CNFSM4HN2YK7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GURNXJQ",
"url": "https://github.com/kamailio/kamailio/issues/1959?email_source=notifications\u0026email_token=ABO7UZOEHFAS3ZBXL4WYUVTPWA6KFA5CNFSM4HN2YK7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GURNXJQ",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>