So how exactly do we get this script to run on our Macs?
To start the program:
navigate in Finder to the folder containing the python files
open Terminal.app (in /Applications/Utilities or searchable with Spotlight)
type 'python ' (without quotes but with the trailing space) and then drag the 'run.py' file into the terminal window (this should auto-input the path to the file)
hit enter and follow the on-screen prompts
----------
Getting following error: I am on 10.10. Can you please help?
Select a mode:
1. Monitor models with loud alert
2. Monitor models with quiet beep
3. Mix modes
4. Reload previous search terms
: 1
Enter your 5-digit zip code
: 75024
Traceback (most recent call last):
File "run.py", line 6, in <module>
if __name__ == '__main__': main()
File "run.py", line 4, in main
start()
File "/Users/macair/.Trash/ip6plus-tracker-master/ip6plus_tracker/ip6plus_tracker.py", line 89, in start
target_stores = get_target_stores(zip_code)
File "/Users/macair/.Trash/ip6plus-tracker-master/ip6plus_tracker/location.py", line 21, in get_target_stores
connection.request("GET", '{root}{zip_code}&parts.0=MG502LL%2FA'.format(root=PATH_ROOT, zip_code=zip_code))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 973, in request
self._send_request(method, url, body, headers)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1007, in _send_request
self.endheaders(body)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 969, in endheaders
self._send_output(message_body)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 829, in _send_output
self.send(msg)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 791, in send
self.connect()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 772, in connect
self.timeout, self.source_address)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 553, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket.gaierror: [Errno 8] nodename nor servname provided, or not known
Woah, that's a weird one. I'm not sure if I can troubleshoot a 10.10 issue (since I'm not running it yet), but I'll see if there's anything I find out. Can you type 'python --version' into terminal and tell me what it says?
EDIT: This looks like it's a DNS issue. Are you using alternate DNS servers? Might just need to wait a bit for DNS servers to clear up. Could also be local DNS cache, in which case you could flush it with 'sudo killall -HUP mDNSResponder' but I'd hold off on that.