[OpenSIPS-Users] Facing some issue with opensips while configuration .

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Dec 12 14:42:01 UTC 2023


What is the exact version of Python you have?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
   https://www.siphub.com

On 12.12.2023 13:42, Sasmita Panda wrote:
> I am trying to install opensips-cli on the same version of linux but 
> facing some issue while connecting to the cli interface .
>
>
> Steps I have followed :
> sudo yum install python3 python3-pip python3-devel gcc
> sudo yum install  python3-sqlalchemy python3-pyOpenSSL
> git clone https://github.com/opensips/opensips-cli ~/src/opensips-cli
> cd /root/src/opensips-cli/
> sudo python3 setup.py install clean
>
> */usr/local/bin/opensips-cli
> Traceback (most recent call last):
>   File "/usr/local/bin/opensips-cli", line 4, in <module>
> __import__('pkg_resources').run_script('opensipscli==0.2.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 
> "/usr/local/lib/python3.6/site-packages/opensipscli-0.2.0-py3.6.egg/EGG-INFO/scripts/opensips-cli", 
> line 3, in <module>
>     from opensipscli import main
>   File 
> "/usr/local/lib/python3.6/site-packages/opensipscli-0.2.0-py3.6.egg/opensipscli/main.py", 
> line 22, in <module>
>     from opensipscli import cli, defaults, version
>   File 
> "/usr/local/lib/python3.6/site-packages/opensipscli-0.2.0-py3.6.egg/opensipscli/cli.py", 
> line 32, in <module>
>     from opensipscli.modules import *
>   File 
> "/usr/local/lib/python3.6/site-packages/opensipscli-0.2.0-py3.6.egg/opensipscli/modules/__init__.py", 
> line 24, in <module>
>     __import__(modname)
>   File 
> "/usr/local/lib/python3.6/site-packages/opensipscli-0.2.0-py3.6.egg/opensipscli/modules/database.py", 
> line 23, in <module>
>     from opensipscli.db import (
>   File 
> "/usr/local/lib/python3.6/site-packages/opensipscli-0.2.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.41.1-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.41.1-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.41.1-py3.6.egg/sqlalchemy_utils/compat.py", 
> line 7, in <module>
>     from importlib_metadata import metadata
>   File 
> "/usr/local/lib/python3.6/site-packages/importlib_metadata-7.0.0-py3.6.egg/importlib_metadata/__init__.py", 
> line 7, in <module>
>     import zipp
>   File 
> "/usr/local/lib/python3.6/site-packages/zipp-3.17.0-py3.6.egg/zipp/__init__.py", 
> line 9, in <module>
>     from .py310compat import text_encoding
>   File 
> "/usr/local/lib/python3.6/site-packages/zipp-3.17.0-py3.6.egg/zipp/py310compat.py", 
> line 5
>     def _text_encoding(encoding, stacklevel=2, /):  # pragma: no cover*
>
>
> How should I proceed ?
>
> */Thanks & Regards/*
> /Sasmita Panda/
> /Senior Network Testing and Software Engineer/
> /3CLogic , ph:07827611765/
>
>
> On Tue, Dec 12, 2023 at 4:30 PM Sasmita Panda <spanda at 3clogic.com> wrote:
>
>     Thanks for the reply . I tried opensips 3.2 and the issue didn't
>     come .  opensips 3.4 we have not tested yet . Will do that soon .
>
>     Thank you once again .
>
>     */Thanks & Regards/*
>     /Sasmita Panda/
>     /Senior Network Testing and Software Engineer/
>     /3CLogic , ph:07827611765/
>
>
>     On Tue, Dec 12, 2023 at 3:09 PM Bogdan-Andrei Iancu
>     <bogdan at opensips.org> wrote:
>
>         Hi Sasmita?
>
>         Why the old 2.2? Try 3.4 version, this may be fixed.
>
>         Regards,
>
>         Bogdan-Andrei Iancu
>
>         OpenSIPS Founder and Developer
>            https://www.opensips-solutions.com
>            https://www.siphub.com
>
>         On 12.12.2023 10:48, Sasmita Panda wrote:
>>         HI All ,
>>
>>         I have RedHat machine : VERSION_ID="8.7"
>>         I am trying to install opensips 2.2 .
>>
>>         I have installed mysql
>>         Name         : mysql-server : Version      : 8.0.32
>>         Name         : mysql-devel : Version      : 8.0.32
>>         Name         : mysql-libs: Version      : 8.0.32*/
>>         /*
>>         */
>>         /*
>>         */These are all installed still when I am running make
>>         command on opensips its giving some error while building
>>         mysql module . /*
>>         */
>>         /*
>>         make[1]: Entering directory
>>         '/home/ec2-user/opensips-2.2/modules/db_mysql'
>>         Compiling row.c
>>         Compiling my_con.c
>>         In file included from row.c:29:
>>         my_con.h:36:2: error: unknown type name ‘my_bool’
>>           my_bool null;
>>           ^~~~~~~
>>
>>         Is there any compatibility issue of opensips with mysql ?
>>         What version of mysql I should use ?
>>
>>         */Thanks & Regards/*
>>         /Sasmita Panda/
>>         /Senior Network Testing and Software Engineer/
>>         /3CLogic , ph:07827611765/
>>
>>         _______________________________________________
>>         Users mailing list
>>         Users at lists.opensips.org
>>         http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20231212/4460e117/attachment-0001.html>


More information about the Users mailing list