<div>Running: IronPython 1.0.2190 (Beta) on .NET 2.0.50727.42</div>
<div> </div>
<div>C:\IronPython\Lib>ironpythonconsole sgmllib.py "c:\webhost\index.html"<br>Traceback (most recent call last):<br> File C:\Documents and Settings\user\My Documents\Develop\IronPython\Lib\sgmllib.py, line 511, in Initialize
<br> File C:\Documents and Settings\user\My Documents\Develop\IronPython\Lib\sgmllib.py, line 506, in test$f38<br> File C:\Documents and Settings\user\My Documents\Develop\IronPython\Lib\sgmllib.py, line 95, in feed$f4<br>
File C:\Documents and Settings\user\My Documents\Develop\IronPython\Lib\sgmllib.py, line 116, in goahead$f7<br>TypeError: search() takes exactly 2 argument (3 given)</div>
<div> </div>
<div>I copied both sgmllib.py and its dependency markupbase.py into the IronPython's Lib directory before running the script. The two files are from Python 2.4 Library. The script runs with python 2.4 and prints out the html tags and data in the console.
</div>
<div> </div>
<div>Mark Pilgrim's discusses sgmllib.py in Dive Into Python [<a href="http://diveintopython.org/html_processing/introducing_sgmllib.html">http://diveintopython.org/html_processing/introducing_sgmllib.html</a>]</div>
<div> </div>
<div>My overall objective is to get IronPython to run Mark Pilgrim's feedparser.py [<a href="http://feedparser.org">http://feedparser.org</a>]</div>
<div> </div>
<div>feedparser.py imports sgmllib, re, sys, copy, urlparse, time, rfc822, types, cgi, urllib, urllib2, CStringIO/StringIO, gzip/zlib, xml.sax, base64, binascii, cjkcodecs.aliases and a few other modules. So, it will be interesting.
</div>
<div> </div>
<div>Thanks in advance.</div>