opensips-cli doesn't start after recent changes

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

opensips-cli doesn't start after recent changes

Dan Pascu

Traceback (most recent call last):
  File "./opensips-cli", line 3, in <module>
    from opensipscli import main
  File "/home/dan/work/opensips/build/opensips-cli/opensipscli/main.py", line 22, in <module>
    from opensipscli import cli, defaults
  File "/home/dan/work/opensips/build/opensips-cli/opensipscli/cli.py", line 31, in <module>
    from opensipscli.modules import *
  File "/home/dan/work/opensips/build/opensips-cli/opensipscli/modules/__init__.py", line 24, in <module>
    __import__(modname)
  File "/home/dan/work/opensips/build/opensips-cli/opensipscli/modules/database.py", line 23, in <module>
    from opensipscli.db import (
  File "/home/dan/work/opensips/build/opensips-cli/opensipscli/db.py", line 38, in <module>
    Base = declarative_base()
NameError: name 'declarative_base' is not defined

--
Dan





_______________________________________________
Devel mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
Reply | Threaded
Open this post in threaded view
|

Re: opensips-cli doesn't start after recent changes

Liviu Chircu
Hmmm... that looks like a "missing SQLAlchemy" situation.  I agree that
it should
start, and simply not provide you the "database" module in this case.

Working on a fix,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 19.06.2019 12:24, Dan Pascu wrote:

> Traceback (most recent call last):
>    File "./opensips-cli", line 3, in <module>
>      from opensipscli import main
>    File "/home/dan/work/opensips/build/opensips-cli/opensipscli/main.py", line 22, in <module>
>      from opensipscli import cli, defaults
>    File "/home/dan/work/opensips/build/opensips-cli/opensipscli/cli.py", line 31, in <module>
>      from opensipscli.modules import *
>    File "/home/dan/work/opensips/build/opensips-cli/opensipscli/modules/__init__.py", line 24, in <module>
>      __import__(modname)
>    File "/home/dan/work/opensips/build/opensips-cli/opensipscli/modules/database.py", line 23, in <module>
>      from opensipscli.db import (
>    File "/home/dan/work/opensips/build/opensips-cli/opensipscli/db.py", line 38, in <module>
>      Base = declarative_base()
> NameError: name 'declarative_base' is not defined
>
> --
> Dan
>
>
>
>
>
> _______________________________________________
> Devel mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

_______________________________________________
Devel mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel