CloudFail icon indicating copy to clipboard operation
CloudFail copied to clipboard

SyntaxWarning: "is not" with a literal. Did you mean "!="?

Open jack3841 opened this issue 3 years ago • 4 comments

upon running the command, I am getting below errors

python3 cloudfail.py --target seo.com
/home/kali/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/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/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/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/CloudFail/cloudfail.py:182: SyntaxWarning: "is" with a literal. Did you mean "=="? if choice is 'y': Traceback (most recent call last): File "/home/kali/CloudFail/cloudfail.py", line 9, in import socks File "/home/kali/CloudFail/socks.py", line 62, in from collections import Callable ImportError: cannot import name 'Callable' from 'collections' (/usr/lib/python3.10/collections/init.py) ~}}

jack3841 avatar Aug 14 '22 20:08 jack3841

Same, on arch, python3, requirements installed fine

benborges avatar Aug 17 '22 12:08 benborges

Having the same error, did anyone find a fix?

Aholicknight avatar Aug 24 '22 18:08 Aholicknight

Hello, if you are using python3 then you can fix this by with edit socks.py file. You need to change the line 62

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

Or just run this sed -i 's/from collections import Callable/from collections.abc import Callable/g' socks.py

But please, remember this is temporary solution, Zamanry has an open PR about this, so when this pr will merge you can just pull this

Fojx avatar Aug 24 '22 19:08 Fojx

Hello, if you are using python3 then you can fix this by with edit socks.py file. You need to change the line 62

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

@Fojx Thank you for your comment. After some time tinkering around, it now works, even with GitHub actions.

Aholicknight avatar Aug 24 '22 19:08 Aholicknight