Traceback (most recent call last):


 "play.py", line 175, in <module>

AI.run()


 "play.py", line 160, in run

self.play()


 "play.py", line 146, in play

self.target_pos = self.get_target_position_fast(self.state, self.player_pos)


 "play.py", line 111, in get_target_position_fast

b1, b2 = cv2.connectedComponents(m)
AttributeError: 'module' object has no attribute 'connectedComponents'

Traceback (most recent call last):


 "/home/jelle/ans/venv/bin/mypy", line 10, in <module>

sys.exit(console_entry())


 "/home/jelle/ans/venv/lib/python3.6/site-packages/mypy/__main__.py", line 7, in console_entry

main(None)


 "mypy/build.py", line 1767, in __mypyc_generator_helper__


 "mypy/newsemanal/semanal_main.py", line 294, in check_type_arguments


 "mypy/nodes.py", line 273, in accept


 "mypy/newsemanal/semanal_typeargs.py", line 27, in visit_mypy_file__NodeVisitor_glue


 "mypy/newsemanal/semanal_typeargs.py", line 30, in visit_mypy_file


 "mypy/traverser.py", line 33, in visit_mypy_file


 "mypy/nodes.py", line 896, in accept


 "mypy/newsemanal/semanal_typeargs.py", line 39, in visit_class_def__StatementVisitor_glue


 "mypy/newsemanal/semanal_typeargs.py", line 41, in visit_class_def


 "mypy/mixedtraverser.py", line 28, in visit_class_def


 "mypy/traverser.py", line 65, in visit_class_def


 "mypy/nodes.py", line 961, in accept


 "mypy/newsemanal/semanal_typeargs.py", line 43, in visit_block__StatementVisitor_glue


 "mypy/newsemanal/semanal_typeargs.py", line 45, in visit_block


 "mypy/traverser.py", line 37, in visit_block


 "mypy/nodes.py", line 641, in accept


 "mypy/traverser.py", line 51, in visit_func_def__StatementVisitor_glue


 "mypy/traverser.py", line 52, in visit_func_def


 "mypy/newsemanal/semanal_typeargs.py", line 33, in visit_func__MixedTraverserVisitor_glue


 "mypy/newsemanal/semanal_typeargs.py", line 37, in visit_func


 "mypy/mixedtraverser.py", line 23, in visit_func


 "mypy/mixedtraverser.py", line 90, in visit_optional_type


 "mypy/types.py", line 934, in accept


 "mypy/typetraverser.py", line 48, in visit_callable_type__TypeVisitor_glue


 "mypy/typetraverser.py", line 52, in visit_callable_type


 "mypy/types.py", line 625, in accept


 "mypy/newsemanal/semanal_typeargs.py", line 47, in visit_instance__TypeVisitor_glue


 "mypy/newsemanal/semanal_typeargs.py", line 51, in visit_instance
AttributeError: attribute 'defn' of 'TypeInfo' undefined
