access_points icon indicating copy to clipboard operation
access_points copied to clipboard

invalid literal for int() with base 10: '-- R'

Open YJack0000 opened this issue 3 years ago • 8 comments

I get the following error while using whereami.

invalid literal for int() with base 10: '-- R' Line: 不要亂改網路名稱 -76 6,-1 Y -- RSN(PSK/AES/AES) Output: SSID BSSID RSSI CHANNEL HT CC SECURITY (auth/unicast/group) HuaB5 -92 40 Y -- RSN(PSK/AES/AES) 不要亂改網路名稱 -76 6,-1 Y -- RSN(PSK/AES/AES)

[{"ssid": "HuaB5", "bssid": "", "quality": 16, "security": "RSN(PSK/AES/AES) "}]

YJack0000 avatar Dec 20 '22 05:12 YJack0000

Hmmm, what OS is it?

kootenpv avatar Dec 20 '22 16:12 kootenpv

Is macOS 13.1

YJack0000 avatar Dec 20 '22 16:12 YJack0000

Could you verify that this is still the case:

>>> import platform
>>> platform.system()
"Darwin"

Also check that airport -s works...

And finally, did you try running sudo whereami?

kootenpv avatar Dec 20 '22 20:12 kootenpv

Oh I see - the problem is that the chinese characters don't work with indexing

kootenpv avatar Dec 20 '22 20:12 kootenpv

image

kootenpv avatar Dec 20 '22 20:12 kootenpv

Do you know how we can change it so that chinese characters line up with the ending of SSID?

kootenpv avatar Dec 20 '22 20:12 kootenpv

Ok~ I think I can fix this but I'm not very familiar with python. So it might take some time to fix this.

YJack0000 avatar Dec 26 '22 09:12 YJack0000

#25

YJack0000 avatar Dec 26 '22 14:12 YJack0000