Crash when connecting in bindings mode
Bug #813352 reported by
Zsolt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PyMQI |
Fix Committed
|
Medium
|
Unassigned |
Bug Description
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 "pymqi.py", line 2174, in connect
qmgr = pymqi.QueueMana
NameError: global name 'pymqi' is not defined
The program connects to MQ by this call:
import pymqi
qmgr = pymqi.connect(
I think it could be easily fixed by removing "pymqi." string from the line 2174 in pymqi.py.
You're right and I'm terribly sorry for the inconvenience! I'll make sure it's fixed for PyMQI 1.3 and in the meantime, could you possibly use the following workaround?
import pymqi ger("HAT1" )
qmgr = pymqi.QueueMana
Cheers!