rubys/venus — Issue #14: Failed Test: test_content_tag_soup (tests.test_reconstitute.ReconstituteTest)
Author: hossman
Created: 2011-11-14 02:51:24+00:00
State: open

# Summary

I cloned the git repo as of "9de21094a8cf565bdfcf75688e121a5ad1f5397b" and tried to follow the general instructions but encountered an error with "python runtests.py" Full output and the details i could think of that might be relevant (i'm not really a python guy) are below...

# Output

```
hossman@bester:~/venus [master] $ python runtests.py
Genshi is not available => can't test genshi filters
Redland RDF is not available => can't test FOAF reading lists
................................................................................................................E............................................................................................................
======================================================================
ERROR: test_content_tag_soup (tests.test_reconstitute.ReconstituteTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/hossman/venus/tests/test_reconstitute.py", line 43, in
func = lambda self, name=root: self.eval(name)
File "/home/hossman/venus/tests/test_reconstitute.py", line 26, in eval
results = feedparser.parse(data)
File "/home/hossman/venus/planet/vendor/feedparser.py", line 3602, in parse
feedparser.feed(data)
File "/home/hossman/venus/planet/vendor/feedparser.py", line 1723, in feed
sgmllib.SGMLParser.feed(self, data)
File "/usr/lib/python2.6/sgmllib.py", line 104, in feed
self.goahead(0)
File "/usr/lib/python2.6/sgmllib.py", line 143, in goahead
k = self.parse_endtag(i)
File "/usr/lib/python2.6/sgmllib.py", line 320, in parse_endtag
self.finish_endtag(tag)
File "/usr/lib/python2.6/sgmllib.py", line 360, in finish_endtag
self.unknown_endtag(tag)
File "/home/hossman/venus/planet/vendor/feedparser.py", line 580, in unknown_endtag
method()
File "/home/hossman/venus/planet/vendor/feedparser.py", line 1540, in _end_content
value = self.popContent('content')
File "/home/hossman/venus/planet/vendor/feedparser.py", line 867, in popContent
value = self.pop(tag)
File "/home/hossman/venus/planet/vendor/feedparser.py", line 782, in pop
mfresults = _parseMicroformats(output, self.baseuri, self.encoding)
File "/home/hossman/venus/planet/vendor/feedparser.py", line 2279, in _parseMicroformats
p = _MicroformatsParser(htmlSource, baseURI, encoding)
File "/home/hossman/venus/planet/vendor/feedparser.py", line 1884, in __init__
self.document = BeautifulSoup.BeautifulSoup(data)
File "/usr/lib/pymodules/python2.6/BeautifulSoup.py", line 1499, in __init__
BeautifulStoneSoup.__init__(self, *args, **kwargs)
File "/usr/lib/pymodules/python2.6/BeautifulSoup.py", line 1230, in __init__
self._feed(isHTML=isHTML)
File "/usr/lib/pymodules/python2.6/BeautifulSoup.py", line 1263, in _feed
self.builder.feed(markup)
File "/usr/lib/python2.6/HTMLParser.py", line 108, in feed
self.goahead(0)
File "/usr/lib/python2.6/HTMLParser.py", line 148, in goahead
k = self.parse_starttag(i)
File "/usr/lib/python2.6/HTMLParser.py", line 226, in parse_starttag
endpos = self.check_for_whole_start_tag(i)
File "/usr/lib/python2.6/HTMLParser.py", line 301, in check_for_whole_start_tag
self.error("malformed start tag")
File "/usr/lib/python2.6/HTMLParser.py", line 115, in error
raise HTMLParseError(message, self.getpos())
HTMLParseError: malformed start tag, at line 1, column 14

----------------------------------------------------------------------
Ran 221 tests in 19.080s

FAILED (errors=1)
```

# System Info
```
hossman@bester:~/venus [master] $ uname -a
Linux bester 2.6.31-23-generic #75-Ubuntu SMP Fri Mar 18 18:16:06 UTC 2011 x86_64 GNU/Linux
hossman@bester:~/venus [master] $ python --version
Python 2.6.4
hossman@bester:~/venus [master] $ dpkg --list | grep python
ii libpython2.6 2.6.4-0ubuntu3 Shared Python runtime library (version 2.6)
ii python 2.6.4-0ubuntu1 An interactive high-level object-oriented la
ii python-apport 1.9.3-0ubuntu4.2 apport crash report handling library
ii python-apt 0.7.13.2ubuntu4 Python interface to libapt-pkg
ii python-aptdaemon 0.10+bzr264-0ubuntu1 Python module for the server and client of a
ii python-aptdaemon-gtk 0.10+bzr264-0ubuntu1 Python GTK+ widgets to run an aptdaemon clie
ii python-avahi 0.6.25-1ubuntu5.3 Python utility package for Avahi
ii python-beautifulsoup 3.1.0.1-2 error-tolerant HTML parser for Python
ii python-brlapi 4.0-7ubuntu2 Python bindings for BrlAPI
ii python-cairo 1.8.6-1ubuntu1 Python bindings for the Cairo vector graphic
ii python-central 0.6.11ubuntu9 register and build utility for Python packag
ii python-cherrypy3 3.1.2-1 Python web development framework - version 3
ii python-chm 0.8.4-1 Python binding for CHMLIB
ii python-clientform 0.2.10-2 module for handling HTML forms on the client
ii python-configglue 0.2dev-0ubuntu2 Glues together optparse.OptionParser and Con
ii python-couchdb 0.6-1 library for working with Apache CouchDB
ii python-crypto 2.0.1+dfsg1-4ubuntu1 cryptographic algorithms and protocols for P
ii python-cssutils 0.9.5.1-1 CSS Cascading Style Sheets parser and builde
ii python-cups 1.9.46-0ubuntu2 Python bindings for CUPS
ii python-cupshelpers 1.1.12+git20090826-0ubuntu8 Python modules for printer configuration wit
ii python-dateutil 1.4.1-3 powerful extensions to the standard datetime
ii python-dbus 0.83.0-1ubuntu2 simple interprocess messaging system (Python
ii python-debian 0.1.14ubuntu1 Python modules to work with Debian-related d
ii python-desktopcouch 0.5-0ubuntu1 Python Desktop CouchDB
ii python-desktopcouch-records 0.5-0ubuntu1 Desktop CouchDB Records API
ii python-dev 2.6.4-0ubuntu1 Header files and a static library for Python
ii python-django 1.1.1-1ubuntu1.2 High-level Python web development framework
ii python-django-tagging 0.2.1+svn154-0ubuntu2 A generic tagging application for Django pro
ii python-encutils 0.9.5.1-1 Encoding detection collection for Python
ii python-fstab 1.4-0ubuntu1 read, manipulate, and write /etc/fstab files
ii python-gconf 2.28.0-0ubuntu1 Python bindings for the GConf configuration
ii python-gdbm 2.6.3-0ubuntu1 GNU dbm database support for Python
ii python-glade2 2.16.0-0ubuntu1 GTK+ bindings: Glade support
ii python-gmenu 2.28.0.1-0ubuntu1 an implementation of the freedesktop menu sp
ii python-gnome2 2.28.0-0ubuntu1 Python bindings for the GNOME desktop enviro
ii python-gnomeapplet 2.28.0-0ubuntu1 Python bindings for the GNOME panel applet l
ii python-gnomecanvas 2.28.0-0ubuntu1 Python bindings for gnomecanvas (debug exten
ii python-gnomekeyring 2.28.0-0ubuntu1 Python bindings for the GNOME keyring librar
ii python-gnupginterface 0.3.2-9ubuntu2 Python interface to GnuPG (GPG)
ii python-gobject 2.18.0-0ubuntu2 Python bindings for the GObject library
ii python-gst0.10 0.10.17-1 generic media-playing framework (Python bind
ii python-gtk2 2.16.0-0ubuntu1 Python bindings for the GTK+ widget set
ii python-gtkhtml2 2.25.3-3ubuntu1.9.10.1 Python bindings for the GtkHTML 2 library
ii python-gtksourceview2 2.8.0-1 Python bindings for the GtkSourceView widget
ii python-httplib2 0.4.0-0ubuntu2 A comprehensive HTTP client library written
ii python-ibus 1.2.0.20090927-2ubuntu2 New input method framework using dbus
ii python-imaging 1.1.6-3ubuntu1 Python Imaging Library
ii python-launchpad-integration 0.1.26 library for launchpad integration
ii python-launchpadlib 1.5.1-0ubuntu1 Launchpad web services client library
ii python-lazr-restfulclient 0.9.3-0ubuntu3 client for lazr.restful-based web services
ii python-lazr-uri 1.0-0ubuntu1 library for parsing, manipulating, and gener
ii python-libxml2 2.7.5.dfsg-1ubuntu1.2 Python bindings for the GNOME XML library
ii python-louis 1.7.0-1ubuntu1 Python bindings for liblouis
ii python-lxml 2.1.5-1ubuntu2 pythonic binding for the libxml2 and libxslt
ii python-mechanize 0.1.11-0ubuntu1 stateful programmatic web browsing
ii python-minimal 2.6.4-0ubuntu1 A minimal subset of the Python language (def
ii python-newt 0.52.10-4ubuntu1 A NEWT module for Python
ii python-notify 0.1.1-2build2 Python bindings for libnotify
ii python-numpy 1:1.3.0-3 Numerical Python adds a fast array facility
ii python-oauth 1.0a~svn1124-0ubuntu2 implementation of the OAuth protocol
ii python-openoffice 0.1+r34-1 Python libraries for interacting with OpenOf
ii python-openssl 0.9-1 Python wrapper around the OpenSSL library
ii python-pam 0.4.2-12ubuntu3 A Python interface to the PAM library
ii python-papyon 0.4.3-1ubuntu1 MSN client library written in Python
ii python-pkg-resources 0.6c9-0ubuntu5 Package Discovery and Resource Access using
ii python-problem-report 1.9.3-0ubuntu4.2 Python library to handle problem reports
ii python-protobuf 2.0.3-2.2ubuntu2 Python bindings for protocol buffers
ii python-pyatspi 1.28.1-0ubuntu1 Assistive Technology Service Provider Interf
ii python-pyinotify 0.8.6-2ubuntu2 simple Linux inotify Python bindings
ii python-pyorbit 2.24.0-0ubuntu3 A Python language binding for the ORBit2 COR
ii python-pypdf 1.12-2 PDF toolkit implemented solely in Python
ii python-qt4 4.6-1 Python bindings for Qt4
ii python-rdflib 2.4.0-5ubuntu1 RDF library containing an RDF triple store a
ii python-renderpm 2.3-0ubuntu1 python low level render interface
ii python-reportlab 2.3-0ubuntu1 ReportLab library to create PDF documents us
ii python-reportlab-accel 2.3-0ubuntu1 C coded extension accelerator for the Report
ii python-rsvg 2.28.0-0ubuntu1 Python bindings for the RSVG library
ii python-serial 2.3-1 pyserial - module encapsulating access for t
ii python-sexy 0.1.9-1ubuntu2 python language bindings for libsexy
ii python-simplejson 2.0.9-1 Simple, fast, extensible JSON encoder/decode
ii python-sip4 4.9.1-snapshot-20091015-0ubuntu1 Python/C++ bindings generator runtime librar
ii python-smbc 1.0.6-0ubuntu2 Python bindings for Samba clients (libsmbcli
ii python-software-properties 0.75.4 manage the repositories that you install sof
ii python-speechd 0.6.7+git20090914~unofficial-0ubuntu4 Python interface to Speech Dispatcher
ii python-support 1.0.3ubuntu1 automated rebuilding support for Python modu
ii python-telepathy 0.15.11-1 Python language bindings for telepathy
ii python-tk 2.6.3-0ubuntu1 Tkinter - Writing Tk applications with Pytho
ii python-twisted-bin 8.2.0-3 Event-based framework for internet applicati
ii python-twisted-core 8.2.0-3 Event-based framework for internet applicati
ii python-twisted-names 8.2.0-1ubuntu2 A DNS protocol implementation with client an
ii python-twisted-web 8.2.0-2ubuntu1 An HTTP protocol implementation together wit
ii python-ubuntuone-client 1.0.3-0ubuntu1 Ubuntu One client Python libraries
ii python-ubuntuone-storageprotocol 1.0.1-0ubuntu1 Python library for Ubuntu One file storage a
ii python-uniconvertor 1.1.4-1 Universal vector graphics translator
ii python-uno 1:3.2.0-7ubuntu1~karmic1 Python-UNO bridge
ii python-virtkey 0.50ubuntu2 Library to emulate keyboard keypresses.
ii python-vte 1:0.22.2-0ubuntu2.1 Python bindings for the VTE widget set
ii python-wadllib 1.1.2-0ubuntu1 Python library for navigating WADL files
ii python-webkit 1.1.5-1 WebKit/Gtk Python bindings
ii python-xapian 1.0.14-1build1 Xapian search engine interface for Python
ii python-xdg 0.15-1.1ubuntu5 A python library to access freedesktop.org s
ii python-xkit 0.4.2 library for the manipulation of the xorg.con
ii python-zope.interface 3.5.2-1 Zope 3 Interface Infrastructure
ii python2.4 2.4.6-1ubuntu3.2.9.10.1 An interactive high-level object-oriented la
ii python2.4-minimal 2.4.6-1ubuntu3.2.9.10.1 A minimal subset of the Python language (ver
ii python2.5 2.5.4-1ubuntu6.1 An interactive high-level object-oriented la
ii python2.5-minimal 2.5.4-1ubuntu6.1 A minimal subset of the Python language (ver
ii python2.6 2.6.4-0ubuntu3 An interactive high-level object-oriented la
ii python2.6-dev 2.6.4-0ubuntu3 Header files and a static library for Python
ii python2.6-minimal 2.6.4-0ubuntu3 A minimal subset of the Python language (ver

```