[OpenSIPS-Users] opensips-cli error
Mark Farmer
farmorg at gmail.com
Fri Jun 12 12:10:54 EST 2020
This one has reared it's head again today. I did a fresh install on 2 boxes
but I forgot to make sure the deps were installed one of them.
Now when I try to run opensips-cli I get the error again. The other box
with the deps preinstalled is fine. I've tried reinstalling opensips-cli
several times but no luck.
This is the install log & error:
/usr/local/src/opensips-cli# python3 setup.py install clean
/usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution
option: 'long_description_content_type'
warnings.warn(msg)
running install
running bdist_egg
running egg_info
creating opensipscli.egg-info
writing opensipscli.egg-info/PKG-INFO
writing dependency_links to opensipscli.egg-info/dependency_links.txt
writing requirements to opensipscli.egg-info/requires.txt
writing top-level names to opensipscli.egg-info/top_level.txt
writing manifest file 'opensipscli.egg-info/SOURCES.txt'
reading manifest file 'opensipscli.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'MANIFEST'
writing manifest file 'opensipscli.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/opensipscli
copying opensipscli/__init__.py -> build/lib/opensipscli
copying opensipscli/main.py -> build/lib/opensipscli
copying opensipscli/comm.py -> build/lib/opensipscli
copying opensipscli/db.py -> build/lib/opensipscli
copying opensipscli/cli.py -> build/lib/opensipscli
copying opensipscli/module.py -> build/lib/opensipscli
copying opensipscli/config.py -> build/lib/opensipscli
copying opensipscli/logger.py -> build/lib/opensipscli
copying opensipscli/defaults.py -> build/lib/opensipscli
creating build/lib/opensipscli/modules
copying opensipscli/modules/__init__.py -> build/lib/opensipscli/modules
copying opensipscli/modules/tls.py -> build/lib/opensipscli/modules
copying opensipscli/modules/diagnose.py -> build/lib/opensipscli/modules
copying opensipscli/modules/trap.py -> build/lib/opensipscli/modules
copying opensipscli/modules/instance.py -> build/lib/opensipscli/modules
copying opensipscli/modules/user.py -> build/lib/opensipscli/modules
copying opensipscli/modules/mi.py -> build/lib/opensipscli/modules
copying opensipscli/modules/trace.py -> build/lib/opensipscli/modules
copying opensipscli/modules/database.py -> build/lib/opensipscli/modules
creating build/lib/opensipscli/communication
copying opensipscli/communication/__init__.py ->
build/lib/opensipscli/communication
copying opensipscli/communication/http.py ->
build/lib/opensipscli/communication
copying opensipscli/communication/fifo.py ->
build/lib/opensipscli/communication
copying opensipscli/communication/jsonrpc_helper.py ->
build/lib/opensipscli/communication
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/opensipscli
copying build/lib/opensipscli/__init__.py ->
build/bdist.linux-x86_64/egg/opensipscli
copying build/lib/opensipscli/main.py ->
build/bdist.linux-x86_64/egg/opensipscli
creating build/bdist.linux-x86_64/egg/opensipscli/modules
copying build/lib/opensipscli/modules/__init__.py ->
build/bdist.linux-x86_64/egg/opensipscli/modules
copying build/lib/opensipscli/modules/tls.py ->
build/bdist.linux-x86_64/egg/opensipscli/modules
copying build/lib/opensipscli/modules/diagnose.py ->
build/bdist.linux-x86_64/egg/opensipscli/modules
copying build/lib/opensipscli/modules/trap.py ->
build/bdist.linux-x86_64/egg/opensipscli/modules
copying build/lib/opensipscli/modules/instance.py ->
build/bdist.linux-x86_64/egg/opensipscli/modules
copying build/lib/opensipscli/modules/user.py ->
build/bdist.linux-x86_64/egg/opensipscli/modules
copying build/lib/opensipscli/modules/mi.py ->
build/bdist.linux-x86_64/egg/opensipscli/modules
copying build/lib/opensipscli/modules/trace.py ->
build/bdist.linux-x86_64/egg/opensipscli/modules
copying build/lib/opensipscli/modules/database.py ->
build/bdist.linux-x86_64/egg/opensipscli/modules
copying build/lib/opensipscli/comm.py ->
build/bdist.linux-x86_64/egg/opensipscli
copying build/lib/opensipscli/db.py ->
build/bdist.linux-x86_64/egg/opensipscli
copying build/lib/opensipscli/cli.py ->
build/bdist.linux-x86_64/egg/opensipscli
copying build/lib/opensipscli/module.py ->
build/bdist.linux-x86_64/egg/opensipscli
copying build/lib/opensipscli/config.py ->
build/bdist.linux-x86_64/egg/opensipscli
creating build/bdist.linux-x86_64/egg/opensipscli/communication
copying build/lib/opensipscli/communication/__init__.py ->
build/bdist.linux-x86_64/egg/opensipscli/communication
copying build/lib/opensipscli/communication/http.py ->
build/bdist.linux-x86_64/egg/opensipscli/communication
copying build/lib/opensipscli/communication/fifo.py ->
build/bdist.linux-x86_64/egg/opensipscli/communication
copying build/lib/opensipscli/communication/jsonrpc_helper.py ->
build/bdist.linux-x86_64/egg/opensipscli/communication
copying build/lib/opensipscli/logger.py ->
build/bdist.linux-x86_64/egg/opensipscli
copying build/lib/opensipscli/defaults.py ->
build/bdist.linux-x86_64/egg/opensipscli
byte-compiling build/bdist.linux-x86_64/egg/opensipscli/__init__.py to
__init__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/opensipscli/main.py to
main.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/opensipscli/modules/__init__.py
to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/opensipscli/modules/tls.py to
tls.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/opensipscli/modules/diagnose.py
to diagnose.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/opensipscli/modules/trap.py to
trap.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/opensipscli/modules/instance.py
to instance.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/opensipscli/modules/user.py to
user.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/opensipscli/modules/mi.py to
mi.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/opensipscli/modules/trace.py to
trace.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/opensipscli/modules/database.py
to database.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/opensipscli/comm.py to
comm.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/opensipscli/db.py to
db.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/opensipscli/cli.py to
cli.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/opensipscli/module.py to
module.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/opensipscli/config.py to
config.cpython-36.pyc
byte-compiling
build/bdist.linux-x86_64/egg/opensipscli/communication/__init__.py to
__init__.cpython-36.pyc
byte-compiling
build/bdist.linux-x86_64/egg/opensipscli/communication/http.py to
http.cpython-36.pyc
byte-compiling
build/bdist.linux-x86_64/egg/opensipscli/communication/fifo.py to
fifo.cpython-36.pyc
byte-compiling
build/bdist.linux-x86_64/egg/opensipscli/communication/jsonrpc_helper.py to
jsonrpc_helper.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/opensipscli/logger.py to
logger.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/opensipscli/defaults.py to
defaults.cpython-36.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
installing scripts to build/bdist.linux-x86_64/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/scripts-3.6
copying and adjusting bin/opensips-cli -> build/scripts-3.6
changing mode of build/scripts-3.6/opensips-cli from 644 to 755
creating build/bdist.linux-x86_64/egg/EGG-INFO/scripts
copying build/scripts-3.6/opensips-cli ->
build/bdist.linux-x86_64/egg/EGG-INFO/scripts
changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/opensips-cli
to 755
copying opensipscli.egg-info/PKG-INFO ->
build/bdist.linux-x86_64/egg/EGG-INFO
copying opensipscli.egg-info/SOURCES.txt ->
build/bdist.linux-x86_64/egg/EGG-INFO
copying opensipscli.egg-info/dependency_links.txt ->
build/bdist.linux-x86_64/egg/EGG-INFO
copying opensipscli.egg-info/requires.txt ->
build/bdist.linux-x86_64/egg/EGG-INFO
copying opensipscli.egg-info/top_level.txt ->
build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
opensipscli.modules.__pycache__.__init__.cpython-36: module references
__path__
creating dist
creating 'dist/opensipscli-0.1.0-py3.6.egg' and adding
'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing opensipscli-0.1.0-py3.6.egg
removing
'/usr/local/lib/python3.6/dist-packages/opensipscli-0.1.0-py3.6.egg' (and
everything under it)
creating /usr/local/lib/python3.6/dist-packages/opensipscli-0.1.0-py3.6.egg
Extracting opensipscli-0.1.0-py3.6.egg to
/usr/local/lib/python3.6/dist-packages
opensipscli 0.1.0 is already the active version in easy-install.pth
Installing opensips-cli script to /usr/local/bin
Installed /usr/local/lib/python3.6/dist-packages/opensipscli-0.1.0-py3.6.egg
Processing dependencies for opensipscli==0.1.0
Searching for SQLAlchemy==1.3.3
Best match: SQLAlchemy 1.3.3
Processing SQLAlchemy-1.3.3-py3.6-linux-x86_64.egg
SQLAlchemy 1.3.3 is already the active version in easy-install.pth
Using
/usr/local/lib/python3.6/dist-packages/SQLAlchemy-1.3.3-py3.6-linux-x86_64.egg
Searching for SQLAlchemy-Utils==0.36.6
Best match: SQLAlchemy-Utils 0.36.6
Adding SQLAlchemy-Utils 0.36.6 to easy-install.pth file
Using /usr/local/lib/python3.6/dist-packages
Searching for mysqlclient==1.3.14
Best match: mysqlclient 1.3.14
Processing mysqlclient-1.3.14-py3.6-linux-x86_64.egg
mysqlclient 1.3.14 is already the active version in easy-install.pth
Using
/usr/local/lib/python3.6/dist-packages/mysqlclient-1.3.14-py3.6-linux-x86_64.egg
Searching for six==1.11.0
Best match: six 1.11.0
Adding six 1.11.0 to easy-install.pth file
Using /usr/lib/python3/dist-packages
Finished processing dependencies for opensipscli==0.1.0
running clean
removed './build/lib/opensipscli/__init__.py'
removed './build/lib/opensipscli/main.py'
removed './build/lib/opensipscli/modules/__init__.py'
removed './build/lib/opensipscli/modules/tls.py'
removed './build/lib/opensipscli/modules/diagnose.py'
removed './build/lib/opensipscli/modules/trap.py'
removed './build/lib/opensipscli/modules/instance.py'
removed './build/lib/opensipscli/modules/user.py'
removed './build/lib/opensipscli/modules/mi.py'
removed './build/lib/opensipscli/modules/trace.py'
removed './build/lib/opensipscli/modules/database.py'
removed directory './build/lib/opensipscli/modules'
removed './build/lib/opensipscli/comm.py'
removed './build/lib/opensipscli/db.py'
removed './build/lib/opensipscli/cli.py'
removed './build/lib/opensipscli/module.py'
removed './build/lib/opensipscli/config.py'
removed './build/lib/opensipscli/communication/__init__.py'
removed './build/lib/opensipscli/communication/http.py'
removed './build/lib/opensipscli/communication/fifo.py'
removed './build/lib/opensipscli/communication/jsonrpc_helper.py'
removed directory './build/lib/opensipscli/communication'
removed './build/lib/opensipscli/logger.py'
removed './build/lib/opensipscli/defaults.py'
removed directory './build/lib/opensipscli'
removed directory './build/lib'
removed './build/scripts-3.6/opensips-cli'
removed directory './build/scripts-3.6'
removed directory './build/bdist.linux-x86_64'
removed directory './build'
removed './dist/opensipscli-0.1.0-py3.6.egg'
removed directory './dist'
removed './opensipscli.egg-info/top_level.txt'
removed './opensipscli.egg-info/PKG-INFO'
removed './opensipscli.egg-info/requires.txt'
removed './opensipscli.egg-info/SOURCES.txt'
removed './opensipscli.egg-info/dependency_links.txt'
removed directory './opensipscli.egg-info'
root at sbc-pstn-els-1:/usr/local/src/opensips-cli#
root at sbc-pstn-els-1:/usr/local/src/opensips-cli#
root at sbc-pstn-els-1:/usr/local/src/opensips-cli#
root at sbc-pstn-els-1:/usr/local/src/opensips-cli#
root at sbc-pstn-els-1:/usr/local/src/opensips-cli#
root at sbc-pstn-els-1:/usr/local/src/opensips-cli#
root at sbc-pstn-els-1:/usr/local/src/opensips-cli#
root at sbc-pstn-els-1:/usr/local/src/opensips-cli#
root at sbc-pstn-els-1:/usr/local/src/opensips-cli#
root at sbc-pstn-els-1:/usr/local/src/opensips-cli# opensips-cli
Traceback (most recent call last):
File "/usr/local/bin/opensips-cli", line 4, in <module>
__import__('pkg_resources').run_script('opensipscli==0.1.0',
'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
As before I can run it OK from the source dir:
python3 bin/opensips-cli
Beyond that I'm rather stuck. Any ideas?
Many thanks
Mark.
On Tue, 21 May 2019 at 16:30, Liviu Chircu <liviu at opensips.org> wrote:
> And this is now fixed as well in the latest version. The new install
> best practice is:
>
> sudo python3 setup.py install clean
>
> Soon enough, this job will be taken over by some nice opensips-cli
> package... *drool*
>
> Liviu Chircu
> OpenSIPS Developer
> http://www.opensips-solutions.com
>
> On 21.05.2019 17:53, Mark Farmer wrote:
> > Great thanks. I can confirm that removing the opensipscli.egg-info
> > directory fixes the issue here also.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
Mark Farmer
farmorg at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200612/be268982/attachment-0001.html>
More information about the Users
mailing list