Traceback (most recent call last):


 "setup.py", line 101, in <module>

cymunk_dirname = loader.path if hasattr(loader, 'path') else loader.filename
AttributeError: 'NoneType' object has no attribute 'filename'

Traceback (most recent call last):


 "/mnt/code/venvs/mypy_venv/bin/mypy", line 6, in <module>

main(__file__)


 "/mnt/code/venvs/mypy_venv/lib/python3.5/site-packages/mypy/main.py", line 46, in main

res = type_check_only(sources, bin_dir, options)


 "/mnt/code/venvs/mypy_venv/lib/python3.5/site-packages/mypy/main.py", line 93, in type_check_only

options=options)


 "/mnt/code/venvs/mypy_venv/lib/python3.5/site-packages/mypy/build.py", line 188, in build

graph = dispatch(sources, manager)


 "/mnt/code/venvs/mypy_venv/lib/python3.5/site-packages/mypy/build.py", line 1587, in dispatch

graph = load_graph(sources, manager)


 "/mnt/code/venvs/mypy_venv/lib/python3.5/site-packages/mypy/build.py", line 1670, in load_graph

root_source=True)


 "/mnt/code/venvs/mypy_venv/lib/python3.5/site-packages/mypy/build.py", line 1259, in __init__

self.parse_file()


 "/mnt/code/venvs/mypy_venv/lib/python3.5/site-packages/mypy/build.py", line 1442, in parse_file

first.visit_file(self.tree, self.xpath, self.id, self.options)


 "/usr/lib/python3.5/contextlib.py", line 77, in __exit__

self.gen.throw(type, value, traceback)


 "/mnt/code/venvs/mypy_venv/lib/python3.5/site-packages/mypy/build.py", line 1347, in wrap_context

yield


 "/mnt/code/venvs/mypy_venv/lib/python3.5/site-packages/mypy/build.py", line 1442, in parse_file

first.visit_file(self.tree, self.xpath, self.id, self.options)


 "/mnt/code/venvs/mypy_venv/lib/python3.5/site-packages/mypy/semanal.py", line 3423, in visit_file

d.accept(self)


 "/mnt/code/venvs/mypy_venv/lib/python3.5/site-packages/mypy/nodes.py", line 1007, in accept

return visitor.visit_try_stmt(self)


 "/mnt/code/venvs/mypy_venv/lib/python3.5/site-packages/mypy/semanal.py", line 3614, in visit_try_stmt

self.sem.analyze_try_stmt(s, self, add_global=self.sem.is_module_scope())


 "/mnt/code/venvs/mypy_venv/lib/python3.5/site-packages/mypy/semanal.py", line 2632, in analyze_try_stmt

handler.accept(visitor)


 "/mnt/code/venvs/mypy_venv/lib/python3.5/site-packages/mypy/nodes.py", line 811, in accept

return visitor.visit_block(self)


 "/mnt/code/venvs/mypy_venv/lib/python3.5/site-packages/mypy/semanal.py", line 3458, in visit_block

node.accept(self)


 "/mnt/code/venvs/mypy_venv/lib/python3.5/site-packages/mypy/nodes.py", line 750, in accept

return visitor.visit_class_def(self)


 "/mnt/code/venvs/mypy_venv/lib/python3.5/site-packages/mypy/semanal.py", line 3526, in visit_class_def

self.sem.check_no_global(cdef.name, cdef)


 "/mnt/code/venvs/mypy_venv/lib/python3.5/site-packages/mypy/semanal.py", line 3318, in check_no_global

self.name_already_defined(n, ctx, self.globals[n])


 "/mnt/code/venvs/mypy_venv/lib/python3.5/site-packages/mypy/semanal.py", line 3330, in name_already_defined

extra_msg = ' on line {}'.format(original_ctx.node.get_line())
AttributeError: 'NoneType' object has no attribute 'get_line'
