Skip to content

Computation failed on loading nodes using nx-arango #15

@bm777

Description

@bm777

in python when trying to load a large nodes, it throw an error

Nx python code

import nx_arangodb as nxadb
from arango import ArangoClient

db = ArangoClient(hosts=host, request_timeout=300).db(username="root", password="****", verify=True)
G_adb = nxadb.DiGraph(name="graph_name", db=db)

nodes = G_adb.nodes()

it throws this error:

thread 'tokio-runtime-worker' panicked at [/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arangors-graph-exporter-0.0.9/src/sharding.rs:279:26](https://vscode-remote+ssh-002dremote-002b34-002e136-002e179-002e83.vscode-resource.vscode-cdn.net/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arangors-graph-exporter-0.0.9/src/sharding.rs:279:26):
Could not send to channel!: SendError { .. }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'tokio-runtime-worker' panicked at [/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arangors-graph-exporter-0.0.9/src/sharding.rs:279:26](https://vscode-remote+ssh-002dremote-002b34-002e136-002e179-002e83.vscode-resource.vscode-cdn.net/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arangors-graph-exporter-0.0.9/src/sharding.rs:279:26):
Could not send to channel!: SendError { .. }
thread 'tokio-runtime-worker' panicked at [/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arangors-graph-exporter-0.0.9/src/sharding.rs:279:26](https://vscode-remote+ssh-002dremote-002b34-002e136-002e179-002e83.vscode-resource.vscode-cdn.net/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arangors-graph-exporter-0.0.9/src/sharding.rs:279:26):
Could not send to channel!: SendError { .. }
thread 'tokio-runtime-worker' panicked at [/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arangors-graph-exporter-0.0.9/src/sharding.rs:279:26](https://vscode-remote+ssh-002dremote-002b34-002e136-002e179-002e83.vscode-resource.vscode-cdn.net/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arangors-graph-exporter-0.0.9/src/sharding.rs:279:26):
Could not send to channel!: SendError { .. }
thread 'tokio-runtime-worker' panicked at [/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arangors-graph-exporter-0.0.9/src/sharding.rs:279:26](https://vscode-remote+ssh-002dremote-002b34-002e136-002e179-002e83.vscode-resource.vscode-cdn.net/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arangors-graph-exporter-0.0.9/src/sharding.rs:279:26):
Could not send to channel!: SendError { .. }
thread 'tokio-runtime-worker' panicked at [/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arangors-graph-exporter-0.0.9/src/sharding.rs:279:26](https://vscode-remote+ssh-002dremote-002b34-002e136-002e179-002e83.vscode-resource.vscode-cdn.net/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arangors-graph-exporter-0.0.9/src/sharding.rs:279:26):
Could not send to channel!: SendError { .. }
thread '<unnamed>' panicked at [/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arangors-graph-exporter-0.0.9/src/sharding.rs:285:21](https://vscode-remote+ssh-002dremote-002b34-002e136-002e179-002e83.vscode-resource.vscode-cdn.net/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arangors-graph-exporter-0.0.9/src/sharding.rs:285:21):
called `Result::unwrap()` on an `Err` value: JoinError::Panic(Id(529), ...)
NetworkX code error: Computation failed

I have 8 million edges and 1.4 million nodes with data (1.4GB) in ArangoDB

How to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions