[reportlab-users] PLz...plz.. Help - reportlab-pdf code..
tushar liladhar patil
tusharpatil1982 at rediffmail.com
Mon May 16 08:38:19 EDT 2005
I have this attached file downloaded from site:http://pythonforge.technomagic.net/modules.php?name=News&file=article&sid=8
I have installed
xml.dom.ext.reader import Sax2
HTMLgen
as per the requirment of python file.
but when i run the code
as python filename.py it will flag an error like:
[anand at inetcomp pythonPoint]$ python important.py
Creating New Testament
Traceback (most recent call last):
File "important.py", line 284, in ?
main()
File "important.py", line 274, in main
CreateReport("nt.xml")
File "important.py", line 267, in CreateReport
Dom = LoadDOM(filename)
File "important.py", line 30, in LoadDOM
doc = reader.fromStream(f)
File "/usr/lib/python2.3/site-packages/_xmlplus/dom/ext/reader/Sax2.py", line 372, in fromStream
self.parser.parse(s)
File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", line 109, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.3/site-packages/_xmlplus/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", line 216, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", line 395, in external_entity_ref
self._source.getSystemId() or
File "/usr/lib/python2.3/site-packages/_xmlplus/sax/saxutils.py", line 523, in prepare_input_source
f = urllib2.urlopen(source.getSystemId())
File "/usr/lib/python2.3/urllib2.py", line 129, in urlopen
return _opener.open(url, data)
File "/usr/lib/python2.3/urllib2.py", line 324, in open
type_ = req.get_type()
File "/usr/lib/python2.3/urllib2.py", line 226, in get_type
raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: ../common/tstmt.dtd
[anand at inetcomp pythonPoint]$
please help me it's urgent .....plz...plz...
if anything left mail me i will send info.
Thanking u
Tushar.....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://two.pairlist.net/pipermail/reportlab-users/attachments/20050516/4dc5caa2/attachment.html
More information about the reportlab-users
mailing list