qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ffrenchm <ffrench.mathi...@gmail.com>
Subject Re: Python and location of spec files (was Re: QPID C++ Broker + persistent store)
Date Wed, 25 Feb 2009 11:00:11 GMT

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). 

[mffrench@dekatonshir:~/work/QUEUERS/QPID/qpid-M4]%echo $PYTHONPATH 
/home/mffrench/work/QUEUERS/QPID/qpid-M4/python
[mffrench@dekatonshir:~/work/QUEUERS/QPID/qpid-M4]%ls 
hello-world  python  specs
[mffrench@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
[mffrench@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 :
> [mffrench@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:users-subscribe@qpid.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://n2.nabble.com/QPID-C%2B%2B-Broker-%2B-persistent-store-tp2372671p2383097.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:users-subscribe@qpid.apache.org


Mime
View raw message