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

AttributeError: module 'collections' has no attribute 'Callable' #99

Open
khan-shaheb69 opened this issue Mar 11, 2023 · 3 comments
Open

Comments

@khan-shaheb69
Copy link

khan-shaheb69 commented Mar 11, 2023

python3 cloudfail.py --target target.com

After executing this command I am getting following error.

if (isinstance(value, str) or isinstance(value, collections.Callable) or hasattr(value, 'match')
AttributeError: module 'collections' has no attribute 'Callable'. Although my socks.py is updated.

import socket
import struct
from errno import EOPNOTSUPP, EINVAL, EAGAIN
from io import BytesIO
from os import SEEK_CUR
from collections.abc import Callable
from base64 import b64encode

I am using kali linux 2022.4. Thanks in advance.

@mike993
Copy link

mike993 commented Mar 18, 2023

same error here...

@L00PBACK
Copy link

L00PBACK commented Apr 5, 2023

Hello,
collections.Callable has been moved to collections.abc.Callable in python 3.10+. A hacky solution is to add the reference back to collections before importing the problem library. Or use python 3.9
To fix the bug you need to add to whateverpath/lib/python3.10/site-packages/bs4/element.py

collections.Callable = collections.abc.Callable at the begining of the file.

@th3knv
Copy link

th3knv commented Apr 9, 2023

Modify cloufail.py and add somewhere in imports this:

import collections
collections.Callable = collections.abc.Callable

Better add Callable after the following import.

import dns.resolver

shoxxdj added a commit to shoxxdj/CloudFail that referenced this issue Oct 27, 2023
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

4 participants