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

Function --repeat fails with Python3 #26

Closed
Mi-Al opened this issue Mar 14, 2021 · 2 comments
Closed

Function --repeat fails with Python3 #26

Mi-Al opened this issue Mar 14, 2021 · 2 comments
Labels

Comments

@Mi-Al
Copy link

Mi-Al commented Mar 14, 2021

Hello! When I run the uniqifer tool with the --repeat function using Python3, like this:

python3 pydictor.py -tool uniqifer ~/rockyou_clean.txt --repeat "<=3" ">=3" "==0" -o ~/uniq.txt

Then an error occurs:

[-] Exception as following:

Traceback (most recent call last):
File "/home/mial/bin/pydictor/lib/fun/decorator.py", line 22, in magic
item = filterforfun(item)
File "/home/mial/bin/pydictor/lib/fun/filter.py", line 243, in filterforfun
item = repeat_filter(item, letter_repeat=pyoptions.letter_repeat, digital_repeat=pyoptions.digital_repeat,
File "/home/mial/bin/pydictor/lib/fun/filter.py", line 151, in repeat_filter
key = r.keys()[0]
TypeError: 'dict_keys' object is not subscriptable
None

But if I run the same command with Python2, then everything works fine:

python2 pydictor.py -tool uniqifer ~/rockyou_clean.txt --repeat "<=3" ">=3" "==0" -o ~/uniq.txt

@LandGrey
Copy link
Owner

Hello! When I run the uniqifer tool with the --repeat function using Python3, like this:

python3 pydictor.py -tool uniqifer ~/rockyou_clean.txt --repeat "<=3" ">=3" "==0" -o ~/uniq.txt

Then an error occurs:

[-] Exception as following:
Traceback (most recent call last):
File "/home/mial/bin/pydictor/lib/fun/decorator.py", line 22, in magic
item = filterforfun(item)
File "/home/mial/bin/pydictor/lib/fun/filter.py", line 243, in filterforfun
item = repeat_filter(item, letter_repeat=pyoptions.letter_repeat, digital_repeat=pyoptions.digital_repeat,
File "/home/mial/bin/pydictor/lib/fun/filter.py", line 151, in repeat_filter
key = r.keys()[0]
TypeError: 'dict_keys' object is not subscriptable
None

But if I run the same command with Python2, then everything works fine:

python2 pydictor.py -tool uniqifer ~/rockyou_clean.txt --repeat "<=3" ">=3" "==0" -o ~/uniq.txt

The bug has been fixed at this commit on pydictor 2.1.5.3 version.

@Mi-Al Mi-Al closed this as completed Mar 14, 2021
@Mi-Al
Copy link
Author

Mi-Al commented Mar 14, 2021

Thank you!

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

No branches or pull requests

2 participants