<div dir="ltr"><div dir="ltr">BTW, I needed to 'rm -rf /usr/local/lib/python3.6/dist-packages/opensipscli-0.1-py3.6.egg/' before re-installing otherwise I got a message saying it was already the current version number. Not sure if it overwrote or not, I forgot to check.</div><div dir="ltr"><br></div><div>HTH</div><div>Mark.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 21 May 2019 at 15:35, Mark Farmer <<a href="mailto:farmorg@gmail.com">farmorg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Bingo, that's got it :)<div><br></div><div>You're very welcome - glad I can give something back at least. Thank you for fixing and for great software!</div><div><br></div><div>Mark.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 21 May 2019 at 14:47, Liviu Chircu <<a href="mailto:liviu@opensips.org" target="_blank">liviu@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p><tt>Ok, I figured out the file error as well. It seems the
write_history_file() library function<br>
takes the "~" in "~/.opensips-cli.history" as a literal
directory, and then fails with<br>
FileNotFound because the "~" dir is obviously not there... :)</tt></p>
<p><tt>All should be good now -- please pull and check again! And
thank you for the reports!<br>
</tt></p>
<pre class="gmail-m_-1328200887447425361gmail-m_-7806506270870664883moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="gmail-m_-1328200887447425361gmail-m_-7806506270870664883moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<div class="gmail-m_-1328200887447425361gmail-m_-7806506270870664883moz-cite-prefix">On 21.05.2019 15:26, Mark Farmer wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">That's got it, thank you.
<div><br>
</div>
<div>Regarding the history error, I'm still getting that.
I've confirmed that the file does exist.</div>
<div><br>
</div>
<div>
<div>cat ~/.opensips-cli.history</div>
<div>diagnose</div>
<div>help</div>
<div>trace</div>
<div>mi reload_routes</div>
<div>exit</div>
<div>mi reload_routes</div>
<div>diagnose</div>
<div>exit</div>
<div>diagnose</div>
</div>
<div><br>
</div>
<div>
<div>(opensips-cli): history</div>
<div>Traceback (most recent call last):</div>
<div> File "bin/opensips-cli", line 9, in <module></div>
<div> run_console()</div>
<div> File "bin/opensips-cli", line 6, in run_console</div>
<div> main.main()</div>
<div> File
"/usr/local/lib/python3.6/dist-packages/opensipscli-0.1-py3.6.egg/opensipscli/main.py",
line 78, in main</div>
<div> sys.exit(shell.cmdloop())</div>
<div> File
"/usr/local/lib/python3.6/dist-packages/opensipscli-0.1-py3.6.egg/opensipscli/cli.py",
line 203, in cmdloop</div>
<div> super(OpenSIPSCLIShell, self).cmdloop(intro='')</div>
<div> File "/usr/lib/python3.6/cmd.py", line 138, in
cmdloop</div>
<div> stop = self.onecmd(line)</div>
<div> File "/usr/lib/python3.6/cmd.py", line 217, in
onecmd</div>
<div> return func(arg)</div>
<div> File
"/usr/local/lib/python3.6/dist-packages/opensipscli-0.1-py3.6.egg/opensipscli/cli.py",
line 306, in do_history</div>
<div> with open(cfg.get('history_file')) as hf:</div>
<div>FileNotFoundError: [Errno 2] No such file or
directory: '~/.opensips-cli.history'</div>
<div>Error in atexit._run_exitfuncs:</div>
<div>Traceback (most recent call last):</div>
<div> File
"/usr/local/lib/python3.6/dist-packages/opensipscli-0.1-py3.6.egg/opensipscli/cli.py",
line 150, in history_write</div>
<div> readline.write_history_file(history_file)</div>
<div>FileNotFoundError: [Errno 2] No such file or
directory</div>
</div>
<div><br>
</div>
<div>HTH</div>
<div>Mark.</div>
<div><br>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, 21 May 2019 at 13:19,
Liviu Chircu <<a href="mailto:liviu@opensips.org" target="_blank">liviu@opensips.org</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Just
pushed the commit - please pull & reinstall, it should not
throw an <br>
exception anymore. However, I'm<br>
still not convinced about that history file behavior, I'll try
if I can <br>
reproduce<br>
the error you had there as well...<br>
<br>
Liviu Chircu<br>
OpenSIPS Developer<br>
<a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">http://www.opensips-solutions.com</a><br>
<br>
On 21.05.2019 15:15, Mark Farmer wrote:<br>
> Thanks very much.<br>
><br>
> Checking as promised - doing a git pull tells me that I'm
already up <br>
> to date.<br>
><br>
> Mark.<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail-m_-1328200887447425361gmail-m_-7806506270870664883gmail_signature">Mark Farmer<br>
<a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a></div>
<br>
<fieldset class="gmail-m_-1328200887447425361gmail-m_-7806506270870664883mimeAttachmentHeader"></fieldset>
<pre class="gmail-m_-1328200887447425361gmail-m_-7806506270870664883moz-quote-pre">_______________________________________________
Users mailing list
<a class="gmail-m_-1328200887447425361gmail-m_-7806506270870664883moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="gmail-m_-1328200887447425361gmail-m_-7806506270870664883moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-1328200887447425361gmail_signature">Mark Farmer<br><a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Mark Farmer<br><a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a></div>