[rabbitmq-discuss] URGENT: Run-Tests failing...please help
Lynton Grice
lynton.grice at netweaverguru.com
Sun May 4 10:54:58 BST 2008
Hi there,
I would REALLY appreciate some help on running the tests against the
broker..
Here is my setup:
I am running RabbitMQ 1.3.0 (AMQP 8-0)..and the broker is running on
LOCALHOST: 5672 (using 'LOGIN': 'guest', 'PASSWORD': 'guest') - so the
broker is running 100%..
I am using PYTHON to connect to the broker and am sending a message to the
broker and receiving a message from it again...all working 100%......
I have also installed the QPID library (qpid-1.0-incubating-M2-python-src)
into my site packages in Python (D:\Python24\Lib\site-packages)..and
obviously have run setup.py etc..all seems fine...
Then I go to the command line, for example
D:\Python24\Lib\site-packages\qpid-1.0-incubating-M2-python-src\python and
run python run-tests
I get many many errors...I also tried different variations of python
run-tests -? to try different SPEC files etc..still errors...here is the
stack trace...
File
"D:\Python24\Lib\site-packages\qpid-1.0-incubating-M2-python-src\python\qpid
\testlib.py", line 123, in run
result = runner.run(self.testSuite())
File "D:\Python24\Lib\unittest.py", line 696, in run
test(result)
File "D:\Python24\Lib\unittest.py", line 428, in __call__
return self.run(*args, **kwds)
File "D:\Python24\Lib\unittest.py", line 424, in run
test(result)
File "D:\Python24\Lib\unittest.py", line 428, in __call__
return self.run(*args, **kwds)
File "D:\Python24\Lib\unittest.py", line 424, in run
test(result)
File "D:\Python24\Lib\unittest.py", line 428, in __call__
return self.run(*args, **kwds)
File "D:\Python24\Lib\unittest.py", line 424, in run
test(result)
File "D:\Python24\Lib\unittest.py", line 281, in __call__
return self.run(*args, **kwds)
File "D:\Python24\Lib\unittest.py", line 251, in run
self.setUp()
File
"D:\Python24\Lib\site-packages\qpid-1.0-incubating-M2-python-src\python\qpid
\testlib.py", line 162, in setUp
self.client = self.connect()
File
"D:\Python24\Lib\site-packages\qpid-1.0-incubating-M2-python-src\python\qpid
\testlib.py", line 174, in connect
return testrunner.connect(*args, **keys)
File
"D:\Python24\Lib\site-packages\qpid-1.0-incubating-M2-python-src\python\qpid
\testlib.py", line 139, in connect
client.start({"LOGIN": user, "PASSWORD": password})
File
"D:\Python24\Lib\site-packages\qpid-1.0-incubating-M2-python-src\python\qpid
\client.py", line 82, in start
self.wait()
File
"D:\Python24\Lib\site-packages\qpid-1.0-incubating-M2-python-src\python\qpid
\client.py", line 60, in wait
raise EOFError()
I have debugged the run-tests in WingIDE and it seems to CONNECT fine but
then it goes to the testlib.py class and dies on the client.start method.
def connect(self, host=None, port=None, spec=None, user=None,
password=None):
"""Connect to the broker, returns a qpid.client.Client"""
host = host or self.host
port = port or self.port
spec = spec or self.spec
user = user or self.user
password = password or self.password
client = qpid.client.Client(host, port, qpid.spec.load(spec))
client.start({"LOGIN": user, "PASSWORD": password})
return client
Debugging further I can see it goes into the peer.py class and into the
following code:
def invoke(self, method, args, content = None):
if self.closed:
raise Closed(self.reason)
frame = Frame(self.id, Method(method, *args))
self.outgoing.put(frame)
if method.content:
if content == None:
content = Content()
self.write_content(method.klass, content, self.outgoing)
try:
# here we depend on all nowait fields being named nowait
f = method.fields.byname["nowait"]
nowait = args[method.fields.index(f)]
except KeyError:
nowait = False
It dies on the above code f = method.fields.byname["nowait"]...
I am sure this must be with some VERSION problem or something??
Can anyone PLEASE give me some advise, I would really appreciate it ;-)
Looking forward to hearing back from you!
Regards
Lynton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20080504/25add454/attachment.htm
More information about the rabbitmq-discuss
mailing list