<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099">Anyone know what's going on? </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099"><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font color="#000000" face="verdana, sans-serif">Gordon </font></div></div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 12 May 2020 at 17:10, Gordon Yeong <<a href="mailto:anexiole@gmail.com">anexiole@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,153)">hi guys<br clear="all"></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,153)"> I managed to get opensips to work with the perl module.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,153)">I now need to port what I have to python 3.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,153)"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,153)"></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,153)"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,153)">I can't seem to start opensips 3.0 because I have the following error:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,153)"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,153)"><br>May 12 16:59:51 [47532] ERROR:core:set_mod_param_regex: no module matching python found<br>May 12 16:59:51 [47532] Traceback (last included file at the bottom):<br>May 12 16:59:51 [47532] 0. /opt/opensips/etc/opensips/opensips-Enum-Python.cfg<br>May 12 16:59:51 [47532] CRITICAL:core:yyerror: parse error in /opt/opensips/etc/opensips/opensips-Enum-Python.cfg:137:20-21: Parameter <script_name> not found in module <python> - can't set<br>May 12 16:59:51 [47532]<br>May 12 16:59:51 [47532] loadmodule "enum.so"<br>May 12 16:59:51 [47532] modparam("python", "script_name", "/tmp/test.py")<br>May 12 16:59:51 [47532] ^~<br>May 12 16:59:51 [47532]<br>May 12 16:59:51 [47532] ####### Routing Logic ########<br>May 12 16:59:51 [47532] CRITICAL:core:yyerror: parse error in /opt/opensips/etc/opensips/opensips-Enum-Python.cfg:158:36-37: unknown command <python_exec>, missing loadmodule?<br>May 12 16:59:51 [47532] CRITICAL:core:yyerror: parse error in /opt/opensips/etc/opensips/opensips-Enum-Python.cfg:159:54-55: unknown command <python_exec>, missing loadmodule?<br>May 12 16:59:51 [47532] ERROR:core:parse_opensips_cfg: bad config file (3 errors)<br>May 12 16:59:51 [47532] ERROR:core:main: failed to parse config file /opt/opensips/etc/opensips/opensips-Enum-Python.cfg<br>May 12 16:59:51 [47532] NOTICE:core:main: Exiting....<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,153)"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,153)">1) the first issue is "ERROR:core:set_mod_param_regex: no module matching python found".</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,153)"> I find this really weird because I referred to <a href="https://opensips.org/docs/modules/3.0.x/python.html" style="font-family:Arial,Helvetica,sans-serif" target="_blank">https://opensips.org/docs/modules/3.0.x/python.html</a> and it says in <span style="color:rgb(0,0,0);font-family:Helvetica,Arial">1.2.1. that no loading is required.</span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,153)"><span style="color:rgb(0,0,0);font-family:Helvetica,Arial"><br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,153)"><span style="color:rgb(0,0,0);font-family:Helvetica,Arial">2) Additionally, I am using the line "</span><span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)">modparam("python", "script_name", "/tmp/test.py")" to load my test python functions as per the same documentation in section </span><span style="color:rgb(0,0,0);font-family:Helvetica,Arial">1.3.1</span><span class="gmail_default">.</span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,153)"><span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)"> Yet, it errors out, "</span><span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)">CRITICAL:core:yyerror: parse error in /opt/opensips/etc/opensips/opensips-Enum-Python.cfg:137:20-21: Parameter <script_name> not found in module <python> - can't set". </span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,153)"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,153)">Any ideas? </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,153)"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,153)">Thank you</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,153)"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,153)"><br></div><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font color="#000000" face="verdana, sans-serif">Regards,<br>Gordon Yeong</font></div><div><span style="color:rgb(0,0,153);font-family:arial,helvetica,sans-serif"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,153)">perl, python3, elixir, rails, php = joy</span></span></div></div></div></div></div></div></div></div></div></div>
</blockquote></div>