“stomp.py” is a Python client library for accessing messaging servers (such as ActiveMQ or RabbitMQ) using the STOMP protocol (versions 1.0, 1.1 and 1.2). It can also be run as a standalone, command-line client for testing.
Apache License 2.0
491
stars
167
forks
source link
An error occurred when running the stompy example #412
I'm running a stompy example. When I run the "python stomptest.py This is a test" command according to the document, the following error message is displayed:
No handlers could be found for logger "stomp.py"
('what is self.socket', None)
Traceback (most recent call last):
File "stomptest.py", line 15, in
conn.connect('admin', 'password', wait=True)
File "/home/li/teststomp/lib/python2.7/site-packages/stomp/connect.py", line 174, in connect
self.transport.start()
File "/home/li/teststomp/lib/python2.7/site-packages/stomp/transport.py", line 111, in start
self.attempt_connection()
File "/home/li/teststomp/lib/python2.7/site-packages/stomp/transport.py", line 810, in attempt_connection
raise exception.ConnectFailedException()
stomp.exception.ConnectFailedException
I'm running a stompy example. When I run the "python stomptest.py This is a test" command according to the document, the following error message is displayed:
No handlers could be found for logger "stomp.py" ('what is self.socket', None) Traceback (most recent call last): File "stomptest.py", line 15, in
conn.connect('admin', 'password', wait=True)
File "/home/li/teststomp/lib/python2.7/site-packages/stomp/connect.py", line 174, in connect
self.transport.start()
File "/home/li/teststomp/lib/python2.7/site-packages/stomp/transport.py", line 111, in start
self.attempt_connection()
File "/home/li/teststomp/lib/python2.7/site-packages/stomp/transport.py", line 810, in attempt_connection
raise exception.ConnectFailedException()
stomp.exception.ConnectFailedException
Is there any solution?Thanks.
The document address is:http://jasonrbriggs.github.io/stomp.py/quickstart.html#stomp-py-api os==CentOS Linux stomp==4.1.24 Python == 2.7.5