<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Hi folks,</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">An explanation + solution for this
      specific CLI issue related to <b>Python 3.6</b> + the <b>zipp</b>
      package version can be found on the CLI tracker, part of <a
href="https://github.com/OpenSIPS/opensips-cli/issues/113#issuecomment-1861311868">issue
        #113</a></div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Hope this helps,</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 13.12.2023 08:45, Sasmita Panda
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CALf-Q44t40ZFk4CqTiTYDGVEd57jahPitLThSH56mZQ9GnPK2g@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">python3 -V<br>
        Python 3.6.8
        <div><br>
        </div>
        <div>This is the exact version I have . </div>
        <div><br clear="all">
          <div>
            <div dir="ltr" class="gmail_signature"
              data-smartmail="gmail_signature">
              <div dir="ltr">
                <div>
                  <div dir="ltr"><b><i>Thanks & Regards</i></b>
                    <div><i>Sasmita Panda</i></div>
                    <div><i>Senior Network Testing and Software Engineer</i></div>
                    <div><i>3CLogic , ph:07827611765</i></div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Tue, Dec 12, 2023 at
          8:12 PM Bogdan-Andrei Iancu <<a
            href="mailto:bogdan@opensips.org" moz-do-not-send="true"
            class="moz-txt-link-freetext">bogdan@opensips.org</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div> <font face="monospace">What is the exact version of
              Python you have?<br>
              <br>
              Regards,<br>
            </font>
            <pre cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com" target="_blank"
            moz-do-not-send="true" class="moz-txt-link-freetext">https://www.opensips-solutions.com</a>
  <a href="https://www.siphub.com" target="_blank"
            moz-do-not-send="true" class="moz-txt-link-freetext">https://www.siphub.com</a></pre>
            <div>On 12.12.2023 13:42, Sasmita Panda wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">I am trying to install opensips-cli on the
                same version of linux but facing some issue while
                connecting to the cli interface .
                <div><br>
                </div>
                <div>
                  <div><br>
                    Steps I have followed : </div>
                  <div>sudo yum install python3 python3-pip
                    python3-devel gcc<br>
                    sudo yum install  python3-sqlalchemy
                    python3-pyOpenSSL<br>
                  </div>
                  <div>git clone <a
                      href="https://github.com/opensips/opensips-cli"
                      target="_blank" moz-do-not-send="true"
                      class="moz-txt-link-freetext">https://github.com/opensips/opensips-cli</a>
                    ~/src/opensips-cli<br>
                  </div>
                  <div>cd /root/src/opensips-cli/<br>
                  </div>
                  <div>sudo python3 setup.py install clean</div>
                  <div><br>
                  </div>
                  <div><b>/usr/local/bin/opensips-cli<br>
                      Traceback (most recent call last):<br>
                        File "/usr/local/bin/opensips-cli", line 4, in
                      <module><br>
                         
                      __import__('pkg_resources').run_script('opensipscli==0.2.0',
                      'opensips-cli')<br>
                        File
                      "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py",
                      line 654, in run_script<br>
                         
                      self.require(requires)[0].run_script(script_name,
                      ns)<br>
                        File
                      "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py",
                      line 1434, in run_script<br>
                          exec(code, namespace, namespace)<br>
                        File
"/usr/local/lib/python3.6/site-packages/opensipscli-0.2.0-py3.6.egg/EGG-INFO/scripts/opensips-cli",
                      line 3, in <module><br>
                          from opensipscli import main<br>
                        File
"/usr/local/lib/python3.6/site-packages/opensipscli-0.2.0-py3.6.egg/opensipscli/main.py",
                      line 22, in <module><br>
                          from opensipscli import cli, defaults, version<br>
                        File
"/usr/local/lib/python3.6/site-packages/opensipscli-0.2.0-py3.6.egg/opensipscli/cli.py",
                      line 32, in <module><br>
                          from opensipscli.modules import *<br>
                        File
"/usr/local/lib/python3.6/site-packages/opensipscli-0.2.0-py3.6.egg/opensipscli/modules/__init__.py",
                      line 24, in <module><br>
                          __import__(modname)<br>
                        File
"/usr/local/lib/python3.6/site-packages/opensipscli-0.2.0-py3.6.egg/opensipscli/modules/database.py",
                      line 23, in <module><br>
                          from opensipscli.db import (<br>
                        File
"/usr/local/lib/python3.6/site-packages/opensipscli-0.2.0-py3.6.egg/opensipscli/db.py",
                      line 37, in <module><br>
                          import sqlalchemy_utils<br>
                        File
"/usr/local/lib/python3.6/site-packages/SQLAlchemy_Utils-0.41.1-py3.6.egg/sqlalchemy_utils/__init__.py",
                      line 1, in <module><br>
                          from .aggregates import aggregated  # noqa<br>
                        File
"/usr/local/lib/python3.6/site-packages/SQLAlchemy_Utils-0.41.1-py3.6.egg/sqlalchemy_utils/aggregates.py",
                      line 374, in <module><br>
                          from .compat import _select_args,
                      get_scalar_subquery<br>
                        File
"/usr/local/lib/python3.6/site-packages/SQLAlchemy_Utils-0.41.1-py3.6.egg/sqlalchemy_utils/compat.py",
                      line 7, in <module><br>
                          from importlib_metadata import metadata<br>
                        File
"/usr/local/lib/python3.6/site-packages/importlib_metadata-7.0.0-py3.6.egg/importlib_metadata/__init__.py",
                      line 7, in <module><br>
                          import zipp<br>
                        File
"/usr/local/lib/python3.6/site-packages/zipp-3.17.0-py3.6.egg/zipp/__init__.py",
                      line 9, in <module><br>
                          from .py310compat import text_encoding<br>
                        File
"/usr/local/lib/python3.6/site-packages/zipp-3.17.0-py3.6.egg/zipp/py310compat.py",
                      line 5<br>
                          def _text_encoding(encoding, stacklevel=2, /):
                       # pragma: no cover</b><br>
                    <div><br>
                    </div>
                    <div><br>
                    </div>
                    <div>How should I proceed ?</div>
                    <div><br clear="all">
                      <div>
                        <div dir="ltr" class="gmail_signature">
                          <div dir="ltr">
                            <div>
                              <div dir="ltr"><b><i>Thanks & Regards</i></b>
                                <div><i>Sasmita Panda</i></div>
                                <div><i>Senior Network Testing and
                                    Software Engineer</i></div>
                                <div><i>3CLogic , ph:07827611765</i></div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <p><br>
    </p>
    <pre class="moz-signature" cols="72">-- 
Liviu Chircu
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/liviuchircu">www.twitter.com/liviuchircu</a> | <a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a>
OpenSIPS eBootcamp, Nov 6-17 | <a class="moz-txt-link-abbreviated" href="http://www.opensips.org/training">www.opensips.org/training</a></pre>
  </body>
</html>