Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in greedy best first search #35

Open
raghul1998 opened this issue Aug 29, 2018 · 1 comment
Open

Error in greedy best first search #35

raghul1998 opened this issue Aug 29, 2018 · 1 comment

Comments

@raghul1998
Copy link

raghul1998 commented Aug 29, 2018

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'

@sidkothiyal
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants