BlackWidow
BlackWidow copied to clipboard
error parsing package setuptools
python -m blackwidow.web setuptools
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/blackwidow/web.py", line 99, in <module>
web = Web(project_path, exclude=args.exclude)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/blackwidow/web.py", line 27, in __init__
Node(file, package_root=self.package_root) for file in self.files
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/blackwidow/web.py", line 27, in <listcomp>
Node(file, package_root=self.package_root) for file in self.files
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/blackwidow/node.py", line 21, in __init__
self.edges = imported_modules(filename, package_root=package_root)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/blackwidow/imports.py", line 52, in imported_modules
tree = ast.parse(fd.read(), filename=filename)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/ast.py", line 35, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/tests/script-with-bom.py", line 1
# -*- coding: utf-8 -*-
^
SyntaxError: invalid character in identifier