Topics
Orb
Propose
My VotaVox
Login
|
Register
About Us
Dedicated to delivering public opinion to people in power.
More like this
Less like this
I support the concept of universal healthcare.
Proposed by: Staff
Bookmark:
Notifications
Share This
Demographics
Agree
Disagree
640 Votes so far
Time Left: 3 months, 3 weeks
Decision Makers:
US Congress
X
VOTE on I support the concept of universal healthcare.:
Disagree
VOTE on I support the concept of universal healthcare.:
Disagree
VOTE on I support the concept of universal healthcare.:
Disagree
Python 2.6.2: /usr/local/bin/python Fri Sep 10 14:24:32 2010 A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. /var/www/www.votavox.com/VotaVox/topics/media.py in clean(embed_code=u'http://www.youtube.com/watch?v=BQaqCaIDW1Q&feature=popular') 106 107 if embed_code[:4] == "http": 108 scraper = auto_scrape(embed_code) 109 embed_code = scraper["embed"] 110 scraper undefined global auto_scrape =
embed_code = u'http://www.youtube.com/watch?v=BQaqCaIDW1Q&feature=popular' /var/www/www.votavox.com/VotaVox/vidscraper/__init__.py in auto_scrape(url=u'http://www.youtube.com/watch?v=BQaqCaIDW1Q&feature=popular', fields=None) 40 for suite in AUTOSCRAPE_SUITES: 41 if suite['regex'].match(url): 42 return scrape_suite(url, suite, fields) 43 44 # If we get here that means that none of the regexes matched, so global scrape_suite =
url = u'http://www.youtube.com/watch?v=BQaqCaIDW1Q&feature=popular' suite = {'funcs': {'description':
, 'embed':
, 'flash_enclosure_url':
, 'publish_date':
, 'tags':
, 'thumbnail_url':
, 'title':
}, 'regex': <_sre.SRE_Pattern object at 0x2a84b40>} fields = None /var/www/www.votavox.com/VotaVox/vidscraper/__init__.py in scrape_suite(url=u'http://www.youtube.com/watch?v=BQaqCaIDW1Q&feature=popular', suite={'funcs': {'description':
, 'embed':
, 'flash_enclosure_url':
, 'publish_date':
, 'tags':
, 'thumbnail_url':
, 'title':
}, 'regex': <_sre.SRE_Pattern object at 0x2a84b40>}, fields=['description', 'flash_enclosure_url', 'tags', 'title', 'thumbnail_url', 'publish_date', 'embed']) 32 except KeyError: 33 continue 34 scraped_data[field] = func(url, shortmem=shortmem) 35 36 return scraped_data scraped_data = {'description': u'', 'flash_enclosure_url': u'http://www.youtube.com/watch?v=BQaqCaIDW1Q&feature=popular'} field = 'tags' func =
url = u'http://www.youtube.com/watch?v=BQaqCaIDW1Q&feature=popular' shortmem = {'base_etree':
, 'parsed_feed': {'feed': {}, 'status': 403, 'version': '', 'enco...o_exception': SAXParseException('syntax error',)}} /var/www/www.votavox.com/VotaVox/vidscraper/decorators.py in new_scraper_func(url=u'http://www.youtube.com/watch?v=BQaqCaIDW1Q&feature=popular', shortmem={'base_etree':
, 'parsed_feed': {'feed': {}, 'status': 403, 'version': '', 'enco...o_exception': SAXParseException('syntax error',)}}, *args=(), **kwargs={}) 8 shortmem = {} 9 10 return scraper_func(url, shortmem=shortmem, *args, **kwargs) 11 12 return new_scraper_func scraper_func =
url = u'http://www.youtube.com/watch?v=BQaqCaIDW1Q&feature=popular' shortmem = {'base_etree':
, 'parsed_feed': {'feed': {}, 'status': 403, 'version': '', 'enco...o_exception': SAXParseException('syntax error',)}} args = () kwargs = {} /var/www/www.votavox.com/VotaVox/vidscraper/sites/youtube.py in wrapper(url=u'http://www.youtube.com/watch?v=BQaqCaIDW1Q&feature=popular', shortmem={'base_etree':
, 'parsed_feed': {'feed': {}, 'status': 403, 'version': '', 'enco...o_exception': SAXParseException('syntax error',)}}) 93 feed = feedparser.parse(api_url) 94 shortmem['parsed_feed'] = feed 95 return func(url, shortmem) 96 return wrapper 97 func =
url = u'http://www.youtube.com/watch?v=BQaqCaIDW1Q&feature=popular' shortmem = {'base_etree':
, 'parsed_feed': {'feed': {}, 'status': 403, 'version': '', 'enco...o_exception': SAXParseException('syntax error',)}} /var/www/www.votavox.com/VotaVox/vidscraper/sites/youtube.py in get_tags(url=u'http://www.youtube.com/watch?v=BQaqCaIDW1Q&feature=popular', shortmem={'base_etree':
, 'parsed_feed': {'feed': {}, 'status': 403, 'version': '', 'enco...o_exception': SAXParseException('syntax error',)}}) 107 @provide_api 108 def get_tags(url, shortmem=None): 109 return [tag['term'] for tag in shortmem['parsed_feed'].entries[0].tags 110 if tag['scheme'] != 'http://schemas.google.com/g/2005#kind'] 111 tag undefined shortmem = {'base_etree':
, 'parsed_feed': {'feed': {}, 'status': 403, 'version': '', 'enco...o_exception': SAXParseException('syntax error',)}} ].entries undefined
: list index out of range __class__ =
__delattr__ =
__dict__ = {} __doc__ = 'Sequence index out of range.' __format__ =
__getattribute__ =
__getitem__ =
__getslice__ =
__hash__ =
__init__ =
__new__ =
__reduce__ =
__reduce_ex__ =
__repr__ =
__setattr__ =
__setstate__ =
__sizeof__ =
__str__ =
__subclasshook__ =
__unicode__ =
args = ('list index out of range',) message = 'list index out of range' The above is a description of an error in a Python program. Here is the original traceback: Traceback (most recent call last): File "/var/www/www.votavox.com/VotaVox/topics/media.py", line 108, in clean scraper = auto_scrape(embed_code) File "/var/www/www.votavox.com/VotaVox/vidscraper/__init__.py", line 42, in auto_scrape return scrape_suite(url, suite, fields) File "/var/www/www.votavox.com/VotaVox/vidscraper/__init__.py", line 34, in scrape_suite scraped_data[field] = func(url, shortmem=shortmem) File "/var/www/www.votavox.com/VotaVox/vidscraper/decorators.py", line 10, in new_scraper_func return scraper_func(url, shortmem=shortmem, *args, **kwargs) File "/var/www/www.votavox.com/VotaVox/vidscraper/sites/youtube.py", line 95, in wrapper return func(url, shortmem) File "/var/www/www.votavox.com/VotaVox/vidscraper/sites/youtube.py", line 109, in get_tags return [tag['term'] for tag in shortmem['parsed_feed'].entries[0].tags IndexError: list index out of range
VOTE on I support the concept of universal healthcare.:
Disagree
Add media to VotaVox:
Paste an embed code or URL from
YouTube
,
Google Video
,
Blip.tv
or
Vimeo
Embed our Voting Widget
Add your site's name to the voting widget.
Add site name (optional):
Embed Code:
(embed code will update)
Ask Someone You Know
Please
login
or
register
.
Translate
Please
login
to translate.
Notifications
Please
login
to set notifications.