28mm / blast-radius

Interactive visualizations of Terraform dependency graphs using d3.js
https://28mm.github.io/blast-radius-docs/
MIT License
2.04k stars 257 forks source link

blast fails to run in MacOS #61

Closed karlismelderis closed 5 years ago

karlismelderis commented 5 years ago

Any ideas why I'm getting this error:

$ blast-radius 
Traceback (most recent call last):
  File "/Users/xxx/Library/Python/2.7/bin/blast-radius", line 14, in <module>
    from blastradius.handlers.dot import DotGraph, Format, DotNode
  File "/Users/xxx/Library/Python/2.7/lib/python/site-packages/blastradius/handlers/dot.py", line 391
    print('Error processing format param: ' + 'p', file=sys.stderr)
                                                       ^
SyntaxError: invalid syntax
rorynelsonscott commented 5 years ago

Just a guess, but the examples show pip installing to Python 3, looks like Python 2 is trying to run it. That print statement will not work in 2.7.

karlismelderis commented 5 years ago

true. turned out there are some extra steps I missed to get python 3 in MacOS