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

attribute error #6

Open
5l1v3r1 opened this issue May 4, 2020 · 5 comments
Open

attribute error #6

5l1v3r1 opened this issue May 4, 2020 · 5 comments

Comments

@5l1v3r1
Copy link

5l1v3r1 commented May 4, 2020

Traceback (most recent call last):
File "walterRat.py", line 1425, in
wRat=walterRat()
File "walterRat.py", line 18, in init
print colors["BOLD"]
TypeError: 'module' object has no attribute 'getitem'

@AzizKpln
Copy link
Owner

AzizKpln commented May 4, 2020

which python version are you using

@5l1v3r1
Copy link
Author

5l1v3r1 commented May 4, 2020

python 2.7 kali 2020. most probably the problem is about ansicolors module. getitem should be called before defining another module like wRat=walterRat(). I tried to fix it but no chance :/

@AzizKpln
Copy link
Owner

AzizKpln commented May 4, 2020

Does the program keep giving the same error? Did you try to run it again? i May have made a mistake on that line

@5l1v3r1
Copy link
Author

5l1v3r1 commented May 5, 2020

yes it gives the same error everytime, i think you can disable the color effect of the script which seems unneccessary or you can use another module instead.
i think those modules conflict:
https://pypi.org/project/ansicolors/ (from future import print_function # accomodate Python 2
from colors import *)
https://pythonhosted.org/pycolors/ (from colors import Color)

you can use colorama,termcolor or colored modules instead.

@AzizKpln
Copy link
Owner

AzizKpln commented May 5, 2020

I Will not be on pc for 2-3 days but after that I Will check the tool if I encounter an error ill fix it thanks for reporting the error

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