[OpenSIPS-Users] opensips-cli error
Mark Farmer
farmorg at gmail.com
Tue May 21 06:15:41 EDT 2019
Hi everyone, I'm having trouble with the new opensips-cli tool. Seems to be
trowing a python error.
opensips-cli -f /etc/opensips-cli.cfg
Traceback (most recent call last):
File "/usr/local/bin/opensips-cli", line 4, in <module>
__import__('pkg_resources').run_script('opensipscli==0.1',
'opensips-cli')
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
658, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
1429, in run_script
.format(**locals()),
pkg_resources.ResolutionError: Script 'scripts/opensips-cli' not found in
metadata at None
This is my config file:
[default]
log_level: WARNING
prompt_name: opensips-cli
prompt_intro: Welcome to OpenSIPS Command Line Interface!
prompt_emptyline_repeat_cmd: False
history_file: ~/.opensips-cli.history
history_file_size: 1000
output_type: pretty-print
communication_type: fifo
fifo_file: /tmp/opensips_fifo
I thought it might be a fifo permissions issue so I've set the fifo_user,
fifo_group & fifo_mode.
ls -lh /tmp/opensips_fifo
prw------- 1 opensips opensips 0 May 21 10:39 /tmp/opensips_fifo
I've followed the installation instructions & have all the python modules
installed.
Server is Ubuntu 18.04.2
opensips -V
version: opensips 3.0.0-beta (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC,
F_MALLOC, HP_MALLOC, DBG_MALLOC, CC_O0, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
git revision: 5561528a2
main.c compiled on 11:16:01 May 20 2019 with gcc 7
TIA
Mark.
--
Mark Farmer
farmorg at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190521/3dc14721/attachment.html>
More information about the Users
mailing list