Windows 7 64bit, using amd64 py2.7 binary NameError: global name 'pymqi' is not defined

Asked by Vivek C

Using the 1.2 py27 64bit windows binary - client

When running a script with the following connection
qmgr = pymqi.connect('NHDFUXT', Host(Port)) (with valid host/port values.

I get the following

python mqtest.py
Traceback (most recent call last):
  File "mqtest.py", line 11, in <module>
    qmgr = pymqi.connect(queue_manager, conn_info)
  File "C:\Python27\lib\site-packages\pymqi.py", line 2174, in connect
    qmgr = pymqi.QueueManager(queue_manager)
NameError: global name 'pymqi' is not defined

Any idea how to proceed?

Question information

Language:
English Edit question
Status:
Solved
For:
PyMQI Edit question
Assignee:
No assignee Edit question
Solved by:
Vivek C
Solved:
Last query:
Last reply:
Revision history for this message
Vivek C (giskarded) said :
#1

Removed the pymqi part in pymqi.py line # 2174
The issue was resolved