[OpenSIPS-Users] opensips-cli error

Liviu Chircu liviu at opensips.org
Tue May 21 09:43:04 EDT 2019


Ok, I figured out the file error as well.  It seems the 
write_history_file() library function
takes the "~" in "~/.opensips-cli.history" as a literal directory, and 
then fails with
FileNotFound because the "~" dir is obviously not there... :)

All should be good now -- please pull and check again!  And thank you 
for the reports!

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 21.05.2019 15:26, Mark Farmer wrote:
> That's got it, thank you.
>
> Regarding the history error, I'm still getting that. I've confirmed 
> that the file does exist.
>
> cat ~/.opensips-cli.history
> diagnose
> help
> trace
> mi reload_routes
> exit
> mi reload_routes
> diagnose
> exit
> diagnose
>
> (opensips-cli): history
> Traceback (most recent call last):
>   File "bin/opensips-cli", line 9, in <module>
>     run_console()
>   File "bin/opensips-cli", line 6, in run_console
>     main.main()
>   File 
> "/usr/local/lib/python3.6/dist-packages/opensipscli-0.1-py3.6.egg/opensipscli/main.py", 
> line 78, in main
>     sys.exit(shell.cmdloop())
>   File 
> "/usr/local/lib/python3.6/dist-packages/opensipscli-0.1-py3.6.egg/opensipscli/cli.py", 
> line 203, in cmdloop
>     super(OpenSIPSCLIShell, self).cmdloop(intro='')
>   File "/usr/lib/python3.6/cmd.py", line 138, in cmdloop
>     stop = self.onecmd(line)
>   File "/usr/lib/python3.6/cmd.py", line 217, in onecmd
>     return func(arg)
>   File 
> "/usr/local/lib/python3.6/dist-packages/opensipscli-0.1-py3.6.egg/opensipscli/cli.py", 
> line 306, in do_history
>     with open(cfg.get('history_file')) as hf:
> FileNotFoundError: [Errno 2] No such file or directory: 
> '~/.opensips-cli.history'
> Error in atexit._run_exitfuncs:
> Traceback (most recent call last):
>   File 
> "/usr/local/lib/python3.6/dist-packages/opensipscli-0.1-py3.6.egg/opensipscli/cli.py", 
> line 150, in history_write
>     readline.write_history_file(history_file)
> FileNotFoundError: [Errno 2] No such file or directory
>
> HTH
> Mark.
>
>
> On Tue, 21 May 2019 at 13:19, Liviu Chircu <liviu at opensips.org 
> <mailto:liviu at opensips.org>> wrote:
>
>     Just pushed the commit - please pull & reinstall, it should not
>     throw an
>     exception anymore.  However, I'm
>     still not convinced about that history file behavior, I'll try if
>     I can
>     reproduce
>     the error you had there as well...
>
>     Liviu Chircu
>     OpenSIPS Developer
>     http://www.opensips-solutions.com
>
>     On 21.05.2019 15:15, Mark Farmer wrote:
>     > Thanks very much.
>     >
>     > Checking as promised - doing a git pull tells me that I'm
>     already up
>     > to date.
>     >
>     > Mark.
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> -- 
> Mark Farmer
> farmorg at gmail.com <mailto:farmorg at gmail.com>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190521/8847ea08/attachment.html>


More information about the Users mailing list