with your patch I can make work the hello_world successfully :)
Gordon Sim wrote: > > ffrenchm wrote: >> I tested the packaged python client >> (http://www.apache.org/dist/qpid/M4/qpid-python-M4.tar.gz) and I've the >> same >> problem (see bellow). Is there any python version prerequisites (mine is >> 2.5). > > Sorry for the earlier incorrect diagnosis! As a temporary workaround you > could try the attached patch to set the dtd to be a valid file:// url. > I'm guessing the version of your xml processing libraries is different > from those tested on, and the processing of the dtd is somehow different. > > Anyone have any insight as to what might be going on here? Can we turn > off the loading of the dtd easily? > >> >> [mffre...@dekatonshir:~/work/QUEUERS/QPID/qpid-M4]%echo $PYTHONPATH >> /home/mffrench/work/QUEUERS/QPID/qpid-M4/python >> [mffre...@dekatonshir:~/work/QUEUERS/QPID/qpid-M4]%ls >> hello-world python specs >> [mffre...@dekatonshir:~/work/QUEUERS/QPID/qpid-M4]%ls specs/ >> amqp.0-10.dtd amqp.0-10-qpid-errata.xml amqp.0-8.xml >> amqp-dtx-preview.0-9.xml amqp-nogen.0-9.xml LICENSE >> NOTICE >> amqp.0-10-preview.xml amqp.0-10.xml amqp.0-9.xml >> amqp-errata.0-9.xml cluster.0-8.xml management-schema.xml >> [mffre...@dekatonshir:~/work/QUEUERS/QPID/qpid-M4]%./hello-world >> Traceback (most recent call last): >> File "./hello-world", line 36, in <module> >> conn = Connection(connect(broker, port)) >> File >> "/home/mffrench/work/QUEUERS/QPID/qpid-M4/python/qpid/connection.py", >> line 69, in __init__ >> spec = load(default()) >> File "/home/mffrench/work/QUEUERS/QPID/qpid-M4/python/qpid/spec010.py", >> line 679, in load >> doc = mllib.xml_parse(xml) >> File >> "/home/mffrench/work/QUEUERS/QPID/qpid-M4/python/mllib/__init__.py", >> line 59, in xml_parse >> xml.sax.parse(source, p) >> File "/usr/lib/python2.5/site-packages/_xmlplus/sax/__init__.py", line >> 31, >> in parse >> parser.parse(filename_or_stream) >> File "/usr/lib/python2.5/site-packages/_xmlplus/sax/expatreader.py", >> line >> 109, in parse >> xmlreader.IncrementalParser.parse(self, source) >> File "/usr/lib/python2.5/site-packages/_xmlplus/sax/xmlreader.py", line >> 123, in parse >> self.feed(buffer) >> File "/usr/lib/python2.5/site-packages/_xmlplus/sax/expatreader.py", >> line >> 216, in feed >> self._parser.Parse(data, isFinal) >> File "/usr/lib/python2.5/site-packages/_xmlplus/sax/expatreader.py", >> line >> 396, in external_entity_ref >> "") >> File "/usr/lib/python2.5/site-packages/_xmlplus/sax/saxutils.py", line >> 523, in prepare_input_source >> f = urllib2.urlopen(source.getSystemId()) >> File "/usr/lib/python2.5/urllib2.py", line 124, in urlopen >> return _opener.open(url, data) >> File "/usr/lib/python2.5/urllib2.py", line 373, in open >> protocol = req.get_type() >> File "/usr/lib/python2.5/urllib2.py", line 244, in get_type >> raise ValueError, "unknown url type: %s" % self.__original >> ValueError: unknown url type: >> /home/mffrench/work/QUEUERS/QPID/qpid-M4/specs/amqp.0-10.dtd >> >> >> >> ffrenchm wrote: >>> hello, >>> >>> I already checkouted the specs folder under trunk/qpid : >>> [mffre...@dekatonshir:~/work/QUEUERS/QPID/trunk/qpid]%ls -al >>> /home/mffrench/work/QUEUERS/QPID/trunk/qpid/specs/ >>> total 1284 >>> drwxr-xr-x 3 mffrench mffrench 4096 2009-02-17 18:18 . >>> drwxr-xr-x 15 mffrench mffrench 4096 2009-02-17 18:18 .. >>> -rw-r--r-- 1 mffrench mffrench 9383 2009-02-17 18:18 amqp.0-10.dtd >>> -rw-r--r-- 1 mffrench mffrench 280203 2009-02-17 18:18 >>> amqp.0-10-preview.xml >>> -rw-r--r-- 1 mffrench mffrench 256524 2009-02-17 18:18 >>> amqp.0-10-qpid-errata.xml >>> -rw-r--r-- 1 mffrench mffrench 256419 2009-02-17 18:18 amqp.0-10.xml >>> -rw-r--r-- 1 mffrench mffrench 149480 2009-02-17 18:18 amqp.0-8.xml >>> -rw-r--r-- 1 mffrench mffrench 214161 2009-02-17 18:18 amqp.0-9.xml >>> -rw-r--r-- 1 mffrench mffrench 41935 2009-02-17 18:18 >>> amqp-dtx-preview.0-9.xml >>> -rw-r--r-- 1 mffrench mffrench 1749 2009-02-17 18:18 >>> amqp-errata.0-9.xml >>> -rw-r--r-- 1 mffrench mffrench 1420 2009-02-17 18:18 >>> amqp-nogen.0-9.xml >>> -rw-r--r-- 1 mffrench mffrench 1764 2009-02-17 18:18 cluster.0-8.xml >>> -rw-r--r-- 1 mffrench mffrench 18564 2009-02-17 18:18 LICENSE >>> -rw-r--r-- 1 mffrench mffrench 18158 2009-02-17 18:18 >>> management-schema.xml >>> -rw-r--r-- 1 mffrench mffrench 287 2009-02-17 18:18 NOTICE >>> drwxr-xr-x 6 mffrench mffrench 4096 2009-02-23 13:16 .svn >>> >>> ++ >>> >>> >>> >>> Gordon Sim wrote: >>>> ffrenchm wrote: >>>>> raise ValueError, "unknown url type: %s" % self.__original >>>>> ValueError: unknown url type: >>>>> /home/mffrench/work/QUEUERS/QPID/trunk/qpid/specs/amqp.0-10.dtd >>>>> >>>>> I'm working on Ubuntu 7.10 system. Do you have any idea what I can do >>>>> to >>>>> make python tools working ? >>>> I think you just need to checkout the specs folder under /trunk/qpid >>>> (or >>>> at least amqp.0-10-qpid-errata.xml and amqp.0-10.dtd which contain the >>>> 0-10 spec). >>>> >>>> --------------------------------------------------------------------- >>>> Apache Qpid - AMQP Messaging Implementation >>>> Project: http://qpid.apache.org >>>> Use/Interact: mailto:[email protected] >>>> >>>> >>>> >>> >> > > > Index: specs/amqp.0-10-qpid-errata.xml > =================================================================== > --- specs/amqp.0-10-qpid-errata.xml (revision 747695) > +++ specs/amqp.0-10-qpid-errata.xml (working copy) > @@ -121,7 +121,7 @@ > > --> > > -<!DOCTYPE amqp SYSTEM "amqp.0-10.dtd"> > +<!DOCTYPE amqp SYSTEM > "file:///home/mffrench/work/QUEUERS/QPID/qpid-M4/specs/amqp.0-10.dtd"> > > <amqp xmlns="http://www.amqp.org/schema/amqp.xsd" > major="0" minor="10" port="5672"> > > > --------------------------------------------------------------------- > Apache Qpid - AMQP Messaging Implementation > Project: http://qpid.apache.org > Use/Interact: mailto:[email protected] > -- View this message in context: http://n2.nabble.com/QPID-C%2B%2B-Broker-%2B-persistent-store-tp2372671p2383355.html Sent from the Apache Qpid users mailing list archive at Nabble.com. --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:[email protected]
