You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Jonathan Robie (JIRA)" <qp...@incubator.apache.org> on 2008/05/09 18:16:55 UTC
[jira] Created: (QPID-1044) Python examples need updating for
tutorial
Python examples need updating for tutorial
------------------------------------------
Key: QPID-1044
URL: https://issues.apache.org/jira/browse/QPID-1044
Project: Qpid
Issue Type: Bug
Reporter: Jonathan Robie
During the 0-10 conversion, the Python examples have evolved in a direction that doesn't match the way they are used in the tutorial. This patch simplifies the examples.
In addition to overall simplification, it does the following:
- Eliminates use of random numbers for session names, using uuid4 instead
- Separates initialization for the tutorial text from initialization needed for our test environment.
# Set parameters for login
host="127.0.0.1"
port=5672
user="guest"
password="guest"
amqp_spec="/usr/share/amqp/amqp.0-10.xml"
# If an alternate host or port has been specified, use that instead
# (this is used in our unit tests)
#
# If AMQP_SPEC is defined, use it to locate the spec file instead of
# looking for it in the default location.
if len(sys.argv) > 1 :
sys.argv[1]
if len(sys.argv) > 2 :
int(sys.argv[2])
try:
amqp_spec = os.environ["AMQP_SPEC"]
except KeyError:
amqp_spec="/usr/share/amqp/amqp.0-10.xml"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (QPID-1044) Python examples need updating for
tutorial
Posted by "Jonathan Robie (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Robie updated QPID-1044:
---------------------------------
Attachment: (was: python-examples.diff)
> Python examples need updating for tutorial
> ------------------------------------------
>
> Key: QPID-1044
> URL: https://issues.apache.org/jira/browse/QPID-1044
> Project: Qpid
> Issue Type: Bug
> Reporter: Jonathan Robie
>
> During the 0-10 conversion, the Python examples have evolved in a direction that doesn't match the way they are used in the tutorial. This patch simplifies the examples.
> In addition to overall simplification, it does the following:
> - Eliminates use of random numbers for session names, using uuid4 instead
> - Separates initialization for the tutorial text from initialization needed for our test environment.
> # Set parameters for login
> host="127.0.0.1"
> port=5672
> user="guest"
> password="guest"
> amqp_spec="/usr/share/amqp/amqp.0-10.xml"
> # If an alternate host or port has been specified, use that instead
> # (this is used in our unit tests)
> #
> # If AMQP_SPEC is defined, use it to locate the spec file instead of
> # looking for it in the default location.
> if len(sys.argv) > 1 :
> sys.argv[1]
> if len(sys.argv) > 2 :
> int(sys.argv[2])
> try:
> amqp_spec = os.environ["AMQP_SPEC"]
> except KeyError:
> amqp_spec="/usr/share/amqp/amqp.0-10.xml"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (QPID-1044) Python examples need updating for
tutorial
Posted by "Jonathan Robie (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Robie updated QPID-1044:
---------------------------------
Attachment: python-examples.diff
Python examples - revised, tested, and further simplified
> Python examples need updating for tutorial
> ------------------------------------------
>
> Key: QPID-1044
> URL: https://issues.apache.org/jira/browse/QPID-1044
> Project: Qpid
> Issue Type: Bug
> Reporter: Jonathan Robie
> Attachments: python-examples.diff
>
>
> During the 0-10 conversion, the Python examples have evolved in a direction that doesn't match the way they are used in the tutorial. This patch simplifies the examples.
> In addition to overall simplification, it does the following:
> - Eliminates use of random numbers for session names, using uuid4 instead
> - Separates initialization for the tutorial text from initialization needed for our test environment.
> # Set parameters for login
> host="127.0.0.1"
> port=5672
> user="guest"
> password="guest"
> amqp_spec="/usr/share/amqp/amqp.0-10.xml"
> # If an alternate host or port has been specified, use that instead
> # (this is used in our unit tests)
> #
> # If AMQP_SPEC is defined, use it to locate the spec file instead of
> # looking for it in the default location.
> if len(sys.argv) > 1 :
> sys.argv[1]
> if len(sys.argv) > 2 :
> int(sys.argv[2])
> try:
> amqp_spec = os.environ["AMQP_SPEC"]
> except KeyError:
> amqp_spec="/usr/share/amqp/amqp.0-10.xml"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (QPID-1044) Python examples need updating for
tutorial
Posted by "Jonathan Robie (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Robie updated QPID-1044:
---------------------------------
Attachment: cpp-examples.diff
Verify outputs updated for new examples.
> Python examples need updating for tutorial
> ------------------------------------------
>
> Key: QPID-1044
> URL: https://issues.apache.org/jira/browse/QPID-1044
> Project: Qpid
> Issue Type: Bug
> Reporter: Jonathan Robie
> Attachments: cpp-examples.diff, python-examples.diff
>
>
> During the 0-10 conversion, the Python examples have evolved in a direction that doesn't match the way they are used in the tutorial. This patch simplifies the examples.
> In addition to overall simplification, it does the following:
> - Eliminates use of random numbers for session names, using uuid4 instead
> - Separates initialization for the tutorial text from initialization needed for our test environment.
> # Set parameters for login
> host="127.0.0.1"
> port=5672
> user="guest"
> password="guest"
> amqp_spec="/usr/share/amqp/amqp.0-10.xml"
> # If an alternate host or port has been specified, use that instead
> # (this is used in our unit tests)
> #
> # If AMQP_SPEC is defined, use it to locate the spec file instead of
> # looking for it in the default location.
> if len(sys.argv) > 1 :
> sys.argv[1]
> if len(sys.argv) > 2 :
> int(sys.argv[2])
> try:
> amqp_spec = os.environ["AMQP_SPEC"]
> except KeyError:
> amqp_spec="/usr/share/amqp/amqp.0-10.xml"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (QPID-1044) Python examples need updating for
tutorial
Posted by "Aidan Skinner (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aidan Skinner updated QPID-1044:
--------------------------------
Component/s: website
Qpid Examples
> Python examples need updating for tutorial
> ------------------------------------------
>
> Key: QPID-1044
> URL: https://issues.apache.org/jira/browse/QPID-1044
> Project: Qpid
> Issue Type: Bug
> Components: Qpid Examples, website
> Reporter: Jonathan Robie
> Attachments: cpp-examples.diff, python-examples.diff
>
>
> During the 0-10 conversion, the Python examples have evolved in a direction that doesn't match the way they are used in the tutorial. This patch simplifies the examples.
> In addition to overall simplification, it does the following:
> - Eliminates use of random numbers for session names, using uuid4 instead
> - Separates initialization for the tutorial text from initialization needed for our test environment.
> # Set parameters for login
> host="127.0.0.1"
> port=5672
> user="guest"
> password="guest"
> amqp_spec="/usr/share/amqp/amqp.0-10.xml"
> # If an alternate host or port has been specified, use that instead
> # (this is used in our unit tests)
> #
> # If AMQP_SPEC is defined, use it to locate the spec file instead of
> # looking for it in the default location.
> if len(sys.argv) > 1 :
> sys.argv[1]
> if len(sys.argv) > 2 :
> int(sys.argv[2])
> try:
> amqp_spec = os.environ["AMQP_SPEC"]
> except KeyError:
> amqp_spec="/usr/share/amqp/amqp.0-10.xml"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (QPID-1044) Python examples need updating for
tutorial
Posted by "Rafael H. Schloming (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rafael H. Schloming updated QPID-1044:
--------------------------------------
Affects Version/s: M4
> Python examples need updating for tutorial
> ------------------------------------------
>
> Key: QPID-1044
> URL: https://issues.apache.org/jira/browse/QPID-1044
> Project: Qpid
> Issue Type: Bug
> Components: Qpid Examples, website
> Affects Versions: M4
> Reporter: Jonathan Robie
> Fix For: M4
>
> Attachments: cpp-examples.diff, python-examples.diff
>
>
> During the 0-10 conversion, the Python examples have evolved in a direction that doesn't match the way they are used in the tutorial. This patch simplifies the examples.
> In addition to overall simplification, it does the following:
> - Eliminates use of random numbers for session names, using uuid4 instead
> - Separates initialization for the tutorial text from initialization needed for our test environment.
> # Set parameters for login
> host="127.0.0.1"
> port=5672
> user="guest"
> password="guest"
> amqp_spec="/usr/share/amqp/amqp.0-10.xml"
> # If an alternate host or port has been specified, use that instead
> # (this is used in our unit tests)
> #
> # If AMQP_SPEC is defined, use it to locate the spec file instead of
> # looking for it in the default location.
> if len(sys.argv) > 1 :
> sys.argv[1]
> if len(sys.argv) > 2 :
> int(sys.argv[2])
> try:
> amqp_spec = os.environ["AMQP_SPEC"]
> except KeyError:
> amqp_spec="/usr/share/amqp/amqp.0-10.xml"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (QPID-1044) Python examples need updating for
tutorial
Posted by "Jonathan Robie (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Robie updated QPID-1044:
---------------------------------
Attachment: python-examples.diff
> Python examples need updating for tutorial
> ------------------------------------------
>
> Key: QPID-1044
> URL: https://issues.apache.org/jira/browse/QPID-1044
> Project: Qpid
> Issue Type: Bug
> Reporter: Jonathan Robie
> Attachments: python-examples.diff
>
>
> During the 0-10 conversion, the Python examples have evolved in a direction that doesn't match the way they are used in the tutorial. This patch simplifies the examples.
> In addition to overall simplification, it does the following:
> - Eliminates use of random numbers for session names, using uuid4 instead
> - Separates initialization for the tutorial text from initialization needed for our test environment.
> # Set parameters for login
> host="127.0.0.1"
> port=5672
> user="guest"
> password="guest"
> amqp_spec="/usr/share/amqp/amqp.0-10.xml"
> # If an alternate host or port has been specified, use that instead
> # (this is used in our unit tests)
> #
> # If AMQP_SPEC is defined, use it to locate the spec file instead of
> # looking for it in the default location.
> if len(sys.argv) > 1 :
> sys.argv[1]
> if len(sys.argv) > 2 :
> int(sys.argv[2])
> try:
> amqp_spec = os.environ["AMQP_SPEC"]
> except KeyError:
> amqp_spec="/usr/share/amqp/amqp.0-10.xml"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (QPID-1044) Python examples need updating for
tutorial
Posted by "Jonathan Robie (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595712#action_12595712 ]
Jonathan Robie commented on QPID-1044:
--------------------------------------
This is hanging on one unit test for me:
examples/fanout/verify_cpp_python
Traceback (most recent call last):
File "/home/jrobie/project/qpid/cpp/../python/examples/fanout/fanout_consumer.py", line 78, in <module>
message = local_queue.get(timeout=10)
File "/home/jrobie/project/qpid/python/qpid/queue.py", line 47, in get
result = BaseQueue.get(self, block, timeout)
File "/usr/lib/python2.5/Queue.py", line 173, in get
raise Empty
Queue.Empty
Running this test by hand, it works. I don't see where it is hanging.
> Python examples need updating for tutorial
> ------------------------------------------
>
> Key: QPID-1044
> URL: https://issues.apache.org/jira/browse/QPID-1044
> Project: Qpid
> Issue Type: Bug
> Reporter: Jonathan Robie
> Attachments: cpp-examples.diff, python-examples.diff
>
>
> During the 0-10 conversion, the Python examples have evolved in a direction that doesn't match the way they are used in the tutorial. This patch simplifies the examples.
> In addition to overall simplification, it does the following:
> - Eliminates use of random numbers for session names, using uuid4 instead
> - Separates initialization for the tutorial text from initialization needed for our test environment.
> # Set parameters for login
> host="127.0.0.1"
> port=5672
> user="guest"
> password="guest"
> amqp_spec="/usr/share/amqp/amqp.0-10.xml"
> # If an alternate host or port has been specified, use that instead
> # (this is used in our unit tests)
> #
> # If AMQP_SPEC is defined, use it to locate the spec file instead of
> # looking for it in the default location.
> if len(sys.argv) > 1 :
> sys.argv[1]
> if len(sys.argv) > 2 :
> int(sys.argv[2])
> try:
> amqp_spec = os.environ["AMQP_SPEC"]
> except KeyError:
> amqp_spec="/usr/share/amqp/amqp.0-10.xml"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (QPID-1044) Python examples need updating for
tutorial
Posted by "Marnie McCormack (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marnie McCormack updated QPID-1044:
-----------------------------------
Fix Version/s: (was: M4)
> Python examples need updating for tutorial
> ------------------------------------------
>
> Key: QPID-1044
> URL: https://issues.apache.org/jira/browse/QPID-1044
> Project: Qpid
> Issue Type: Bug
> Components: Qpid Examples, website
> Affects Versions: M4
> Reporter: Jonathan Robie
> Attachments: cpp-examples.diff, python-examples.diff
>
>
> During the 0-10 conversion, the Python examples have evolved in a direction that doesn't match the way they are used in the tutorial. This patch simplifies the examples.
> In addition to overall simplification, it does the following:
> - Eliminates use of random numbers for session names, using uuid4 instead
> - Separates initialization for the tutorial text from initialization needed for our test environment.
> # Set parameters for login
> host="127.0.0.1"
> port=5672
> user="guest"
> password="guest"
> amqp_spec="/usr/share/amqp/amqp.0-10.xml"
> # If an alternate host or port has been specified, use that instead
> # (this is used in our unit tests)
> #
> # If AMQP_SPEC is defined, use it to locate the spec file instead of
> # looking for it in the default location.
> if len(sys.argv) > 1 :
> sys.argv[1]
> if len(sys.argv) > 2 :
> int(sys.argv[2])
> try:
> amqp_spec = os.environ["AMQP_SPEC"]
> except KeyError:
> amqp_spec="/usr/share/amqp/amqp.0-10.xml"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.