[OpenSIPS-Users] opensips-cli error
Mark Farmer
farmorg at gmail.com
Tue May 21 10:38:17 EDT 2019
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.
HTH
Mark.
On Tue, 21 May 2019 at 15:35, Mark Farmer <farmorg at gmail.com> wrote:
> Bingo, that's got it :)
>
> You're very welcome - glad I can give something back at least. Thank you
> for fixing and for great software!
>
> Mark.
>
>
>
> On Tue, 21 May 2019 at 14:47, Liviu Chircu <liviu at opensips.org> wrote:
>
>> 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 Developerhttp://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> 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
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>
>>
>> --
>> Mark Farmer
>> farmorg at gmail.com
>>
>> _______________________________________________
>> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
> --
> Mark Farmer
> farmorg at gmail.com
>
--
Mark Farmer
farmorg at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190521/e79d273b/attachment.html>
More information about the Users
mailing list