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):


 "/Users/sobolev/.pyenv/versions/3.6.6/lib/python3.6/multiprocessing/pool.py", line 119, in worker

result = (True, func(*args, **kwds))


 "/Users/sobolev/Documents/github/wemake-python-styleguide/.venv/lib/python3.6/site-packages/flake8/checker.py", line 682, in _run_checks

return checker.run_checks()


 "/Users/sobolev/Documents/github/wemake-python-styleguide/.venv/lib/python3.6/site-packages/flake8/checker.py", line 612, in run_checks

self.run_ast_checks()


 "/Users/sobolev/Documents/github/wemake-python-styleguide/.venv/lib/python3.6/site-packages/flake8/checker.py", line 520, in run_ast_checks

for (line_number, offset, text, check) in runner:


 "/Users/sobolev/Documents/github/wemake-python-styleguide/wemake_python_styleguide/checker.py", line 178, in run

yield from self._run_checks(self.visitors)


 "/Users/sobolev/Documents/github/wemake-python-styleguide/wemake_python_styleguide/checker.py", line 166, in _run_checks

visitor.run()


 "/Users/sobolev/Documents/github/wemake-python-styleguide/wemake_python_styleguide/visitors/base.py", line 140, in run

self.visit(self.tree)


 "/Users/sobolev/.pyenv/versions/3.6.6/lib/python3.6/ast.py", line 253, in visit

return visitor(node)


 "/Users/sobolev/.pyenv/versions/3.6.6/lib/python3.6/ast.py", line 261, in generic_visit

self.visit(item)


 "/Users/sobolev/.pyenv/versions/3.6.6/lib/python3.6/ast.py", line 253, in visit

return visitor(node)


 "/Users/sobolev/Documents/github/wemake-python-styleguide/wemake_python_styleguide/visitors/ast/naming.py", line 296, in visit_Assign

self._check_assignment(node)


 "/Users/sobolev/Documents/github/wemake-python-styleguide/wemake_python_styleguide/visitors/ast/naming.py", line 274, in _check_assignment

target_names = self._create_target_names(node.targets)


 "/Users/sobolev/Documents/github/wemake-python-styleguide/wemake_python_styleguide/visitors/ast/naming.py", line 269, in _create_target_names

name.id for name in target_names[index]


 "/Users/sobolev/Documents/github/wemake-python-styleguide/wemake_python_styleguide/visitors/ast/naming.py", line 269, in <genexpr>

name.id for name in target_names[index]
AttributeError: 'Attribute' object has no attribute 'id'
