-
Notifications
You must be signed in to change notification settings - Fork 67
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
UnicodeDecodeError #26
Comments
I find some problem when I run: python3 pwd_guess_unit.py .....................WARNING:root:Unknown config format: .cfg. Defaulting to JSON |
I got the same problems: File "../pwd_guess.py", line 393, in _read_intermediate_data i try to add "encoding='latin1'"when open file, however, i got another problem: I belive that intermediate_data.sqlite is the reason. |
Your problem is: "UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 98: ordinal not in range(128)" Aka, you are trying to use non-ASCII passwords, e.g., passwords that include special characters like for example German umlauts (öäüß). Solution: Remove non-ascii passwords from your training/evaluation dataset and you should be fine. |
Thanks for your reply. it seems that this file "intermediate_data.sqlite" cause the problem, do you know the possible reason? File "../pwd_guess.py", line 382, in init |
As said before: „UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe6 in position 98: invalid continuation byte“ 0xe6 is not a valid utf-8 character. you are using passwords that are not ASCII. |
I have this error as well with the pre-trained network with the preset configs. File "../pwd_guess.py", line 382, in init |
Looks like commit de2f63b took out sqlite representation for intermediate data but the pre-trained network still come with sqlite files and thus causes issues when attempting to read. |
I have problem when I run command: python3 ../pwd_guess.py --config-args guess_len8_config.json
Issuse:
Traceback (most recent call last):
File "../pwd_guess.py", line 2585, in
main_entry_point()
File "../pwd_guess.py", line 2582, in main_entry_point
main_bundle()
File "../pwd_guess.py", line 2578, in
main_bundle = lambda: main(args)
File "../pwd_guess.py", line 2486, in main
config, args = read_config_args(args)
File "../pwd_guess.py", line 2478, in read_config_args
config = ModelDefaults(config_args['config'])
File "../pwd_guess.py", line 382, in init
self._intermediate_data = self._read_intermediate_data()
File "../pwd_guess.py", line 393, in _read_intermediate_data
info_as_str = info.read()
File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 98: ordinal not in range(128)
Please help me!
Thanks
The text was updated successfully, but these errors were encountered: