-
Notifications
You must be signed in to change notification settings - Fork 35
Description
Hi,
I am not sure if this is a bug or if I am doing something wrong, which is why I am opening it as a blank issue.
When I call tsp.solve() I get the following error message:
tsp.solve: Traceback (most recent call last):
File "/usr/lib/memgraph/query_modules/tsp.py", line 44, in solve
dm = create_distance_matrix([dict(x.properties.items()) for x in points])
File "/usr/lib/memgraph/query_modules/tsp.py", line 44, in
dm = create_distance_matrix([dict(x.properties.items()) for x in points])
File "/usr/lib/memgraph/python_support/mgp.py", line 299, in items
prop = properties_it.next()
_mgp.LogicErrorError: Logic error.
I've gone through the documentation for tsp and the code all the way down to 'mgp.py'.
My nodes have propertioes 'lng' and 'lat' but as far as i can see there is something wrong when the code is iterating the node to find these properties.
The logfile says following:
[2025-03-14 15:56:51.737] [memgraph_log] [error] Logic error during mg API call: mgp_value for PropertyValue::Type::Point2d doesn't exist. Contact Memgraph team under team@memgraph.com or open a new issue / comment under existing one under github.com/memgraph/memgraph.
[2025-03-14 15:56:51.737] [memgraph_log] [trace] Error message: tsp.solve: Traceback (most recent call last):
File "/usr/lib/memgraph/query_modules/tsp.py", line 44, in solve
dm = create_distance_matrix([dict(x.properties.items()) for x in points])
File "/usr/lib/memgraph/query_modules/tsp.py", line 44, in
dm = create_distance_matrix([dict(x.properties.items()) for x in points])
File "/usr/lib/memgraph/python_support/mgp.py", line 299, in items
prop = properties_it.next()
_mgp.LogicErrorError: Logic error.
The query:
MATCH (n:NO_RoadNode)
WHERE n.nodeid >= 1769300 AND n.nodeid <= 1769305
WITH COLLECT(n) AS nodes
CALL tsp.solve(nodes) YIELD sources, destinations
RETURN sources, destinations;
I run Memgraph 3.0 in Docker on Windows.
Please tell me if you need more information./Thank you
Metadata
Metadata
Assignees
Labels
Type
Projects
Status