Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Location lookup via Google does not work #27

Closed
rfitzwater opened this issue Nov 15, 2017 · 7 comments
Closed

Location lookup via Google does not work #27

rfitzwater opened this issue Nov 15, 2017 · 7 comments
Assignees
Labels

Comments

@rfitzwater
Copy link

I noticed in MunkiReport that my clients weren't updating the location with pinpoint. I ran this command manually on one machine to test:
sudo /Library/Application\ Support/pinpoint/bin/pinpoint -fvv
Here is the output:

[DEBUG]: Current LookupService is: google [DEBUG]: Updating 'LastCheckDate' timestamp [DEBUG]: Storing past location [DEBUG]: Wireless interface is currently: On [DEBUG]: Wireless interface is currently: On [DEBUG]: No preflight script on disk [INFO]: Scanning for wireless networks... Traceback (most recent call last): File "/Library/Application Support/pinpoint/bin/pinpoint", line 888, in <module> main() File "/Library/Application Support/pinpoint/bin/pinpoint", line 858, in main lookup(lookup_service) File "/Library/Application Support/pinpoint/bin/pinpoint", line 397, in lookup scan = wireless().wireless_scan() File "/Library/Application Support/pinpoint/bin/pinpoint", line 565, in wireless_scan ssid_scan = FoundationPlist.readPlistFromString(ssid_scan) File "/Library/Application Support/pinpoint/bin/FoundationPlist/FoundationPlist.py", line 105, in readPlistFromString raise NSPropertyListSerializationException(error) FoundationPlist.FoundationPlist.NSPropertyListSerializationException: Encountered unexpected EOF

Here are the preferences I have set:
{ AddressLookup = 1; AddressLookupService = google; CacheDir = "/Library/Application Support/pinpoint"; CheckWaitTime = 1800; DisableWireless = true; EnableWireless = true; LastCheckDate = "2017-11-15 14:59:49 +0000"; LookupService = google; }

This client I tested on is running 10.12.6

@clburlison
Copy link
Owner

@rfitzwater can you please remove /Library/Application Support/pinpoint/location.plist and re-run pinpoint to see if that solves the error?

Is this happening on multiple machines or just one?

EOF normally means something is wrong with the formatting of that file. It's possible the python process was shut down while pinpoint was running which might have caused corruption.

@rfitzwater
Copy link
Author

rfitzwater commented Nov 15, 2017 via email

@clburlison clburlison added the bug label Nov 21, 2017
@clburlison clburlison self-assigned this Nov 21, 2017
@clburlison
Copy link
Owner

Thanks @rfitzwater. I've been able to replicate this. I will see if I can fix it.

@clburlison
Copy link
Owner

I'm pretty sure Google finally put this behind auth and requires an API key for lookups. https://developers.google.com/maps/documentation/geolocation/intro

@clburlison clburlison changed the title traceback error Location lookup via Google does not work Nov 22, 2017
@danner26
Copy link
Contributor

Has there been any progress made here?

@clburlison
Copy link
Owner

No. I currently do not have the time to implement the required changes after Google updated their api. The changes shouldn't be too hard if someone wants to work on the issue and offer a PR. I would be more than happy to review and merge.

@danner26 danner26 mentioned this issue Feb 23, 2018
@clburlison
Copy link
Owner

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

No branches or pull requests

3 participants