[mod_python] PLz...plz.. Help - reportlab-pdf code..

tushar liladhar patil tusharpatil1982 at rediffmail.com
Mon May 16 08:44:42 EDT 2005

  I have this file downloaded from site:


I have installed
xml.dom.ext.reader import Sax2
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 ?
  File "important.py", line 274, in main
  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
  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
  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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20050516/3bd7270e/attachment-0001.html

More information about the Mod_python mailing list