How to Solve NameError: name 'PriorityQueue' is not defined -- queue
Solution: Import the 'PriorityQueue' module
To Solve the error, add the following line to the top of your code.
from queue import PriorityQueue
For more information:
Python queue PriorityQueue