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

Error While Running the script #1

Open
exrme18 opened this issue Feb 19, 2020 · 12 comments
Open

Error While Running the script #1

exrme18 opened this issue Feb 19, 2020 · 12 comments

Comments

@exrme18
Copy link

exrme18 commented Feb 19, 2020

Hi,

I am getting the following error while running the script.

Screenshot 2020-02-19 at 6 54 22 PM

@mike-trewartha
Copy link
Contributor

I had a similar issue, ensure you're using Python3 and not 2.7

@exrme18
Copy link
Author

exrme18 commented Mar 2, 2020

I am using the python3 to run the script but still getting the same error. Would there be any workaround?

@c0d3xpl0it
Copy link

It works fine with Python 3.6.5

@o-IDA
Copy link
Contributor

o-IDA commented Mar 17, 2020

@exrme18 what is your python version?
Im using Python 3.7.1

@dan-leanix
Copy link

If you have Python 2 and Python 3 on your system in most cases python calls Python 2 and python3 calls Python 3.

Furthermore colorama needs to be installed as well.

@abhila7h
Copy link

abhila7h commented Sep 2, 2020

Hi,

With Python version 3.6.5 I'm getting following error:

Traceback (most recent call last):
File "ExtensiveRoleCheck.py", line 203, in
extensiveClusterRolesChecker = ExtensiveRolesChecker(clusterRole_json_file, role_kind)
File "ExtensiveRoleCheck.py", line 29, in init
self._generate()
File "ExtensiveRoleCheck.py", line 46, in _generate
for rule in entity['rules']:
TypeError: 'NoneType' object is not iterable

@0xz00n
Copy link

0xz00n commented Nov 12, 2020

Hi,

With Python version 3.6.5 I'm getting following error:

Traceback (most recent call last):
File "ExtensiveRoleCheck.py", line 203, in
extensiveClusterRolesChecker = ExtensiveRolesChecker(clusterRole_json_file, role_kind)
File "ExtensiveRoleCheck.py", line 29, in init
self._generate()
File "ExtensiveRoleCheck.py", line 46, in _generate
for rule in entity['rules']:
TypeError: 'NoneType' object is not iterable

I've placed a pull request in with the fix for this problem.

@thecowmilk
Copy link

Could someone do a version without colorama package or do it in bash? It would be very greatful

@0xabdi
Copy link

0xabdi commented Jun 9, 2021

Hi,

With Python version 3.6.5 I'm getting following error:

Traceback (most recent call last):
File "ExtensiveRoleCheck.py", line 203, in
extensiveClusterRolesChecker = ExtensiveRolesChecker(clusterRole_json_file, role_kind)
File "ExtensiveRoleCheck.py", line 29, in init
self._generate()
File "ExtensiveRoleCheck.py", line 46, in _generate
for rule in entity['rules']:
TypeError: 'NoneType' object is not iterable

Facing the same issue on python 3.6.9 even after installing colorama.

@0xabdi
Copy link

0xabdi commented Jun 9, 2021

Hi,
With Python version 3.6.5 I'm getting following error:
Traceback (most recent call last):
File "ExtensiveRoleCheck.py", line 203, in
extensiveClusterRolesChecker = ExtensiveRolesChecker(clusterRole_json_file, role_kind)
File "ExtensiveRoleCheck.py", line 29, in init
self._generate()
File "ExtensiveRoleCheck.py", line 46, in _generate
for rule in entity['rules']:
TypeError: 'NoneType' object is not iterable

Facing the same issue on python 3.6.9 even after installing colorama.

Realized these lines in this PR are not present in the python file. Added them and it is running fine now.

image

@holasoysoler
Copy link

I'm getting the same error

File "ExtensiveRoleCheck.py", line 24 self._role_format = logging.Formatter(f'{Fore.YELLOW}[!][%(name)s]{Fore.WHITE}\u2192 %(message)s') ^ SyntaxError: invalid syntax

@R011y
Copy link

R011y commented Feb 7, 2023

Hi,
With Python version 3.6.5 I'm getting following error:
Traceback (most recent call last):
File "ExtensiveRoleCheck.py", line 203, in
extensiveClusterRolesChecker = ExtensiveRolesChecker(clusterRole_json_file, role_kind)
File "ExtensiveRoleCheck.py", line 29, in init
self._generate()
File "ExtensiveRoleCheck.py", line 46, in _generate
for rule in entity['rules']:
TypeError: 'NoneType' object is not iterable

Facing the same issue on python 3.6.9 even after installing colorama.

Realized these lines in this PR are not present in the python file. Added them and it is running fine now.

image

Attempted adding this but now getting a new error:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests