You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "greedy_bfs.py", line 103, in
greedyBFS(G, source, dest, heuristics, pos)
File "greedy_bfs.py", line 41, in greedyBFS
goal = greedyBFSUtil(G, source, visited, final_path, dest, 0)
File "greedy_bfs.py", line 24, in greedyBFSUtil
pq,size = getPriorityQueue(G[v])
File "greedy_bfs.py", line 10, in getPriorityQueue
q.put(Ordered_Node(heuristics[node],node))
File "C:\Users\raghu\AppData\Local\Programs\Python\Python36-32\lib\queue.py", line 143, in put
self._put(item)
File "C:\Users\raghu\AppData\Local\Programs\Python\Python36-32\lib\queue.py", line 227, in _put
heappush(self.queue, item)
TypeError: '<' not supported between instances of 'Ordered_Node' and 'Ordered_Node'
The text was updated successfully, but these errors were encountered:
I see you are using python 3.6.
We only support python 2.7 for now. Unfortunately one of the libraries doesn't behave the same way in python 3.6.
Would be easiest if you can install python 2.7
Please tell me how to resolve this error
File "greedy_bfs.py", line 103, in
greedyBFS(G, source, dest, heuristics, pos)
File "greedy_bfs.py", line 41, in greedyBFS
goal = greedyBFSUtil(G, source, visited, final_path, dest, 0)
File "greedy_bfs.py", line 24, in greedyBFSUtil
pq,size = getPriorityQueue(G[v])
File "greedy_bfs.py", line 10, in getPriorityQueue
q.put(Ordered_Node(heuristics[node],node))
File "C:\Users\raghu\AppData\Local\Programs\Python\Python36-32\lib\queue.py", line 143, in put
self._put(item)
File "C:\Users\raghu\AppData\Local\Programs\Python\Python36-32\lib\queue.py", line 227, in _put
heappush(self.queue, item)
TypeError: '<' not supported between instances of 'Ordered_Node' and 'Ordered_Node'
The text was updated successfully, but these errors were encountered: