{"action":"opened","issue":{"url":"https://api.github.com/repos/sharppy/SHARPpy/issues/67","labels_url":"https://api.github.com/repos/sharppy/SHARPpy/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/sharppy/SHARPpy/issues/67/comments","events_url":"https://api.github.com/repos/sharppy/SHARPpy/issues/67/events","html_url":"https://github.com/sharppy/SHARPpy/issues/67","id":77480805,"number":67,"title":"full_gui.py will not start - SPC page unavailable","user":{"login":"dangoff","id":2642237,"avatar_url":"https://avatars.githubusercontent.com/u/2642237?v=3","gravatar_id":"","url":"https://api.github.com/users/dangoff","html_url":"https://github.com/dangoff","followers_url":"https://api.github.com/users/dangoff/followers","following_url":"https://api.github.com/users/dangoff/following{/other_user}","gists_url":"https://api.github.com/users/dangoff/gists{/gist_id}","starred_url":"https://api.github.com/users/dangoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dangoff/subscriptions","organizations_url":"https://api.github.com/users/dangoff/orgs","repos_url":"https://api.github.com/users/dangoff/repos","events_url":"https://api.github.com/users/dangoff/events{/privacy}","received_events_url":"https://api.github.com/users/dangoff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-18T03:27:41Z","updated_at":"2015-05-18T03:27:41Z","closed_at":null,"body":"Windows 8.0 Enterprise, just installed SHARPpy 1.2.0 yesterday\r\n\r\nUpon trying to run the application tonight:\r\n```\r\nC:\\Users\\Dan>python \"C:\\SHARPpy\\runsharp\\full_gui.py\"\r\nTraceback (most recent call last):\r\n  File \"C:\\SHARPpy\\runsharp\\full_gui.py\", line 635, in <module>\r\n    win = MainWindow()\r\n  File \"C:\\SHARPpy\\runsharp\\full_gui.py\", line 191, in __init__\r\n    self.__initUI()\r\n  File \"C:\\SHARPpy\\runsharp\\full_gui.py\", line 208, in __initUI\r\n    self.view = self.create_map_view()\r\n  File \"C:\\SHARPpy\\runsharp\\full_gui.py\", line 358, in create_map_view\r\n    view = MapWidget(self.data_sources[self.model], self.run, self.async, width=\r\n800, height=500)\r\n  File \"c:\\program files\\enthought\\canopy\\user\\lib\\site-packages\\sharppy-1.2.0-p\r\ny2.7.egg\\sharppy\\viz\\map.py\", line 168, in __init__\r\n    self.setDataSource(data_source, init_time, init=True)\r\n  File \"c:\\program files\\enthought\\canopy\\user\\lib\\site-packages\\sharppy-1.2.0-p\r\ny2.7.egg\\sharppy\\viz\\map.py\", line 209, in setDataSource\r\n    self.setCurrentTime(data_time, init=init)\r\n  File \"c:\\program files\\enthought\\canopy\\user\\lib\\site-packages\\sharppy-1.2.0-p\r\ny2.7.egg\\sharppy\\viz\\map.py\", line 252, in setCurrentTime\r\n    points = getPoints()\r\n  File \"c:\\program files\\enthought\\canopy\\user\\lib\\site-packages\\sharppy-1.2.0-p\r\ny2.7.egg\\sharppy\\viz\\map.py\", line 218, in <lambda>\r\n    getPoints = lambda: self.cur_source.getAvailableAtTime(self.current_time)\r\n  File \"C:\\Users\\Dan\\.sharppy\\datasources\\data_source.py\", line 237, in getAvail\r\nableAtTime\r\n    points = self._get('getAvailableAtTime', outlet, flatten=False, dt=dt)\r\n  File \"C:\\Users\\Dan\\.sharppy\\datasources\\data_source.py\", line 191, in _get\r\n    prop.append(func(**kwargs))\r\n  File \"C:\\Users\\Dan\\.sharppy\\datasources\\data_source.py\", line 116, in getAvail\r\nableAtTime\r\n    avail = available.availableat[self._name.lower()][self._ds_name.lower()](dt)\r\n\r\n  File \"C:\\Users\\Dan\\.sharppy\\datasources\\available.py\", line 15, in _availablea\r\nt_spc\r\n    text = urllib2.urlopen(recent_url).read()\r\n  File \"C:\\Program Files\\Enthought\\Canopy\\App\\appdata\\canopy-1.5.2.2785.win-x86_\r\n64\\lib\\urllib2.py\", line 127, in urlopen\r\n    return _opener.open(url, data, timeout)\r\n  File \"C:\\Program Files\\Enthought\\Canopy\\App\\appdata\\canopy-1.5.2.2785.win-x86_\r\n64\\lib\\urllib2.py\", line 410, in open\r\n    response = meth(req, response)\r\n  File \"C:\\Program Files\\Enthought\\Canopy\\App\\appdata\\canopy-1.5.2.2785.win-x86_\r\n64\\lib\\urllib2.py\", line 523, in http_response\r\n    'http', request, response, code, msg, hdrs)\r\n  File \"C:\\Program Files\\Enthought\\Canopy\\App\\appdata\\canopy-1.5.2.2785.win-x86_\r\n64\\lib\\urllib2.py\", line 448, in error\r\n    return self._call_chain(*args)\r\n  File \"C:\\Program Files\\Enthought\\Canopy\\App\\appdata\\canopy-1.5.2.2785.win-x86_\r\n64\\lib\\urllib2.py\", line 382, in _call_chain\r\n    result = func(*args)\r\n  File \"C:\\Program Files\\Enthought\\Canopy\\App\\appdata\\canopy-1.5.2.2785.win-x86_\r\n64\\lib\\urllib2.py\", line 531, in http_error_default\r\n    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)\r\nurllib2.HTTPError: HTTP Error 403: Forbidden\r\n```\r\n\r\nAs was mentioned in [https://github.com/sharppy/SHARPpy/issues/65](issue #65), the application will not start if SPC is in the middle of posting profiles - there's a page there (http://www.spc.noaa.gov/exper/soundings/15051800_OBS/), but it really wasn't there yet, which triggered the HTTP 403 error.\r\n\r\nRather than crashing, is it possible to have the URL fall back to the previous 6-hourly (or 12-hourly) standard synoptic time? In this case, falling back to to either 18Z or 12Z on 2015-05-17, so that the application would still load successfully?"}}