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

Callable error #81

Open
salman875602 opened this issue Aug 14, 2022 · 3 comments
Open

Callable error #81

salman875602 opened this issue Aug 14, 2022 · 3 comments

Comments

@salman875602
Copy link

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)

@Fojx
Copy link

Fojx commented Aug 24, 2022

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

@ghost
Copy link

ghost commented Aug 24, 2022

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'

@Fojx
Copy link

Fojx commented Aug 25, 2022

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?

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

2 participants