Error while Importing SDV-Enterprise library from AKS

Hi SDV Team,

We are able to run SDV-Enterprise locally using the documentation mentioned but getting below error while importing the library in AKS -

Building edf-sdg-hybrid @ file:///app
Built edf-sdg-hybrid @ file:///app
Uninstalled 1 package in 1ms
Installed 1 package in 43ms
Traceback (most recent call last):
File “/app/.venv/bin/uvicorn”, line 10, in
sys.exit(main())
~~~~^^
File “/app/.venv/lib/python3.13/site-packages/click/core.py”, line 1569, in _call_
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File “/app/.venv/lib/python3.13/site-packages/click/core.py”, line 1490, in main
rv = self.invoke(ctx)
File “/app/.venv/lib/python3.13/site-packages/click/core.py”, line 1353, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/app/.venv/lib/python3.13/site-packages/click/core.py”, line 907, in invoke
return callback(*args, **kwargs)
File “/app/.venv/lib/python3.13/site-packages/uvicorn/main.py”, line 440, in main
run(
~~~^
app,
^^^^
…<48 lines>…
reset_contextvars=reset_contextvars,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File “/app/.venv/lib/python3.13/site-packages/uvicorn/main.py”, line 609, in run
config.load_app()
~~~~~~~~~~~~~~~^^
File “/app/.venv/lib/python3.13/site-packages/uvicorn/config.py”, line 428, in load_app
return import_from_string(self.app)
File “/app/.venv/lib/python3.13/site-packages/uvicorn/importer.py”, line 19, in import_from_string
module = importlib.import_module(module_str)
File “/usr/local/lib/python3.13/importlib/_init_.py”, line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “<frozen importlib._bootstrap>”, line 1387, in _gcd_import
File “<frozen importlib._bootstrap>”, line 1360, in _find_and_load
File “<frozen importlib._bootstrap>”, line 1331, in _find_and_load_unlocked
File “<frozen importlib._bootstrap>”, line 935, in _load_unlocked
File “<frozen importlib._bootstrap_external>”, line 1026, in exec_module
File “<frozen importlib._bootstrap>”, line 488, in _call_with_frames_removed
File “/app/app/main.py”, line 19, in
from app.agents.multi_table_agent import MultiTableAgent
File “/app/app/agents/_init_.py”, line 3, in
from app.agents.sdv_multi_table_agent import SDVMultiTableAgent
File “/app/app/agents/sdv_multi_table_agent.py”, line 3, in
from app.models.sdv_adapter import SDVAdapter
File “/app/app/models/sdv_adapter.py”, line 8, in
from sdv.cag import (
…<6 lines>…
)
ImportError: cannot import name ‘ChainedInequality’ from ‘sdv.cag’ (/app/.venv/lib/python3.13/site-packages/sdv/cag/_init_.py)

We are using python version 3.13 in AKS.

Please let us know if any other details details required from our end.

Thanks and regards,

Rameshwar Gupta

Hi Team,

This is fixed, we had to make some changes to the dockerfile.
Figured that we needed to install sdv-installer inside the venv.

1 Like

Hi @RamG91, glad you were able to find a workaround. Yes, the SDV Installer would be needed in order to complete a full installation of SDV Enterprise.

I also wanted to point out that we recently released SDV 2.0 and you may have been doing the installation during the same time. By default, the installation command will get you SDV 2.0 but you can explicitly request the prior 0.53 using the --version flag until the team is ready to upgrade.

sdv-installer install --username user@company.com --license-key 123 --version 0.53.0

For more information, see our Release Announcement.

1 Like