CloudFail icon indicating copy to clipboard operation
CloudFail copied to clipboard

Callable error

Open salman875602 opened this issue 3 years ago • 3 comments

I can't run tool :( /home/kali/Desktop/CloudFail/cloudfail.py:180: SyntaxWarning: "is not" with a literal. Did you mean "!="? while choice is not 'y' and choice is not 'n': /home/kali/Desktop/CloudFail/cloudfail.py:180: SyntaxWarning: "is not" with a literal. Did you mean "!="? while choice is not 'y' and choice is not 'n': /home/kali/Desktop/CloudFail/cloudfail.py:180: SyntaxWarning: "is not" with a literal. Did you mean "!="? while choice is not 'y' and choice is not 'n': /home/kali/Desktop/CloudFail/cloudfail.py:180: SyntaxWarning: "is not" with a literal. Did you mean "!="? while choice is not 'y' and choice is not 'n': /home/kali/Desktop/CloudFail/cloudfail.py:182: SyntaxWarning: "is" with a literal. Did you mean "=="? if choice is 'y': Traceback (most recent call last): File "/home/kali/Desktop/CloudFail/cloudfail.py", line 9, in import socks File "/home/kali/Desktop/CloudFail/socks.py", line 62, in from collections import Callable ImportError: cannot import name 'Callable' from 'collections' (/usr/lib/python3.10/collections/init.py)

salman875602 avatar Aug 14 '22 08:08 salman875602

Hello, try this sed -i 's/from collections import Callable/from collections.abc import Callable/g' socks.py

Fojx avatar Aug 24 '22 19:08 Fojx

i got this:

Traceback (most recent call last): File "/home/kali/CloudFail/cloudfail.py", line 17, in from DNSDumpsterAPI import DNSDumpsterAPI File "/home/kali/CloudFail/DNSDumpsterAPI.py", line 13, in from bs4 import BeautifulSoup File "/usr/local/lib/python3.10/dist-packages/bs4/init.py", line 35, in from .builder import builder_registry, ParserRejectedMarkup File "/usr/local/lib/python3.10/dist-packages/bs4/builder/init.py", line 7, in from bs4.element import ( File "/usr/local/lib/python3.10/dist-packages/bs4/element.py", line 5, in import Callable ModuleNotFoundError: No module named 'Callable'

ghost avatar Aug 24 '22 22:08 ghost

Hmm, i you have just to edit line 62

Replace this "from collections import Callable" with this "from collections.abc import Callable"

on file socks.py, but you also have errors about bs4, did you run the installation instructions?

Fojx avatar Aug 25 '22 19:08 Fojx