Weather HTTP Error 403: Forbidden

Bug #329808 reported by Marco Rodrigues
2
Affects Status Importance Assigned to Milestone
Entertainer Media Center
Triaged
Low
Unassigned

Bug Description

The current version on repository give me this error:

TESTCASE:
Run entertainer
Choose Weather and hit Enter.

$ entertainer
Entertainer backend starting...
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/entertainerlib/frontend/gui/user_interface.py", line 276, in handle_keyboard_event
    self.handle_user_event(UserEvent(UserEvent.NAVIGATE_SELECT))
  File "/usr/lib/python2.5/site-packages/entertainerlib/frontend/gui/user_interface.py", line 382, in handle_user_event
    self.current.handle_user_event(event)
  File "/usr/lib/python2.5/site-packages/entertainerlib/frontend/gui/screens/main.py", line 283, in handle_user_event
    self.callback("weather")
  File "/usr/lib/python2.5/site-packages/entertainerlib/frontend/gui/user_interface.py", line 196, in move_to_new_screen
    screen = self.create_screen(screen_type, kwargs)
  File "/usr/lib/python2.5/site-packages/entertainerlib/frontend/gui/user_interface.py", line 189, in create_screen
    screen = self.screen_factory.generate_screen(screen_type, data)
  File "/usr/lib/python2.5/site-packages/entertainerlib/frontend/gui/screens/factory.py", line 77, in generate_screen
    return generator_methods[screen_type](kwargs)
  File "/usr/lib/python2.5/site-packages/entertainerlib/frontend/gui/screens/factory.py", line 186, in _generate_weather
    return WeatherScreen(**kwargs)
  File "/usr/lib/python2.5/site-packages/entertainerlib/frontend/gui/screens/weather.py", line 23, in __init__
    self.weather = Weather(loc)
  File "/usr/lib/python2.5/site-packages/entertainerlib/utils/weather.py", line 52, in __init__
    self.refresh()
  File "/usr/lib/python2.5/site-packages/entertainerlib/utils/weather.py", line 191, in refresh
    self.find_forecast(self.__location)
  File "/usr/lib/python2.5/site-packages/entertainerlib/utils/weather.py", line 73, in find_forecast
    raw_data = urllib2.urlopen(url)
  File "/usr/lib/python2.5/urllib2.py", line 124, in urlopen
    return _opener.open(url, data)
  File "/usr/lib/python2.5/urllib2.py", line 387, in open
    response = meth(req, response)
  File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.5/urllib2.py", line 425, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.5/urllib2.py", line 506, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Forbidden

Linux Distribution: Ubuntu Intrepid
Processor (32/64-bit): 32-bit
Python Version: 2.5.2

Paul Hummer (rockstar)
Changed in entertainer:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Samuel Buffet (samuel-buffet) wrote :

Hi Marco,

Can you please tell me which town you've set as location in the content-manager.

I've tried with an empty setting and I have different error message.

Thanks,

Samuel-

Revision history for this message
Marco Rodrigues (gothicx) wrote :

Hi Samuel,

I've added the city "Tondela", but I run it now and it doesn't have the problem. Maybe you can close the bug for now.

Thanks

Revision history for this message
Samuel Buffet (samuel-buffet) wrote :

Well I can't reproduce it with 358, but I let it open because that maybe an intermittent issue. Will see if someone else can reproduce that in the future.

Thanks Marco.
Samuel-

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.