Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not start up #99

Open
dogmatic69 opened this issue Feb 4, 2022 · 6 comments
Open

Does not start up #99

dogmatic69 opened this issue Feb 4, 2022 · 6 comments

Comments

@dogmatic69
Copy link

Running on a fresh python:3-alpine box, installed graphviz, terraform and the pip lib.

/ # python --version
Python 3.10.2
/ # terraform --version
Terraform v1.0.11
on linux_amd64


Traceback (most recent call last):
  File "/usr/local/bin/blast-radius", line 14, in <module>
    from blastradius.handlers.dot import DotGraph, Format, DotNode
  File "/usr/local/lib/python3.10/site-packages/blastradius/handlers/dot.py", line 12, in <module>
    from blastradius.graph import Graph, Node, Edge
  File "/usr/local/lib/python3.10/site-packages/blastradius/graph.py", line 11, in <module>
    from blastradius.util import Counter
  File "/usr/local/lib/python3.10/site-packages/blastradius/util.py", line 65, in <module>
    class OrderedSet(collections.MutableSet):
AttributeError: module 'collections' has no attribute 'MutableSet'
@luispabon
Copy link

Same here on Ubuntu 22.04 with Python 3.10.

@markdjones82
Copy link

Same, I'm trying to find the issue.

@heechankim
Copy link

Same here on Mac M1 Pro with Python 3.10.6

@Ianyliu
Copy link

Ianyliu commented Sep 7, 2022

This version of Blast Radius doesn't support Python 3.10. The packages it uses are outdated, and some of the code also has to be changed accordingly.

Since the creator hasn't been active on this repo, I created my own repo and Docker image.

You can try downloading my version:

python3 -m pip install git+https://github.com/Ianyliu/blast-radius-fork

or run it on Docker:

docker run --rm -it -p 5000:5000 \ -v $(pwd):/data:ro \ --security-opt apparmor:unconfined \ --cap-add=SYS_ADMIN \ ianyliu/blast-radius-fork

@chaoscreater
Copy link

chaoscreater commented Jun 20, 2023

Is blast-radius supposed to be a .exe or something? I ran it and it's showing this, because there isn't a file type and therefore no app association...

image

UPDATE:

Got it a bit further by just using Python to run it, but I'm getting this:

image

Tried the above in a brand new installation of Python in a fresh VM and it's the same result.

@Axel-sys-777
Copy link

In Python 3.10 and above, certain abstract base classes like MutableSet were moved from the collections module to collections.abc. This change was made to better organize the Python standard library.
If you encounter like OP the AttributeError related to MutableSet, MutableMapping, or similar classes, simply update your import statements to use collections.abc instead of collections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants