Hi Lynton,<br><br>which version of the Qpid Python libraries did you use?<br><br>I'm cross-posting this to the qpid-dev list... so the Qpid python guys (not me) can help out,<br><br>Cheers,<br>Rob<br><br><div><span class="gmail_quote">
On 28/09/2007, <b class="gmail_sendername">Lynton Grice</b> <<a href="mailto:lynton.grice@netweaverguru.com">lynton.grice@netweaverguru.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-GB">
<div>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA">Hi there,</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA"> </span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA">I hope someone
can help me ;-)..... I have been on the mail lists trying to find my problem
but still no luck ;-( I am an SAP integration specialist and I play alot in
Python, Erlang etc......and am VERY impressed so far with RabbitMQ.</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA"> </span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA">I have installed
the RabbitMQ Server (1.2.0).....and have installed the QPID Python libs.....and
I run on Windows XP....</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA"> </span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA">The server is up
and running on the default port etc.....</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA"> </span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA">BUT I cannot get
the Python code working properly or get the test runs going.......here is the
code below that is dying:</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA"> </span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA">import qpid</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA">from qpid.client
import Client</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA">from qpid.content
import Content</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA"> </span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA">client =
Client("<a href="http://127.0.0.1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">127.0.0.1</a>", 5672, spec=qpid.spec.load('amqp0-8.xml'))
"spec is in the same directory....</span></font></p>
<p style=""><font color="red" face="Courier New" size="2"><span style="font-size: 10pt; color: red;" lang="EN-ZA">client.start({ 'LOGIN': 'guest', 'PASSWORD': 'guest'}) </span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA"> </span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA">The client.start
method DIES.....and the user and password are correct....the error I get in
Wing IDE is:</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA"> </span></font></p>
<p style=""><font color="red" face="Courier New" size="2"><span style="font-size: 10pt; color: red;" lang="EN-ZA">Closed: </span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA"> </span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA">Traceback
(innermost last):</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA"> </span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA">File
"D:\tmp\Rabbit\rabbit.py", line 1, in ?</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA"> import qpid</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA">File "D:\tmp\Rabbit\rabbit.py",
line 8, in ?</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA"> client.start({
'LOGIN': 'guest', 'PASSWORD': 'guest'}) File
"D:\Python24\Lib\site-packages\qpid\client.py", line 83, in start</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA">
self.channel(0).connection_open(self.vhost)</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA">File
"D:\tmp\Rabbit\<string>", line 3, in connection_open File
"D:\Python24\Lib\site-packages\qpid\peer.py", line 182, in invoke</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA"> raise
Closed(self.reason)</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA"> </span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA">If I debug the
code it seems to go happily into the "client.py" code.....but when it
calls "self.wait()" but then executes the following and raises
"EOFError" because it seems to be closed or something</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA"> </span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA">self.started.wait()</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA"> if
self.closed:</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA"> raise
EOFError()</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA"> </span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA">I am probably
doing something very stupid....just wanted to know if I need to START something
on the server or install something like QPID? Or perhaps something else?</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA"> </span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA">Thanks for the
help.....I would appreciate any sort of feedback on this.....</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA"> </span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA">Thanks again ;-)</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA"> </span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA">Lynton</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-ZA"> </span></font></p>
</div>
</div>
<br>_______________________________________________<br>rabbitmq-discuss mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
</a><br><br></blockquote></div><br>