[OpenSIPS-Users] Issues running opensips-cli

Tito Cumpen tito at xsvoce.com
Tue Aug 2 05:01:59 UTC 2022


Group,

I am having issues running opensips-cli from the latest git pull. I am
attempting to create the db but noticed that running the cli tool alone
throws an error.

$ opensips-cli
Traceback (most recent call last):
  File
"/usr/local/lib/python3.6/site-packages/importlib_metadata-4.12.0-py3.6.egg/importlib_metadata/_compat.py",
line 9, in <module>
    from typing import Protocol
ImportError: cannot import name 'Protocol'

During handling of the above exception, another exception occurred:

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.6/site-packages/pkg_resources/__init__.py", line
654, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line
1434, in run_script
    exec(code, namespace, namespace)
  File
"/home/azureuser/.local/lib/python3.6/site-packages/opensipscli-0.1.0-py3.6.egg/EGG-INFO/scripts/opensips-cli",
line 3, in <module>
    from opensipscli import main
  File
"/home/azureuser/.local/lib/python3.6/site-packages/opensipscli-0.1.0-py3.6.egg/opensipscli/main.py",
line 22, in <module>
    from opensipscli import cli, defaults
  File
"/home/azureuser/.local/lib/python3.6/site-packages/opensipscli-0.1.0-py3.6.egg/opensipscli/cli.py",
line 31, in <module>
    from opensipscli.modules import *
  File
"/home/azureuser/.local/lib/python3.6/site-packages/opensipscli-0.1.0-py3.6.egg/opensipscli/modules/__init__.py",
line 24, in <module>
    __import__(modname)
  File
"/home/azureuser/.local/lib/python3.6/site-packages/opensipscli-0.1.0-py3.6.egg/opensipscli/modules/database.py",
line 23, in <module>
    from opensipscli.db import (
  File
"/home/azureuser/.local/lib/python3.6/site-packages/opensipscli-0.1.0-py3.6.egg/opensipscli/db.py",
line 37, in <module>
    import sqlalchemy_utils
  File
"/usr/local/lib/python3.6/site-packages/SQLAlchemy_Utils-0.38.3-py3.6.egg/sqlalchemy_utils/__init__.py",
line 1, in <module>
    from .aggregates import aggregated  # noqa
  File
"/usr/local/lib/python3.6/site-packages/SQLAlchemy_Utils-0.38.3-py3.6.egg/sqlalchemy_utils/aggregates.py",
line 374, in <module>
    from .compat import _select_args, get_scalar_subquery
  File
"/usr/local/lib/python3.6/site-packages/SQLAlchemy_Utils-0.38.3-py3.6.egg/sqlalchemy_utils/compat.py",
line 6, in <module>
    from importlib_metadata import metadata
  File
"/usr/local/lib/python3.6/site-packages/importlib_metadata-4.12.0-py3.6.egg/importlib_metadata/__init__.py",
line 17, in <module>
    from . import _adapters, _meta
  File
"/usr/local/lib/python3.6/site-packages/importlib_metadata-4.12.0-py3.6.egg/importlib_metadata/_meta.py",
line 1, in <module>
    from ._compat import Protocol
  File
"/usr/local/lib/python3.6/site-packages/importlib_metadata-4.12.0-py3.6.egg/importlib_metadata/_compat.py",
line 12, in <module>
    from typing_extensions import Protocol  # type: ignore
  File
"/usr/local/lib/python3.6/site-packages/typing_extensions-4.3.0-py3.6.egg/typing_extensions.py",
line 160, in <module>
    class _FinalForm(typing._SpecialForm, _root=True):
AttributeError: module 'typing' has no attribute '_SpecialForm'

I'm not very familiar with python so I am not sure if this is a dependency
issue.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20220801/82579ab4/attachment.html>


More information about the Users mailing list