<div dir="ltr"><div dir="ltr"><div dir="ltr">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.<br><div>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.</div><div><br></div><div>This is the install log & error:</div><div><br></div><div><div>/usr/local/src/opensips-cli# python3 setup.py install clean</div><div>/usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'</div><div>  warnings.warn(msg)</div><div>running install</div><div>running bdist_egg</div><div>running egg_info</div><div>creating opensipscli.egg-info</div><div>writing opensipscli.egg-info/PKG-INFO</div><div>writing dependency_links to opensipscli.egg-info/dependency_links.txt</div><div>writing requirements to opensipscli.egg-info/requires.txt</div><div>writing top-level names to opensipscli.egg-info/top_level.txt</div><div>writing manifest file 'opensipscli.egg-info/SOURCES.txt'</div><div>reading manifest file 'opensipscli.egg-info/SOURCES.txt'</div><div>reading manifest template 'MANIFEST.in'</div><div>warning: no files found matching 'MANIFEST'</div><div>writing manifest file 'opensipscli.egg-info/SOURCES.txt'</div><div>installing library code to build/bdist.linux-x86_64/egg</div><div>running install_lib</div><div>running build_py</div><div>creating build</div><div>creating build/lib</div><div>creating build/lib/opensipscli</div><div>copying opensipscli/__init__.py -> build/lib/opensipscli</div><div>copying opensipscli/main.py -> build/lib/opensipscli</div><div>copying opensipscli/comm.py -> build/lib/opensipscli</div><div>copying opensipscli/db.py -> build/lib/opensipscli</div><div>copying opensipscli/cli.py -> build/lib/opensipscli</div><div>copying opensipscli/module.py -> build/lib/opensipscli</div><div>copying opensipscli/config.py -> build/lib/opensipscli</div><div>copying opensipscli/logger.py -> build/lib/opensipscli</div><div>copying opensipscli/defaults.py -> build/lib/opensipscli</div><div>creating build/lib/opensipscli/modules</div><div>copying opensipscli/modules/__init__.py -> build/lib/opensipscli/modules</div><div>copying opensipscli/modules/tls.py -> build/lib/opensipscli/modules</div><div>copying opensipscli/modules/diagnose.py -> build/lib/opensipscli/modules</div><div>copying opensipscli/modules/trap.py -> build/lib/opensipscli/modules</div><div>copying opensipscli/modules/instance.py -> build/lib/opensipscli/modules</div><div>copying opensipscli/modules/user.py -> build/lib/opensipscli/modules</div><div>copying opensipscli/modules/mi.py -> build/lib/opensipscli/modules</div><div>copying opensipscli/modules/trace.py -> build/lib/opensipscli/modules</div><div>copying opensipscli/modules/database.py -> build/lib/opensipscli/modules</div><div>creating build/lib/opensipscli/communication</div><div>copying opensipscli/communication/__init__.py -> build/lib/opensipscli/communication</div><div>copying opensipscli/communication/http.py -> build/lib/opensipscli/communication</div><div>copying opensipscli/communication/fifo.py -> build/lib/opensipscli/communication</div><div>copying opensipscli/communication/jsonrpc_helper.py -> build/lib/opensipscli/communication</div><div>creating build/bdist.linux-x86_64</div><div>creating build/bdist.linux-x86_64/egg</div><div>creating build/bdist.linux-x86_64/egg/opensipscli</div><div>copying build/lib/opensipscli/__init__.py -> build/bdist.linux-x86_64/egg/opensipscli</div><div>copying build/lib/opensipscli/main.py -> build/bdist.linux-x86_64/egg/opensipscli</div><div>creating build/bdist.linux-x86_64/egg/opensipscli/modules</div><div>copying build/lib/opensipscli/modules/__init__.py -> build/bdist.linux-x86_64/egg/opensipscli/modules</div><div>copying build/lib/opensipscli/modules/tls.py -> build/bdist.linux-x86_64/egg/opensipscli/modules</div><div>copying build/lib/opensipscli/modules/diagnose.py -> build/bdist.linux-x86_64/egg/opensipscli/modules</div><div>copying build/lib/opensipscli/modules/trap.py -> build/bdist.linux-x86_64/egg/opensipscli/modules</div><div>copying build/lib/opensipscli/modules/instance.py -> build/bdist.linux-x86_64/egg/opensipscli/modules</div><div>copying build/lib/opensipscli/modules/user.py -> build/bdist.linux-x86_64/egg/opensipscli/modules</div><div>copying build/lib/opensipscli/modules/mi.py -> build/bdist.linux-x86_64/egg/opensipscli/modules</div><div>copying build/lib/opensipscli/modules/trace.py -> build/bdist.linux-x86_64/egg/opensipscli/modules</div><div>copying build/lib/opensipscli/modules/database.py -> build/bdist.linux-x86_64/egg/opensipscli/modules</div><div>copying build/lib/opensipscli/comm.py -> build/bdist.linux-x86_64/egg/opensipscli</div><div>copying build/lib/opensipscli/db.py -> build/bdist.linux-x86_64/egg/opensipscli</div><div>copying build/lib/opensipscli/cli.py -> build/bdist.linux-x86_64/egg/opensipscli</div><div>copying build/lib/opensipscli/module.py -> build/bdist.linux-x86_64/egg/opensipscli</div><div>copying build/lib/opensipscli/config.py -> build/bdist.linux-x86_64/egg/opensipscli</div><div>creating build/bdist.linux-x86_64/egg/opensipscli/communication</div><div>copying build/lib/opensipscli/communication/__init__.py -> build/bdist.linux-x86_64/egg/opensipscli/communication</div><div>copying build/lib/opensipscli/communication/http.py -> build/bdist.linux-x86_64/egg/opensipscli/communication</div><div>copying build/lib/opensipscli/communication/fifo.py -> build/bdist.linux-x86_64/egg/opensipscli/communication</div><div>copying build/lib/opensipscli/communication/jsonrpc_helper.py -> build/bdist.linux-x86_64/egg/opensipscli/communication</div><div>copying build/lib/opensipscli/logger.py -> build/bdist.linux-x86_64/egg/opensipscli</div><div>copying build/lib/opensipscli/defaults.py -> build/bdist.linux-x86_64/egg/opensipscli</div><div>byte-compiling build/bdist.linux-x86_64/egg/opensipscli/__init__.py to __init__.cpython-36.pyc</div><div>byte-compiling build/bdist.linux-x86_64/egg/opensipscli/main.py to main.cpython-36.pyc</div><div>byte-compiling build/bdist.linux-x86_64/egg/opensipscli/modules/__init__.py to __init__.cpython-36.pyc</div><div>byte-compiling build/bdist.linux-x86_64/egg/opensipscli/modules/tls.py to tls.cpython-36.pyc</div><div>byte-compiling build/bdist.linux-x86_64/egg/opensipscli/modules/diagnose.py to diagnose.cpython-36.pyc</div><div>byte-compiling build/bdist.linux-x86_64/egg/opensipscli/modules/trap.py to trap.cpython-36.pyc</div><div>byte-compiling build/bdist.linux-x86_64/egg/opensipscli/modules/instance.py to instance.cpython-36.pyc</div><div>byte-compiling build/bdist.linux-x86_64/egg/opensipscli/modules/user.py to user.cpython-36.pyc</div><div>byte-compiling build/bdist.linux-x86_64/egg/opensipscli/modules/mi.py to mi.cpython-36.pyc</div><div>byte-compiling build/bdist.linux-x86_64/egg/opensipscli/modules/trace.py to trace.cpython-36.pyc</div><div>byte-compiling build/bdist.linux-x86_64/egg/opensipscli/modules/database.py to database.cpython-36.pyc</div><div>byte-compiling build/bdist.linux-x86_64/egg/opensipscli/comm.py to comm.cpython-36.pyc</div><div>byte-compiling build/bdist.linux-x86_64/egg/opensipscli/db.py to db.cpython-36.pyc</div><div>byte-compiling build/bdist.linux-x86_64/egg/opensipscli/cli.py to cli.cpython-36.pyc</div><div>byte-compiling build/bdist.linux-x86_64/egg/opensipscli/module.py to module.cpython-36.pyc</div><div>byte-compiling build/bdist.linux-x86_64/egg/opensipscli/config.py to config.cpython-36.pyc</div><div>byte-compiling build/bdist.linux-x86_64/egg/opensipscli/communication/__init__.py to __init__.cpython-36.pyc</div><div>byte-compiling build/bdist.linux-x86_64/egg/opensipscli/communication/http.py to http.cpython-36.pyc</div><div>byte-compiling build/bdist.linux-x86_64/egg/opensipscli/communication/fifo.py to fifo.cpython-36.pyc</div><div>byte-compiling build/bdist.linux-x86_64/egg/opensipscli/communication/jsonrpc_helper.py to jsonrpc_helper.cpython-36.pyc</div><div>byte-compiling build/bdist.linux-x86_64/egg/opensipscli/logger.py to logger.cpython-36.pyc</div><div>byte-compiling build/bdist.linux-x86_64/egg/opensipscli/defaults.py to defaults.cpython-36.pyc</div><div>creating build/bdist.linux-x86_64/egg/EGG-INFO</div><div>installing scripts to build/bdist.linux-x86_64/egg/EGG-INFO/scripts</div><div>running install_scripts</div><div>running build_scripts</div><div>creating build/scripts-3.6</div><div>copying and adjusting bin/opensips-cli -> build/scripts-3.6</div><div>changing mode of build/scripts-3.6/opensips-cli from 644 to 755</div><div>creating build/bdist.linux-x86_64/egg/EGG-INFO/scripts</div><div>copying build/scripts-3.6/opensips-cli -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts</div><div>changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/opensips-cli to 755</div><div>copying opensipscli.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO</div><div>copying opensipscli.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO</div><div>copying opensipscli.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO</div><div>copying opensipscli.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO</div><div>copying opensipscli.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO</div><div>zip_safe flag not set; analyzing archive contents...</div><div>opensipscli.modules.__pycache__.__init__.cpython-36: module references __path__</div><div>creating dist</div><div>creating 'dist/opensipscli-0.1.0-py3.6.egg' and adding 'build/bdist.linux-x86_64/egg' to it</div><div>removing 'build/bdist.linux-x86_64/egg' (and everything under it)</div><div>Processing opensipscli-0.1.0-py3.6.egg</div><div>removing '/usr/local/lib/python3.6/dist-packages/opensipscli-0.1.0-py3.6.egg' (and everything under it)</div><div>creating /usr/local/lib/python3.6/dist-packages/opensipscli-0.1.0-py3.6.egg</div><div>Extracting opensipscli-0.1.0-py3.6.egg to /usr/local/lib/python3.6/dist-packages</div><div>opensipscli 0.1.0 is already the active version in easy-install.pth</div><div>Installing opensips-cli script to /usr/local/bin</div><div><br></div><div>Installed /usr/local/lib/python3.6/dist-packages/opensipscli-0.1.0-py3.6.egg</div><div>Processing dependencies for opensipscli==0.1.0</div><div>Searching for SQLAlchemy==1.3.3</div><div>Best match: SQLAlchemy 1.3.3</div><div>Processing SQLAlchemy-1.3.3-py3.6-linux-x86_64.egg</div><div>SQLAlchemy 1.3.3 is already the active version in easy-install.pth</div><div><br></div><div>Using /usr/local/lib/python3.6/dist-packages/SQLAlchemy-1.3.3-py3.6-linux-x86_64.egg</div><div>Searching for SQLAlchemy-Utils==0.36.6</div><div>Best match: SQLAlchemy-Utils 0.36.6</div><div>Adding SQLAlchemy-Utils 0.36.6 to easy-install.pth file</div><div><br></div><div>Using /usr/local/lib/python3.6/dist-packages</div><div>Searching for mysqlclient==1.3.14</div><div>Best match: mysqlclient 1.3.14</div><div>Processing mysqlclient-1.3.14-py3.6-linux-x86_64.egg</div><div>mysqlclient 1.3.14 is already the active version in easy-install.pth</div><div><br></div><div>Using /usr/local/lib/python3.6/dist-packages/mysqlclient-1.3.14-py3.6-linux-x86_64.egg</div><div>Searching for six==1.11.0</div><div>Best match: six 1.11.0</div><div>Adding six 1.11.0 to easy-install.pth file</div><div><br></div><div>Using /usr/lib/python3/dist-packages</div><div>Finished processing dependencies for opensipscli==0.1.0</div><div>running clean</div><div>removed './build/lib/opensipscli/__init__.py'</div><div>removed './build/lib/opensipscli/main.py'</div><div>removed './build/lib/opensipscli/modules/__init__.py'</div><div>removed './build/lib/opensipscli/modules/tls.py'</div><div>removed './build/lib/opensipscli/modules/diagnose.py'</div><div>removed './build/lib/opensipscli/modules/trap.py'</div><div>removed './build/lib/opensipscli/modules/instance.py'</div><div>removed './build/lib/opensipscli/modules/user.py'</div><div>removed './build/lib/opensipscli/modules/mi.py'</div><div>removed './build/lib/opensipscli/modules/trace.py'</div><div>removed './build/lib/opensipscli/modules/database.py'</div><div>removed directory './build/lib/opensipscli/modules'</div><div>removed './build/lib/opensipscli/comm.py'</div><div>removed './build/lib/opensipscli/db.py'</div><div>removed './build/lib/opensipscli/cli.py'</div><div>removed './build/lib/opensipscli/module.py'</div><div>removed './build/lib/opensipscli/config.py'</div><div>removed './build/lib/opensipscli/communication/__init__.py'</div><div>removed './build/lib/opensipscli/communication/http.py'</div><div>removed './build/lib/opensipscli/communication/fifo.py'</div><div>removed './build/lib/opensipscli/communication/jsonrpc_helper.py'</div><div>removed directory './build/lib/opensipscli/communication'</div><div>removed './build/lib/opensipscli/logger.py'</div><div>removed './build/lib/opensipscli/defaults.py'</div><div>removed directory './build/lib/opensipscli'</div><div>removed directory './build/lib'</div><div>removed './build/scripts-3.6/opensips-cli'</div><div>removed directory './build/scripts-3.6'</div><div>removed directory './build/bdist.linux-x86_64'</div><div>removed directory './build'</div><div>removed './dist/opensipscli-0.1.0-py3.6.egg'</div><div>removed directory './dist'</div><div>removed './opensipscli.egg-info/top_level.txt'</div><div>removed './opensipscli.egg-info/PKG-INFO'</div><div>removed './opensipscli.egg-info/requires.txt'</div><div>removed './opensipscli.egg-info/SOURCES.txt'</div><div>removed './opensipscli.egg-info/dependency_links.txt'</div><div>removed directory './opensipscli.egg-info'</div><div>root@sbc-pstn-els-1:/usr/local/src/opensips-cli#</div><div>root@sbc-pstn-els-1:/usr/local/src/opensips-cli#</div><div>root@sbc-pstn-els-1:/usr/local/src/opensips-cli#</div><div>root@sbc-pstn-els-1:/usr/local/src/opensips-cli#</div><div>root@sbc-pstn-els-1:/usr/local/src/opensips-cli#</div><div>root@sbc-pstn-els-1:/usr/local/src/opensips-cli#</div><div>root@sbc-pstn-els-1:/usr/local/src/opensips-cli#</div><div>root@sbc-pstn-els-1:/usr/local/src/opensips-cli#</div><div>root@sbc-pstn-els-1:/usr/local/src/opensips-cli#</div><div>root@sbc-pstn-els-1:/usr/local/src/opensips-cli# opensips-cli</div><div>Traceback (most recent call last):</div><div>  File "/usr/local/bin/opensips-cli", line 4, in <module></div><div>    __import__('pkg_resources').run_script('opensipscli==0.1.0', 'opensips-cli')</div><div>  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 658, in run_script</div><div>    self.require(requires)[0].run_script(script_name, ns)</div><div>  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1429, in run_script</div><div>    .format(**locals()),</div><div>pkg_resources.ResolutionError: Script 'scripts/opensips-cli' not found in metadata at None</div></div><div><br></div><div>As before I can run it OK from the source dir:</div><div><br></div><div>python3 bin/opensips-cli<br></div><div><br></div><div>Beyond that I'm rather stuck. Any ideas?</div><div><br></div><div>Many thanks</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 16:30, Liviu Chircu <<a href="mailto:liviu@opensips.org">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">And this is now fixed as well in the latest version.  The new install <br>
best practice is:<br>
<br>
sudo python3 setup.py install clean<br>
<br>
Soon enough, this job will be taken over by some nice opensips-cli <br>
package... *drool*<br>
<br>
Liviu Chircu<br>
OpenSIPS Developer<br>
<a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">http://www.opensips-solutions.com</a><br>
<br>
On 21.05.2019 17:53, Mark Farmer wrote:<br>
> Great thanks. I can confirm that removing the opensipscli.egg-info <br>
> directory fixes the issue here also.<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">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">farmorg@gmail.com</a></div>