It seems that genie.query() sometimes gets stuck after a fresh installation. The reason is not known, and my best guess would be that it's related to genie contextual and how it initializes for the first time.
A temporary solution is to simply quit the dangling process genie.query() and run again. I have observed that this can often fix this problem.