<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<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="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 21.05.2019 15:26, Mark Farmer wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAOvQDev-MVSzXVyeKy4ruB-ZfAuCea_OELJs277PcP26JvCEYg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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"
moz-do-not-send="true">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" moz-do-not-send="true">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"
moz-do-not-send="true">Users@lists.opensips.org</a><br>
<a
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
rel="noreferrer" target="_blank" moz-do-not-send="true">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_signature">Mark Farmer<br>
<a href="mailto:farmorg@gmail.com" target="_blank"
moz-do-not-send="true">farmorg@gmail.com</a></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>