28mm / blast-radius

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

Local install fails to find templates #90

Open clebio opened 3 years ago

clebio commented 3 years ago

I'd like to install blast-radius locally, in order to maybe contribute some updates back. However, when I clone and install it:

python setup.py install

Then go into a Terraform directory and run it:

$ blast-radius --serve .
 * Serving Flask app "blastradius.server.server" (lazy loading)
...
NotADirectoryError: [Errno 20] Not a directory: '/Users/caleb/dev/blast-radius/venv/lib/python3.8/site-packages/blastradius-0.1.25-py3.8.egg/blastradius/server/templates/index.html'

And yet… that template exists in the egg (zip) archive:

$ unzip -l /Users/caleb/dev/blast-radius/venv/lib/python3.8/site-packages/blastradius-0.1.25-py3.8.egg  | grep templates
      574  08-20-2018 06:48   blastradius/server/templates/error.html
     7613  06-25-2019 15:54   blastradius/server/templates/index.html