Crash when connecting in bindings mode

Bug #813352 reported by Zsolt
6
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.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.

Zsolt (cserna-zsolt)
description: updated
Revision history for this message
Dariusz Suchojad (dsuch) wrote :

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
qmgr = pymqi.QueueManager("HAT1")

Cheers!

Changed in pymqi:
importance: Undecided → Medium
milestone: none → 1.3
status: New → Confirmed
Revision history for this message
Zsolt (cserna-zsolt) wrote :

Thanks for the quick reply.
Instead of the workaround I've patched my own installation of the package.

Revision history for this message
Dariusz Suchojad (dsuch) wrote :
Changed in pymqi:
status: Confirmed → Fix Committed
Revision history for this message
Dariusz Suchojad (dsuch) wrote :

I've just released PyMQI 1.3 and the development effort has moved to GitHub - https://github.com/dsuch/pymqi

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.