Comment 0 for bug 813352

Revision history for this message
Zsolt (cserna-zsolt) wrote :

If I'm trying to connect to MQ server in bindings mode (only the server name is specified), my program crashes with this error:

  File "/tmp/test_pymqi.py", line 2174, in connect
    qmgr = pymqi.QueueManager(queue_manager)
NameError: global name 'pymqi' is not defined

The program connects to MQ by this call:

import pymqi
qmgr = pymqi.connect("HAT1")

I think it could be easily fixed by removing "pymqi." string from the line 2174 in pymqi.py.