You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Users\weizihan>whereami learn -l bed
0%| | 0/100 [00:00<?, ?it/s]
Traceback (most recent call last):
File "f:\python2\python2\lib\runpy.py", line 174, in run_module_as_main
"main", fname, loader, pkg_name)
File "f:\python2\python2\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "F:\python2\python2\Scripts\whereami.exe_main.py", line 9, in
File "f:\python2\python2\lib\site-packages\whereami_main.py", line 39, in main
learn(args.location, args.num_samples)
File "f:\python2\python2\lib\site-packages\whereami\learn.py", line 22, in learn
new_sample = sample()
File "f:\python2\python2\lib\site-packages\whereami\get_data.py", line 15, in sample
aps = wifi_scanner.get_access_points()
File "f:\python2\python2\lib\site-packages\access_points_init_.py", line 79, in get_access_points
results = self.parse_output(ensure_str(out))
File "f:\python2\python2\lib\site-packages\access_points_init_.py", line 16, in ensure_str
output = output.decode("utf-16")
File "f:\python2\python2\lib\encodings\utf_16.py", line 16, in decode
return codecs.utf_16_decode(input, errors, True)
UnicodeDecodeError: 'utf16' codec can't decode bytes in position 94-95: illegal UTF-16 surrogate
How to fix this problem?Thanks!
The text was updated successfully, but these errors were encountered:
@kootenpv May be utf-8...But in your access_points_init_.py,it first checks utf-8 encoding and then goes to utf-16.So if it is utf-8,the error shouldn't come out.
I think that the error occurs in the utf16... so that means it is probably another encoding even. Maybe you could show the output of netsh wlan show networks mode=bssid on windows
C:\Users\weizihan>whereami learn -l bed
0%| | 0/100 [00:00<?, ?it/s]
Traceback (most recent call last):
File "f:\python2\python2\lib\runpy.py", line 174, in run_module_as_main
"main", fname, loader, pkg_name)
File "f:\python2\python2\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "F:\python2\python2\Scripts\whereami.exe_main.py", line 9, in
File "f:\python2\python2\lib\site-packages\whereami_main.py", line 39, in main
learn(args.location, args.num_samples)
File "f:\python2\python2\lib\site-packages\whereami\learn.py", line 22, in learn
new_sample = sample()
File "f:\python2\python2\lib\site-packages\whereami\get_data.py", line 15, in sample
aps = wifi_scanner.get_access_points()
File "f:\python2\python2\lib\site-packages\access_points_init_.py", line 79, in get_access_points
results = self.parse_output(ensure_str(out))
File "f:\python2\python2\lib\site-packages\access_points_init_.py", line 16, in ensure_str
output = output.decode("utf-16")
File "f:\python2\python2\lib\encodings\utf_16.py", line 16, in decode
return codecs.utf_16_decode(input, errors, True)
UnicodeDecodeError: 'utf16' codec can't decode bytes in position 94-95: illegal UTF-16 surrogate
How to fix this problem?Thanks!
The text was updated successfully, but these errors were encountered: