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

invalid literal for int() with base 10: '86 1' #12

Closed
djui opened this issue Oct 2, 2016 · 6 comments
Closed

invalid literal for int() with base 10: '86 1' #12

djui opened this issue Oct 2, 2016 · 6 comments

Comments

@djui
Copy link

djui commented Oct 2, 2016

Please provide the output of the error below this line at github.com/kootenpv/access_points/issues
invalid literal for int() with base 10: '86  1'
@kootenpv
Copy link
Owner

kootenpv commented Oct 2, 2016

@djui Could you see successful parses where there is an access point with a score of around 86 somewhere in your ~/.whereami?

@kootenpv
Copy link
Owner

kootenpv commented Oct 2, 2016

I added more details to the logging. Could you please try a couple of more scans after upgrading and see what the error says:

pip install -U --no-cache access_points
pip install -U --no-cache whereami

@djui
Copy link
Author

djui commented Oct 2, 2016

If I read this correctly, I got two successful parses:

$ ag '[^:]86' ~/.whereami/office.txt
:
{..."Foo f0:0f:00:f0:0f:00": 86, ...}
:
{..."Foo f0:0f:00:f0:0f:00": 86, ...}
:

With the new log output (but different outcome):

$ whereami learn -l office -n 100
 97%|█████████████████████████████████████████████████████████████████████▊  | 97/100 [05:27<00:11,  3.79s/it]
Please provide the output of the error below this line at github.com/kootenpv/access_points/issues
invalid literal for int() with base 10: '91  9'
Line:
              Foo f0:0f:00:f0:0f:00 -91  9       Y  -- WPA(PSK/AES,TKIP/TKIP) WPA2(PSK/AES,TKIP/TKIP)
 98%|██████████████████████████████████████████████████████████████████████▌ | 98/100 [05:31<00:07,  3.79s/it]
Please provide the output of the error below this line at github.com/kootenpv/access_points/issues
invalid literal for int() with base 10: '91  9'
Line:
              Foo f0:0f:00:f0:0f:00 -91  9       Y  -- WPA(PSK/AES,TKIP/TKIP) WPA2(PSK/AES,TKIP/TKIP)
 99%|███████████████████████████████████████████████████████████████████████▎| 99/100 [05:35<00:03,  3.79s/it]
Please provide the output of the error below this line at github.com/kootenpv/access_points/issues
invalid literal for int() with base 10: '91  9'
Line:
              Foo f0:0f:00:f0:0f:00 -91  9       Y  -- WPA(PSK/AES,TKIP/TKIP) WPA2(PSK/AES,TKIP/TKIP)

However this time I can't find the result in the output:

$ ag '[^:]91' ~/.whereami/office.txt
$ echo $?
1

@kootenpv
Copy link
Owner

kootenpv commented Oct 2, 2016

@djui I have no clue where that quote came from? Ah wait, now I see, it is about

'91    9'

I'll try to see if I can fix that :)

We can see the line is a character shifted. It should have gotten -91 [without 9].

@kootenpv
Copy link
Owner

kootenpv commented Oct 2, 2016

I made it a regex parser, as I assume the finger print is always the same format (thus the only safe thing in there).

Please try once more after pip install -U --no-cache access_points :)

@djui
Copy link
Author

djui commented Oct 2, 2016

Works. Dank je!

@djui djui closed this as completed Oct 2, 2016
@djui djui changed the title invalid literal for int() with base 10: '86 1 invalid literal for int() with base 10: '86 1' Oct 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants