My favorites | Sign in
Project Logo
                
Details: Show all Hide all

Last 7 days

  • Jan 04, 2010
    issue 11 (Wrong number of arguments for ConnectionListener.on_disconne...) commented on by fqyang   -   I have the same problem. 'co_varnames' means all the arguments and local variables, so 'co_argcount' should be used in order to calculate the number of arguments
    I have the same problem. 'co_varnames' means all the arguments and local variables, so 'co_argcount' should be used in order to calculate the number of arguments
  • Jan 03, 2010
    issue 11 (Wrong number of arguments for ConnectionListener.on_disconne...) commented on by fqyang   -   I have the same problem
    I have the same problem

Last 30 days

  • Dec 28, 2009
    issue 11 (Wrong number of arguments for ConnectionListener.on_disconne...) reported by byron.clark   -   The code in Connection.__notify for the python2.x version of stomp.py doesn't correctly calculate how many arguments the ConnectionListener functions expect. It appears that the calculation is correct in the python3.x version. The attached patch for the python2.x version makes the logic the same as the python3.x version.
    The code in Connection.__notify for the python2.x version of stomp.py doesn't correctly calculate how many arguments the ConnectionListener functions expect. It appears that the calculation is correct in the python3.x version. The attached patch for the python2.x version makes the logic the same as the python3.x version.
  • Dec 12, 2009
    issue 9 (Receiver loop issue.) Status changed by jasonrbriggs   -   I haven't been able to reproduce this. Do you have a sample script that I can try locally?
    Status: Started
    I haven't been able to reproduce this. Do you have a sample script that I can try locally?
    Status: Started

Older

  • Dec 09, 2009
    issue 10 (Generalized socket creation operation) reported by ftoffice...@gmail.com   -   stomppy use socket.socket() directly to create a socket, and assume it unblocking. This may not be true with some global socket functions, such as socket.setdefaulttimeout(). To solve the problem, I extract the socket creation operation, so I am able to hook it. See my patch [http://blog.ftofficer.com/pub/patches/stomppy/socket_factory.patch here] or the attached copy. After apply the patch, user can use the following code snippet to workaround the issue: <pre> import stomppy import socket def MySocketFactory(*args, **kwargs): sock = socket.socket(*args, **kwargs) sock.setblocking(0) return sock stomppy._SocketFactory = MySocketFactory </pre>
    stomppy use socket.socket() directly to create a socket, and assume it unblocking. This may not be true with some global socket functions, such as socket.setdefaulttimeout(). To solve the problem, I extract the socket creation operation, so I am able to hook it. See my patch [http://blog.ftofficer.com/pub/patches/stomppy/socket_factory.patch here] or the attached copy. After apply the patch, user can use the following code snippet to workaround the issue: <pre> import stomppy import socket def MySocketFactory(*args, **kwargs): sock = socket.socket(*args, **kwargs) sock.setblocking(0) return sock stomppy._SocketFactory = MySocketFactory </pre>
  • Dec 02, 2009
    issue 9 (Receiver loop issue.) reported by bwghughes   -   What steps will reproduce the problem? 1. Python 2.6, Windows, ActiveMQ 5.3 2. Publishing messages What is the expected output? What do you see instead? Expect to see the message put on the queue. What version of the product are you using? On what operating system? Please provide any additional information below. Log output. DEBUG:stomp.py:Attempting connection to host 127.0.0.1, port 61613 INFO:stomp.py:Established connection to host 127.0.0.1, port 61613 DEBUG:stomp.py:starting receiver loop ERROR:stomp.py:An unhandled exception was encountered in the stomp receiver loop Traceback (most recent call last): File "C:\python26\lib\site-packages\stomp\stomp.py", line 460, in __receiver_loop (frame_type, headers, body) = self.__parse_frame(frame) File "C:\python26\lib\site-packages\stomp\stomp.py", line 601, in __parse_frame frame_type = preamble_lines[first_line] IndexError: list index out of range DEBUG:stomp.py:Sent frame: type=CONNECT, headers={'passcode': '', 'login': ''}, body='' DEBUG:stomp.py:Attempting connection to host 127.0.0.1, port 61613 INFO:stomp.py:Established connection to host 127.0.0.1, port 61613 DEBUG:stomp.py:Sent frame: type=CONNECT, headers={'passcode': '', 'login': ''}, body='' DEBUG:stomp.py:starting receiver loop DEBUG:stomp.py:Sent frame: type=SUBSCRIBE, headers={'ack': 'auto', 'destination': '/queue/TOOL.DEFAULT'}, body='' ERROR:stomp.py:An unhandled exception was encountered in the stomp receiver loop Traceback (most recent call last): File "C:\python26\lib\site-packages\stomp\stomp.py", line 460, in __receiver_loop (frame_type, headers, body) = self.__parse_frame(frame) File "C:\python26\lib\site-packages\stomp\stomp.py", line 601, in __parse_frame frame_type = preamble_lines[first_line] IndexError: list index out of range DEBUG:stomp.py:Attempting connection to host 127.0.0.1, port 61613 INFO:stomp.py:Established connection to host 127.0.0.1, port 61613 DEBUG:stomp.py:Sent frame: type=CONNECT, headers={'passcode': '', 'login': ''}, body='' DEBUG:stomp.py:Sent frame: type=SUBSCRIBE, headers={'ack': 'auto', 'destination': '/queue/TOOL.DEFAULT'}, body='' DEBUG:stomp.py:Sent frame: type=SEND, headers={'destination': '/queue/TOOL.DEFAULT'}, body='<?xml version="1.0" encoding="utf-8"?> \n<Quot xmlns="http://www.fixprotocol.org/FIXML-5-0-SP2" \n xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \n xsi:schemaLocation="http://www.fixprotocol.org/FIXML-5-0-SP2 \n file:c:/local/fixmlschema5.0/fixml-main-5-0-SP2.xsd" QID="975a8d70-df2d- 11de-bc3e-002170dcdefd" BidPx="100.1" OfrPx="100.2" BidSz="10000" OfrSz="30000">\n\n <Instrmt Sym="IUYTiyu8394767"/> \n </Quot>\n' DEBUG:stomp.py:Sent frame: type=DISCONNECT, headers={'passcode': '', 'login': ''}, body='' DEBUG:stomp.py:Attempting connection to host 127.0.0.1, port 61613 INFO:stomp.py:Established connection to host 127.0.0.1, port 61613 DEBUG:stomp.py:Sent frame: type=CONNECT, headers={'passcode': '', 'login': ''}, body='' DEBUG:stomp.py:Sent frame: type=SUBSCRIBE, headers={'ack': 'auto', 'destination': '/queue/TOOL.DEFAULT'}, body='' DEBUG:stomp.py:Sent frame: type=SEND, headers={'destination': '/queue/TOOL.DEFAULT'}, body='<?xml version="1.0" encoding="utf-8"?> \n<Quot xmlns="http://www.fixprotocol.org/FIXML-5-0-SP2" \n xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \n xsi:schemaLocation="http://www.fixprotocol.org/FIXML-5-0-SP2 \n file:c:/local/fixmlschema5.0/fixml-main-5-0-SP2.xsd" QID="be140900-df2d- 11de-9193-002170dcdefd" BidPx="100.1" OfrPx="100.2" BidSz="10000" OfrSz="30000">\n\n <Instrmt Sym="IUYTiyu8394767"/> \n </Quot>\n' DEBUG:stomp.py:Sent frame: type=DISCONNECT, headers={'passcode': '', 'login': ''}, body='' DEBUG:stomp.py:Attempting connection to host 127.0.0.1, port 61613 INFO:stomp.py:Established connection to host 127.0.0.1, port 61613 DEBUG:stomp.py:starting receiver loop DEBUG:stomp.py:Sent frame: type=CONNECT, headers={'passcode': '', 'login': ''}, body='' DEBUG:stomp.py:Sent frame: type=SUBSCRIBE, headers={'ack': 'auto', 'destination': '/queue/TOOL.DEFAULT'}, body='' DEBUG:stomp.py:Sent frame: type=SEND, headers={'destination': '/queue/TOOL.DEFAULT'}, body='<?xml version="1.0" encoding="utf-8"?> \n<Quot xmlns="http://www.fixprotocol.org/FIXML-5-0-SP2" \n xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \n xsi:schemaLocation="http://www.fixprotocol.org/FIXML-5-0-SP2 \n file:c:/local/fixmlschema5.0/fixml-main-5-0-SP2.xsd" QID="c6cba20f-df2d- 11de-8fce-002170dcdefd" BidPx="100.1" OfrPx="100.2" BidSz="10000" OfrSz="30000">\n\n <Instrmt Sym="IUYTiyu8394767"/> \n </Quot>\n' DEBUG:stomp.py:Sent frame: type=DISCONNECT, headers={'passcode': '', 'login': ''}, body='' DEBUG:stomp.py:Attempting connection to host 127.0.0.1, port 61613 INFO:stomp.py:Established connection to host 127.0.0.1, port 61613 DEBUG:stomp.py:Sent frame: type=CONNECT, headers={'passcode': '', 'login': ''}, body='' DEBUG:stomp.py:Sent frame: type=SUBSCRIBE, headers={'ack': 'auto', 'destination': '/queue/TOOL.DEFAULT'}, body='' DEBUG:stomp.py:Sent frame: type=SEND, headers={'destination': '/queue/TOOL.DEFAULT'}, body='<?xml version="1.0" encoding="utf-8"?> \n<Quot xmlns="http://www.fixprotocol.org/FIXML-5-0-SP2" \n xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \n xsi:schemaLocation="http://www.fixprotocol.org/FIXML-5-0-SP2 \n file:c:/local/fixmlschema5.0/fixml-main-5-0-SP2.xsd" QID="ccd950d1-df2d- 11de-808a-002170dcdefd" BidPx="100.1" OfrPx="100.2" BidSz="10000" OfrSz="30000">\n\n <Instrmt Sym="IUYTiyu8394767"/> \n </Quot>\n' DEBUG:stomp.py:Sent frame: type=DISCONNECT, headers={'passcode': '', 'login': ''}, body='' DEBUG:stomp.py:Attempting connection to host 127.0.0.1, port 61613 INFO:stomp.py:Established connection to host 127.0.0.1, port 61613 DEBUG:stomp.py:starting receiver loop ERROR:stomp.py:An unhandled exception was encountered in the stomp receiver loop Traceback (most recent call last): File "C:\python26\lib\site-packages\stomp\stomp.py", line 460, in __receiver_loop (frame_type, headers, body) = self.__parse_frame(frame) File "C:\python26\lib\site-packages\stomp\stomp.py", line 601, in __parse_frame frame_type = preamble_lines[first_line] IndexError: list index out of range
    What steps will reproduce the problem? 1. Python 2.6, Windows, ActiveMQ 5.3 2. Publishing messages What is the expected output? What do you see instead? Expect to see the message put on the queue. What version of the product are you using? On what operating system? Please provide any additional information below. Log output. DEBUG:stomp.py:Attempting connection to host 127.0.0.1, port 61613 INFO:stomp.py:Established connection to host 127.0.0.1, port 61613 DEBUG:stomp.py:starting receiver loop ERROR:stomp.py:An unhandled exception was encountered in the stomp receiver loop Traceback (most recent call last): File "C:\python26\lib\site-packages\stomp\stomp.py", line 460, in __receiver_loop (frame_type, headers, body) = self.__parse_frame(frame) File "C:\python26\lib\site-packages\stomp\stomp.py", line 601, in __parse_frame frame_type = preamble_lines[first_line] IndexError: list index out of range DEBUG:stomp.py:Sent frame: type=CONNECT, headers={'passcode': '', 'login': ''}, body='' DEBUG:stomp.py:Attempting connection to host 127.0.0.1, port 61613 INFO:stomp.py:Established connection to host 127.0.0.1, port 61613 DEBUG:stomp.py:Sent frame: type=CONNECT, headers={'passcode': '', 'login': ''}, body='' DEBUG:stomp.py:starting receiver loop DEBUG:stomp.py:Sent frame: type=SUBSCRIBE, headers={'ack': 'auto', 'destination': '/queue/TOOL.DEFAULT'}, body='' ERROR:stomp.py:An unhandled exception was encountered in the stomp receiver loop Traceback (most recent call last): File "C:\python26\lib\site-packages\stomp\stomp.py", line 460, in __receiver_loop (frame_type, headers, body) = self.__parse_frame(frame) File "C:\python26\lib\site-packages\stomp\stomp.py", line 601, in __parse_frame frame_type = preamble_lines[first_line] IndexError: list index out of range DEBUG:stomp.py:Attempting connection to host 127.0.0.1, port 61613 INFO:stomp.py:Established connection to host 127.0.0.1, port 61613 DEBUG:stomp.py:Sent frame: type=CONNECT, headers={'passcode': '', 'login': ''}, body='' DEBUG:stomp.py:Sent frame: type=SUBSCRIBE, headers={'ack': 'auto', 'destination': '/queue/TOOL.DEFAULT'}, body='' DEBUG:stomp.py:Sent frame: type=SEND, headers={'destination': '/queue/TOOL.DEFAULT'}, body='<?xml version="1.0" encoding="utf-8"?> \n<Quot xmlns="http://www.fixprotocol.org/FIXML-5-0-SP2" \n xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \n xsi:schemaLocation="http://www.fixprotocol.org/FIXML-5-0-SP2 \n file:c:/local/fixmlschema5.0/fixml-main-5-0-SP2.xsd" QID="975a8d70-df2d- 11de-bc3e-002170dcdefd" BidPx="100.1" OfrPx="100.2" BidSz="10000" OfrSz="30000">\n\n <Instrmt Sym="IUYTiyu8394767"/> \n </Quot>\n' DEBUG:stomp.py:Sent frame: type=DISCONNECT, headers={'passcode': '', 'login': ''}, body='' DEBUG:stomp.py:Attempting connection to host 127.0.0.1, port 61613 INFO:stomp.py:Established connection to host 127.0.0.1, port 61613 DEBUG:stomp.py:Sent frame: type=CONNECT, headers={'passcode': '', 'login': ''}, body='' DEBUG:stomp.py:Sent frame: type=SUBSCRIBE, headers={'ack': 'auto', 'destination': '/queue/TOOL.DEFAULT'}, body='' DEBUG:stomp.py:Sent frame: type=SEND, headers={'destination': '/queue/TOOL.DEFAULT'}, body='<?xml version="1.0" encoding="utf-8"?> \n<Quot xmlns="http://www.fixprotocol.org/FIXML-5-0-SP2" \n xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \n xsi:schemaLocation="http://www.fixprotocol.org/FIXML-5-0-SP2 \n file:c:/local/fixmlschema5.0/fixml-main-5-0-SP2.xsd" QID="be140900-df2d- 11de-9193-002170dcdefd" BidPx="100.1" OfrPx="100.2" BidSz="10000" OfrSz="30000">\n\n <Instrmt Sym="IUYTiyu8394767"/> \n </Quot>\n' DEBUG:stomp.py:Sent frame: type=DISCONNECT, headers={'passcode': '', 'login': ''}, body='' DEBUG:stomp.py:Attempting connection to host 127.0.0.1, port 61613 INFO:stomp.py:Established connection to host 127.0.0.1, port 61613 DEBUG:stomp.py:starting receiver loop DEBUG:stomp.py:Sent frame: type=CONNECT, headers={'passcode': '', 'login': ''}, body='' DEBUG:stomp.py:Sent frame: type=SUBSCRIBE, headers={'ack': 'auto', 'destination': '/queue/TOOL.DEFAULT'}, body='' DEBUG:stomp.py:Sent frame: type=SEND, headers={'destination': '/queue/TOOL.DEFAULT'}, body='<?xml version="1.0" encoding="utf-8"?> \n<Quot xmlns="http://www.fixprotocol.org/FIXML-5-0-SP2" \n xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \n xsi:schemaLocation="http://www.fixprotocol.org/FIXML-5-0-SP2 \n file:c:/local/fixmlschema5.0/fixml-main-5-0-SP2.xsd" QID="c6cba20f-df2d- 11de-8fce-002170dcdefd" BidPx="100.1" OfrPx="100.2" BidSz="10000" OfrSz="30000">\n\n <Instrmt Sym="IUYTiyu8394767"/> \n </Quot>\n' DEBUG:stomp.py:Sent frame: type=DISCONNECT, headers={'passcode': '', 'login': ''}, body='' DEBUG:stomp.py:Attempting connection to host 127.0.0.1, port 61613 INFO:stomp.py:Established connection to host 127.0.0.1, port 61613 DEBUG:stomp.py:Sent frame: type=CONNECT, headers={'passcode': '', 'login': ''}, body='' DEBUG:stomp.py:Sent frame: type=SUBSCRIBE, headers={'ack': 'auto', 'destination': '/queue/TOOL.DEFAULT'}, body='' DEBUG:stomp.py:Sent frame: type=SEND, headers={'destination': '/queue/TOOL.DEFAULT'}, body='<?xml version="1.0" encoding="utf-8"?> \n<Quot xmlns="http://www.fixprotocol.org/FIXML-5-0-SP2" \n xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \n xsi:schemaLocation="http://www.fixprotocol.org/FIXML-5-0-SP2 \n file:c:/local/fixmlschema5.0/fixml-main-5-0-SP2.xsd" QID="ccd950d1-df2d- 11de-808a-002170dcdefd" BidPx="100.1" OfrPx="100.2" BidSz="10000" OfrSz="30000">\n\n <Instrmt Sym="IUYTiyu8394767"/> \n </Quot>\n' DEBUG:stomp.py:Sent frame: type=DISCONNECT, headers={'passcode': '', 'login': ''}, body='' DEBUG:stomp.py:Attempting connection to host 127.0.0.1, port 61613 INFO:stomp.py:Established connection to host 127.0.0.1, port 61613 DEBUG:stomp.py:starting receiver loop ERROR:stomp.py:An unhandled exception was encountered in the stomp receiver loop Traceback (most recent call last): File "C:\python26\lib\site-packages\stomp\stomp.py", line 460, in __receiver_loop (frame_type, headers, body) = self.__parse_frame(frame) File "C:\python26\lib\site-packages\stomp\stomp.py", line 601, in __parse_frame frame_type = preamble_lines[first_line] IndexError: list index out of range
  • Oct 20, 2009
    SimpleExample (A simple example of using stomp.py.) Wiki page commented on by dbaktiar   -   But this code will throw error when you run it on Python 3.x. You also need to change the print statement to use the bracket syntax. e.g. {{{ print 'received an error %s' % message }}} to {{{ print('received an error %s' % message) }}}
    But this code will throw error when you run it on Python 3.x. You also need to change the print statement to use the bracket syntax. e.g. {{{ print 'received an error %s' % message }}} to {{{ print('received an error %s' % message) }}}
  • Oct 06, 2009
    issue 7 (stomp.py requires a hostname at compile time.) Status changed by jasonrbriggs   -  
    Status: Fixed
    Status: Fixed
  • Oct 01, 2009
    2 new revisions pushed by jasonrbriggs   -   ecc76f95e7:remove dos line endings, and shebang 19d38b9cfd:remove dos line endings
    ecc76f95e7:remove dos line endings, and shebang 19d38b9cfd:remove dos line endings
  • Sep 30, 2009
    stomp.py-2.3.tar.gz (stomp.py version 2.3 (for Python 3) ) file uploaded by jasonrbriggs   -  
    Labels: Featured Type-Archive
    Labels: Featured Type-Archive
  • Sep 30, 2009
    stomp.py-2.0.4.tar.gz (stomp.py version 2.0.4 (for Python 2) ) file uploaded by jasonrbriggs   -  
    Labels: Featured Type-Archive
    Labels: Featured Type-Archive
  • Sep 30, 2009
    2 new revisions pushed by jasonrbriggs   -   Revision 398e79e299:add license file to dist Revision 706d679f6a:add license file to dist
    Revision 398e79e299:add license file to dist Revision 706d679f6a:add license file to dist
  • Sep 27, 2009
    issue 7 (stomp.py requires a hostname at compile time.) commented on by s.traylen   -   Hi Jason, Yes that builds just fine: http://koji.fedoraproject.org/koji/taskinfo?taskID=1711558 Let me know if you plan a release this shortly or I will create a patch on 2.0.2 and integrate that. Many Thanks Steve
    Hi Jason, Yes that builds just fine: http://koji.fedoraproject.org/koji/taskinfo?taskID=1711558 Let me know if you plan a release this shortly or I will create a patch on 2.0.2 and integrate that. Many Thanks Steve
  • Sep 27, 2009
    issue 7 (stomp.py requires a hostname at compile time.) commented on by jasonrbriggs   -   Trying again... file didn't attach.
    Trying again... file didn't attach.
  • Sep 22, 2009
    4 new revisions pushed by jasonrbriggs   -   Revision 75c1d4dc83:update changelog Revision a0fc8b857d:update version Revision a8b28e2c5f:update ver, add DevNullLogger (possible fix for issue #8) Revision aea745125d:possible fix for issue #8 (null log)
    Revision 75c1d4dc83:update changelog Revision a0fc8b857d:update version Revision a8b28e2c5f:update ver, add DevNullLogger (possible fix for issue #8) Revision aea745125d:possible fix for issue #8 (null log)
  • Sep 22, 2009
    issue 8 (exception level in logging not recognized) Status changed by jasonrbriggs   -   I think the answer is to check if log is null and if so, use a DevNullLogger (i.e. a do-nothing logger)
    Status: Started
    I think the answer is to check if log is null and if so, use a DevNullLogger (i.e. a do-nothing logger)
    Status: Started
  • Sep 22, 2009
    issue 7 (stomp.py requires a hostname at compile time.) Status changed by jasonrbriggs   -   Sorry for the delay. Can you possibly try out the attached candidate fix?
    Status: Started
    Sorry for the delay. Can you possibly try out the attached candidate fix?
    Status: Started
  • Sep 14, 2009
    issue 8 (exception level in logging not recognized) Status changed by jasonrbriggs   -  
    Status: Accepted
    Status: Accepted
  • Sep 14, 2009
    issue 7 (stomp.py requires a hostname at compile time.) Status changed by jasonrbriggs   -   Perhaps logging a warning is the right approach. I'll have to give that some thought...
    Status: Accepted
    Perhaps logging a warning is the right approach. I'll have to give that some thought...
    Status: Accepted
  • Sep 10, 2009
    issue 8 (exception level in logging not recognized) reported by jordilin   -   I'm using this module in a script, and as I use logging, this module inherits the logging and throws an exception when trying to log another exception with log.exception(message). Unhandled exception in thread started by <bound method Connection.__receiver_loop of <stomp.stomp.Connection object at 0x7f715383a410>> Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 38, in apport_excepthook from apport.packaging_impl import impl as packaging ImportError: No module named apport.packaging_impl Original exception was: Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/stomp/stomp.py", line 466, in __receiver_loop log.exception("An unhandled exception was encountered in the stomp receiver loop") AttributeError: 'NoneType' object has no attribute 'exception' If I remove the log.exception, nothing is thrown out.
    I'm using this module in a script, and as I use logging, this module inherits the logging and throws an exception when trying to log another exception with log.exception(message). Unhandled exception in thread started by <bound method Connection.__receiver_loop of <stomp.stomp.Connection object at 0x7f715383a410>> Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 38, in apport_excepthook from apport.packaging_impl import impl as packaging ImportError: No module named apport.packaging_impl Original exception was: Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/stomp/stomp.py", line 466, in __receiver_loop log.exception("An unhandled exception was encountered in the stomp receiver loop") AttributeError: 'NoneType' object has no attribute 'exception' If I remove the log.exception, nothing is thrown out.
  • Sep 07, 2009
    issue 7 (stomp.py requires a hostname at compile time.) reported by s.traylen   -   What steps will reproduce the problem? 1. Build stomp.py in chroot with out a /etc/hosts file. What is the expected output? What do you see instead? To compile but instead + /usr/bin/python setup.py build Traceback (most recent call last): File "setup.py", line 2, in <module> import stomp File "/builddir/build/BUILD/stomp.py-2.0.2/stomp/__init__.py", line 68, in <module> import stomp File "/builddir/build/BUILD/stomp.py-2.0.2/stomp/stomp.py", line 36, in <module> class Connection(object): File "/builddir/build/BUILD/stomp.py-2.0.2/stomp/stomp.py", line 49, in Connection socket.gethostbyname(socket.gethostname()), socket.gaierror: [Errno -3] Temporary failure in name resolution error: Bad exit status from /var/tmp/rpm-tmp.4Un9ug (%build) What version of the product are you using? On what operating system? 2.0.2 Fedora 11 Please provide any additional information below. Hi, I wanted to build and provide stomp.py to Fedora and hopefully EPEL as well. One of the conditions of acceptance is that the build and compile must not require a working network configuration. Unfortunately when the .pyc files are made init is called and this includes. __localhost_names = [ "localhost", "127.0.0.1", socket.gethostbyname(socket.gethostname()), socket.gethostname(), socket.getfqdn(socket.gethostname()) ] I could patch these out simply and skip them but you may prefer if possible to not exit or something when these fail? These are actual packages yet to be submitted. http://cern.ch/straylen/rpms/python-stomppy/ The package name may become python-stomp instead yet. Many Thanks. Steve Attached is a full build log.
    What steps will reproduce the problem? 1. Build stomp.py in chroot with out a /etc/hosts file. What is the expected output? What do you see instead? To compile but instead + /usr/bin/python setup.py build Traceback (most recent call last): File "setup.py", line 2, in <module> import stomp File "/builddir/build/BUILD/stomp.py-2.0.2/stomp/__init__.py", line 68, in <module> import stomp File "/builddir/build/BUILD/stomp.py-2.0.2/stomp/stomp.py", line 36, in <module> class Connection(object): File "/builddir/build/BUILD/stomp.py-2.0.2/stomp/stomp.py", line 49, in Connection socket.gethostbyname(socket.gethostname()), socket.gaierror: [Errno -3] Temporary failure in name resolution error: Bad exit status from /var/tmp/rpm-tmp.4Un9ug (%build) What version of the product are you using? On what operating system? 2.0.2 Fedora 11 Please provide any additional information below. Hi, I wanted to build and provide stomp.py to Fedora and hopefully EPEL as well. One of the conditions of acceptance is that the build and compile must not require a working network configuration. Unfortunately when the .pyc files are made init is called and this includes. __localhost_names = [ "localhost", "127.0.0.1", socket.gethostbyname(socket.gethostname()), socket.gethostname(), socket.getfqdn(socket.gethostname()) ] I could patch these out simply and skip them but you may prefer if possible to not exit or something when these fail? These are actual packages yet to be submitted. http://cern.ch/straylen/rpms/python-stomppy/ The package name may become python-stomp instead yet. Many Thanks. Steve Attached is a full build log.
  • Sep 03, 2009
    issue 4 (Provide means to stop reconnections) commented on by konstantin.selivanov   -   It would be nice if you apply this patch. In my case it's a huge problem. Thank you!
    It would be nice if you apply this patch. In my case it's a huge problem. Thank you!
  • Sep 02, 2009
    SimpleExample (A simple example of using stomp.py.) Wiki page commented on by enricu   -   how do I make to not take this error: ImportError: No module named stomp. I'm copy/pasting the code above. I'm newer with python and I realise I miss something.
    how do I make to not take this error: ImportError: No module named stomp. I'm copy/pasting the code above. I'm newer with python and I realise I miss something.
  • Sep 01, 2009
    2 new revisions pushed by jasonrbriggs   -   Revision e96c3d030e:remove patches dir, not really needed since source control is tracking everything anyway Revision 7d5065826f:migrate Jeff's threading test to make consistent with unittest code
    Revision e96c3d030e:remove patches dir, not really needed since source control is tracking everything anyway Revision 7d5065826f:migrate Jeff's threading test to make consistent with unittest code
  • Sep 01, 2009
    issue 6 (Sources are not compatible with Python 2.5) Status changed by jasonrbriggs   -   You've downloaded the wrong version. Please download the Python2 version (currently: stomp.py-2.0.2.tar.gz)
    Status: Invalid
    You've downloaded the wrong version. Please download the Python2 version (currently: stomp.py-2.0.2.tar.gz)
    Status: Invalid
  • Sep 01, 2009
    issue 2 (PATCH: Add support for SSL) Status changed by jasonrbriggs   -  
    Status: Fixed
    Status: Fixed
  • Sep 01, 2009
    3 new revisions pushed by jasonrbriggs   -   Revision 7cc4bcaa84:add Jeff's thread safety patch Revision 784c5a226c:add Jeff's thread safety patch to py3 version Revision c125e2e65c:update changelog
    Revision 7cc4bcaa84:add Jeff's thread safety patch Revision 784c5a226c:add Jeff's thread safety patch to py3 version Revision c125e2e65c:update changelog
  • Aug 25, 2009
    issue 6 (Sources are not compatible with Python 2.5) reported by drew.smathers   -   Various lines of code in stomp.py use features not supported in Python 2.5. If Python 2.5 is a supported version please apply attached patch.
    Various lines of code in stomp.py use features not supported in Python 2.5. If Python 2.5 is a supported version please apply attached patch.
  • Aug 24, 2009
    issue 5 (Fix : Bad exception thrown when connection error, and SSL m...) Status changed by jasonrbriggs   -  
    Status: Fixed
    Status: Fixed
  • Aug 24, 2009
    stomp.py-2.0.2.tar.gz (stomp.py version 2.0.2 (for Python 2)) file uploaded by jasonrbriggs   -  
    Labels: Featured Type-Archive OpSys-All
    Labels: Featured Type-Archive OpSys-All
  • Aug 24, 2009
    Revision 770fc39cc8 (another ssl patch from JamesC fixing ssl import issue, updat...) pushed by jasonrbriggs   -   another ssl patch from JamesC fixing ssl import issue, update version
    another ssl patch from JamesC fixing ssl import issue, update version
  • Aug 24, 2009
    issue 5 (Fix : Bad exception thrown when connection error, and SSL m...) reported by jamesc.000   -   What steps will reproduce the problem? 1. use stomp.py v2 with python < 2.6 2. Do not have SSL module loaded 3. connect to a port where there is no stomp daemon running. What is the expected output? What do you see instead? You should get a 'Connection Refused' and enter the retry logic. Instead you get : Traceback (most recent call last): File "./publisher.py", line 87, in <module> conn.start() File "/Users/jamesc/workspace/stomppy-new/stomp/stomp.py", line 224, in start self.__attempt_connection() File "/Users/jamesc/workspace/stomppy-new/stomp/stomp.py", line 625, in __attempt_connection except ssl.SSLError, s: AttributeError: 'NoneType' object has no attribute 'SSLError' Patch attached to create a dummy SSLError class.
    What steps will reproduce the problem? 1. use stomp.py v2 with python < 2.6 2. Do not have SSL module loaded 3. connect to a port where there is no stomp daemon running. What is the expected output? What do you see instead? You should get a 'Connection Refused' and enter the retry logic. Instead you get : Traceback (most recent call last): File "./publisher.py", line 87, in <module> conn.start() File "/Users/jamesc/workspace/stomppy-new/stomp/stomp.py", line 224, in start self.__attempt_connection() File "/Users/jamesc/workspace/stomppy-new/stomp/stomp.py", line 625, in __attempt_connection except ssl.SSLError, s: AttributeError: 'NoneType' object has no attribute 'SSLError' Patch attached to create a dummy SSLError class.
  • Aug 20, 2009
    issue 2 (PATCH: Add support for SSL) commented on by jamesc.000   -   Hi Jason, thanks for applying the patch. I've noted one problem with the one I've given you. If you using python < 2.6 and don't have SSL loaded AND you get a connection problem, I try and catch ssl.SSLError which of course doesn't exist and you get another exception thrown. I'll work up a patch (next week) to fix this. cheers, James.
    Hi Jason, thanks for applying the patch. I've noted one problem with the one I've given you. If you using python < 2.6 and don't have SSL loaded AND you get a connection problem, I try and catch ssl.SSLError which of course doesn't exist and you get another exception thrown. I'll work up a patch (next week) to fix this. cheers, James.
  • Aug 19, 2009
    issue 4 (Provide means to stop reconnections) Status changed by jasonrbriggs   -   Will look at applying this in the next few days. Apologies for the delay, I didn't notice the issue (no notifications from google...)
    Status: Accepted
    Will look at applying this in the next few days. Apologies for the delay, I didn't notice the issue (no notifications from google...)
    Status: Accepted
  • Aug 19, 2009
    issue 3 (PATCH: Null error when disconnecting) Status changed by jasonrbriggs   -   patch applied to both py2 and py3 versions
    Status: Fixed
    patch applied to both py2 and py3 versions
    Status: Fixed
  • Aug 19, 2009
    3 new revisions pushed by jasonrbriggs   -   Revision 70bc15a2d5:apply null error patch provided by myrtactle Revision ceca7ebbf1:whoops Revision fdaa311337:apply null error patch provided by myrtactle
    Revision 70bc15a2d5:apply null error patch provided by myrtactle Revision ceca7ebbf1:whoops Revision fdaa311337:apply null error patch provided by myrtactle
  • Aug 19, 2009
    issue 2 (PATCH: Add support for SSL) changed by jasonrbriggs   -   patched against python2 version, still needs backport to py3
    Status: Started
    Labels: Type-Enhancement Type-Defect
    patched against python2 version, still needs backport to py3
    Status: Started
    Labels: Type-Enhancement Type-Defect
  • Aug 19, 2009
    Revision 4cb6660ad6 (apply patch for ssl support, provided by jamesc.000) pushed by jasonrbriggs   -   apply patch for ssl support, provided by jamesc.000
    apply patch for ssl support, provided by jamesc.000
  • Aug 19, 2009
    issue 1 (PATCH: Add support for sending a reply using correlation-id) Status changed by jasonrbriggs   -   Apologies for the delay applying this patch. I wasn't receiving notifications so I didn't notice the issue.
    Status: Fixed
    Apologies for the delay applying this patch. I wasn't receiving notifications so I didn't notice the issue.
    Status: Fixed
  • Aug 19, 2009
    2 new revisions pushed by jasonrbriggs   -   Revision 42e517768b:apply sendreply patch, provided by marascio Revision f7f683f03e:apply sendreply patch, provided by marascio
    Revision 42e517768b:apply sendreply patch, provided by marascio Revision f7f683f03e:apply sendreply patch, provided by marascio
  • Jul 28, 2009
    issue 4 (Provide means to stop reconnections) commented on by c0dem4gnetic   -   Patch attached. Kind of newbie to this scm stuff. Created the patch against rev 47 (befd9df9e8fa4e9c97ad9233931ee7386f3928cd). Max reconnects can now be set in the constructor of Connection, similar to how the reconnect_* values work. Parameter is 'reconnect_attempts_max' and defaults to 3.
    Patch attached. Kind of newbie to this scm stuff. Created the patch against rev 47 (befd9df9e8fa4e9c97ad9233931ee7386f3928cd). Max reconnects can now be set in the constructor of Connection, similar to how the reconnect_* values work. Parameter is 'reconnect_attempts_max' and defaults to 3.
  • Jul 28, 2009
    issue 4 (Provide means to stop reconnections) reported by c0dem4gnetic   -   As it is now stomppy tries to connect to the broker indefinitely when calling start(). This could be problematic in environments that uses one-off instances (connect, send, disconnect) of stomppy, whereby the instances are never destroyed. Suggest adding a max_reconnection_attempts value or a should_attempt_reconnect flag and throwing an exception in start() if reconnection is not possible.
    As it is now stomppy tries to connect to the broker indefinitely when calling start(). This could be problematic in environments that uses one-off instances (connect, send, disconnect) of stomppy, whereby the instances are never destroyed. Suggest adding a max_reconnection_attempts value or a should_attempt_reconnect flag and throwing an exception in start() if reconnection is not possible.
  • Jul 20, 2009
    issue 3 (PATCH: Null error when disconnecting) reported by myrtactle   -   When calling disconnect on a Connection, sometimes (only sometimes because it's race condition) it raises an AttributeError because there is no check if self.__socket is None already.
    When calling disconnect on a Connection, sometimes (only sometimes because it's race condition) it raises an AttributeError because there is no check if self.__socket is None already.
  • Jul 16, 2009
    issue 2 (PATCH: Add support for SSL) reported by jamesc.000   -   This is a patch against stomp-2.0.1 which adds SSL support. It uses the new SSL support provides in python 2.6. For python < 2.6 you can use the backport of this module available at <http://pypi.python.org/pypi/ssl>. I've tested it with python 2.3 (RHEL4), python 2.5 (Mac OSX), python 2.6 (Mac OSX) It supports SSL connection with or without client certificates. I've tested it against ActiveMQ 5.3 both with and without client cert checking. Let me know if you need more info, examples or changes.
    This is a patch against stomp-2.0.1 which adds SSL support. It uses the new SSL support provides in python 2.6. For python < 2.6 you can use the backport of this module available at <http://pypi.python.org/pypi/ssl>. I've tested it with python 2.3 (RHEL4), python 2.5 (Mac OSX), python 2.6 (Mac OSX) It supports SSL connection with or without client certificates. I've tested it against ActiveMQ 5.3 both with and without client cert checking. Let me know if you need more info, examples or changes.
  • Jul 12, 2009
    issue 1 (PATCH: Add support for sending a reply using correlation-id) reported by marascio   -   The attached patch adds support for sending a reply using using the correlation-id header. Patch and readme can also be found here: http://svn.fitnr.com/public/trunk/patches/stompy/sendreply/
    The attached patch adds support for sending a reply using using the correlation-id header. Patch and readme can also be found here: http://svn.fitnr.com/public/trunk/patches/stompy/sendreply/
  • Jul 10, 2009
    SimpleExample (A simple example of using stomp.py.) Wiki page commented on by jasonrbriggs   -   set_listener is in the newer release (for Python 3). add_listener is the older method (Python 2)
    set_listener is in the newer release (for Python 3). add_listener is the older method (Python 2)
  • May 30, 2009
    Revision b90641fda2 (merge experimental-py3k branch into default) pushed by jasonrbriggs   -   merge experimental-py3k branch into default
    merge experimental-py3k branch into default
  • May 30, 2009
    53 new revisions pushed by jasonrbriggs   -   Revision 852ca4cbfd:move to repos on my blog Revision c9ad2fc3c3:patched with Julian Scheid's change to allow headers Revision 8ec2ffd116:forgot to update comments Revision 519780161b:mod: change print statements to use a logger, added printing version number to the StompTester code Revision 0633ccbcdd:remove version num from help string (use _version variable instead) Revision 856035d669:Added tag mark-working-version-20070918 for changeset 0633ccbcdd8c Revision 979c294d30:add comments to detail Julian's (numerous) updates Revision 9fc3ea0b82:more updates from Julian (see inline comments) Revision 1d9fb35d79:more updates from Julian - fix unsubscribe bug, remove implicit connect, fix listener.on_disconnect bug, add on_connecting and on_disconnect; plus my minor fix for minor disconnect problem Revision cc9b4e6b21:apply Julian's latest patch: get rid of ack on send, auto content length for send frames which contain NUL, call socket shutdown before close, stop waits for receiver to exit, receiver thread now has descriptive name, logging for unhandled exceptions and debug logging for sent frames Revision cf3f0f5bdb:minor fixes for jython Revision b993634451:minor changes to fix initial connection problem, add updated version of test code Revision 5429efcb79:fix for authentication suggested by Greg Holt Revision a32c5e84a6:add StringIO support for faster large message performance (patch from Fernando) Revision bc38e8d599:integrate lock change suggested by Lilians Auvigne Revision 2ab918d13b:minor tidy up, remove header_key.lower() as per Eugene's patch Revision a0b59281cc:update comment Revision 1f09d032d4:add facility to wait until the socket is connected before issuing a 'CONNECT' Revision 9912f8cce5:add missing connect headers to connect() method, remove the space between header and value -- it's not necessary and rabbitmq appears not to like it Revision 00b030c2dc:update comments and version number Revision a194742876:add try-catch suggested by steven Revision 84b789de7a:add patch for Stomp1.1 idea (jms map) provided by Eugene Revision 585190fdb9:add patch from Eugene eliminating race condition Revision ba7956c5ef:add rabbit test code Revision a02e8b7ee1:forgot to update version number Revision 28e2bd0012:change scope of is_local_host, patch by Scott Parkerson Revision 5fa6a35eb6:backout manual change, done in wrong order Revision dd321534a6:remove code to replace underscores with dashes in header names which causes a problem in rabbit-mq Revision b19f21df1a:add logging configuration file Revision c1dfb2563c:update comments Revision c2bb6974a9:add patch for 2.6 provided by Gavin Revision 711f9c1bbc:add patch provided by Fernando Revision b3633e4ca7:catch any error when setting up logging and ignore Revision e2fffb0124:Added tag version-1.8 for changeset b3633e4ca7d5 Revision 8616207e71:refactor single file into module dir to tidy up, add help to command line interface, add stats facility, add unit test code Revision 8e47cd330f:create new Python 3 version of stomp -- directory refactoring required as a consequence Revision 93b5711c7a:add facility to allow for a specified logging config file or a default Revision 2e04df604d:add changelog, add ver to command line client Revision ea495246fd:update version number for py3k version Revision 33c43e3197:tidying up, add sendfile to cli, fix ack code Revision c5eec43106:minor Revision 677078c229:fix minor problem in cli for ACKs Revision a4f65e777f:minor change to hopefully tidy up logging Revision 731dc0f534:tidy up logging, add more comments and doxygen generation Revision d1577d64de:update documentation Revision b45df536ff:fix setup Revision 3d6297c06c:add optparse for command line arguments, plus facility for running a file of commands Revision 5de4c9c264:update version Revision 23dca4c52e:change version to a string as per bug report by Nic R Revision 1e348bac9c:fix comment Revision 09364ad0e4:fix comment Revision ad06a312a9:support for pre-2.5 versions of Python (patch provided by Martin Pieuchot) Revision befd9df9e8:update version
    Revision 852ca4cbfd:move to repos on my blog Revision c9ad2fc3c3:patched with Julian Scheid's change to allow headers Revision 8ec2ffd116:forgot to update comments Revision 519780161b:mod: change print statements to use a logger, added printing version number to the StompTester code Revision 0633ccbcdd:remove version num from help string (use _version variable instead) Revision 856035d669:Added tag mark-working-version-20070918 for changeset 0633ccbcdd8c Revision 979c294d30:add comments to detail Julian's (numerous) updates Revision 9fc3ea0b82:more updates from Julian (see inline comments) Revision 1d9fb35d79:more updates from Julian - fix unsubscribe bug, remove implicit connect, fix listener.on_disconnect bug, add on_connecting and on_disconnect; plus my minor fix for minor disconnect problem Revision cc9b4e6b21:apply Julian's latest patch: get rid of ack on send, auto content length for send frames which contain NUL, call socket shutdown before close, stop waits for receiver to exit, receiver thread now has descriptive name, logging for unhandled exceptions and debug logging for sent frames Revision cf3f0f5bdb:minor fixes for jython Revision b993634451:minor changes to fix initial connection problem, add updated version of test code Revision 5429efcb79:fix for authentication suggested by Greg Holt Revision a32c5e84a6:add StringIO support for faster large message performance (patch from Fernando) Revision bc38e8d599:integrate lock change suggested by Lilians Auvigne Revision 2ab918d13b:minor tidy up, remove header_key.lower() as per Eugene's patch Revision a0b59281cc:update comment Revision 1f09d032d4:add facility to wait until the socket is connected before issuing a 'CONNECT' Revision 9912f8cce5:add missing connect headers to connect() method, remove the space between header and value -- it's not necessary and rabbitmq appears not to like it Revision 00b030c2dc:update comments and version number Revision a194742876:add try-catch suggested by steven Revision 84b789de7a:add patch for Stomp1.1 idea (jms map) provided by Eugene Revision 585190fdb9:add patch from Eugene eliminating race condition Revision ba7956c5ef:add rabbit test code Revision a02e8b7ee1:forgot to update version number Revision 28e2bd0012:change scope of is_local_host, patch by Scott Parkerson Revision 5fa6a35eb6:backout manual change, done in wrong order Revision dd321534a6:remove code to replace underscores with dashes in header names which causes a problem in rabbit-mq Revision b19f21df1a:add logging configuration file Revision c1dfb2563c:update comments Revision c2bb6974a9:add patch for 2.6 provided by Gavin Revision 711f9c1bbc:add patch provided by Fernando Revision b3633e4ca7:catch any error when setting up logging and ignore Revision e2fffb0124:Added tag version-1.8 for changeset b3633e4ca7d5 Revision 8616207e71:refactor single file into module dir to tidy up, add help to command line interface, add stats facility, add unit test code Revision 8e47cd330f:create new Python 3 version of stomp -- directory refactoring required as a consequence Revision 93b5711c7a:add facility to allow for a specified logging config file or a default Revision 2e04df604d:add changelog, add ver to command line client Revision ea495246fd:update version number for py3k version Revision 33c43e3197:tidying up, add sendfile to cli, fix ack code Revision c5eec43106:minor Revision 677078c229:fix minor problem in cli for ACKs Revision a4f65e777f:minor change to hopefully tidy up logging Revision 731dc0f534:tidy up logging, add more comments and doxygen generation Revision d1577d64de:update documentation Revision b45df536ff:fix setup Revision 3d6297c06c:add optparse for command line arguments, plus facility for running a file of commands Revision 5de4c9c264:update version Revision 23dca4c52e:change version to a string as per bug report by Nic R Revision 1e348bac9c:fix comment Revision 09364ad0e4:fix comment Revision ad06a312a9:support for pre-2.5 versions of Python (patch provided by Martin Pieuchot) Revision befd9df9e8:update version
  • May 28, 2009
    stomp.py-2.0.1.tar.gz (stomp.py version 2.0.1 (for Python 2)) file uploaded by jasonrbriggs   -  
    Labels: Featured Type-Source OpSys-All
    Labels: Featured Type-Source OpSys-All
 
Hosted by Google Code