Skip to content

Utils.summary seems to fail with newer versions of ApertureDB #619

@luisremis

Description

@luisremis

root@kbh-bgzng:/# pip show aperturedb
Name: aperturedb
Version: 0.4.50

INFO:     Started server process [12]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
Starting Status Server is up.
Verifying connectivity to somedb.cloud.aperturedata.dev...
[
    {
        "GetStatus": {
            "info": "OK",
            "status": 0,
            "system": "ApertureDB",
            "version": "0.18.15"
        }
    }
]
Done.
╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /opt/venv/lib/python3.10/site-packages/aperturedb/cli/utilities.py:54 in     │
│ execute                                                                      │
│                                                                              │
│    51 │   │   │   CommandTypes.REMOVE_INDEXES, force) and utils.remove_all_i │
│    52 │   }                                                                  │
│    53 │                                                                      │
│ ❱  54 │   available_commands[command]()                                      │
│    55                                                                        │
│    56                                                                        │
│    57 class LogLevel(str, Enum):                                             │
│                                                                              │
│ /opt/venv/lib/python3.10/site-packages/aperturedb/Utils.py:285 in summary    │
│                                                                              │
│   282 │   │   print(f"Total connections types: {total_connections}")         │
│   283 │   │   total_edges = 0                                                │
│   284 │   │   for c in connections_classes:                                  │
│ ❱ 285 │   │   │   total_edges += self._object_summary(c,                     │
│   286 │   │   │   │   │   │   │   │   │   │   │   │   r["connections"]["clas │
│   287 │   │                                                                  │
│   288 │   │   print(f"------------------ Totals -------------------")        │
│                                                                              │
│ /opt/venv/lib/python3.10/site-packages/aperturedb/Utils.py:212 in            │
│ _object_summary                                                              │
│                                                                              │
│   209 │                                                                      │
│   210 │   def _object_summary(self, name, object):                           │
│   211 │   │                                                                  │
│ ❱ 212 │   │   total_elements = object["matched"]                             │
│   213 │   │                                                                  │
│   214 │   │   print(f"{name.ljust(20)}")                                     │
│   215 │   │   if "src" in object:                                            │
╰──────────────────────────────────────────────────────────────────────────────╯
TypeError: list indices must be integers or slices, not str
Starting App: ingestor-embeddings ...
Error in sitecustomize; set PYTHONVERBOSE for traceback:
ModuleNotFoundError: No module named 'typer'
Error in sitecustomize; set PYTHONVERBOSE for traceback:
ModuleNotFoundError: No module named 'typer'
Error in sitecustomize; set PYTHONVERBOSE for traceback:
ModuleNotFoundError: No module named 'typer'
input/adb already exists, skipping archive adb.tar.gz
loading embeddings into ApertureDb
connected to aperture db

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions