title: How to connect to IBM MQ in Python with CCDT file, userid and password
body: <p>I am able to connect to TDE MQ using CCDT file with User id and password in Java. I am unable to do that in Python.</p>
  
  <p>In Python I have set the environment variable for MQCHLLIB and MQCHLTAB, but when I try to connect using pymqi.connect, I am getting MQRC 2538. My code is as below</p>
  
  <pre><code>import pymqi
  import os
  
  os.environ['MQCHLLIB']='/root/pythonmq/'
  os.environ['MQCHLTAB']='APPTDECH.TAB'
  
  queue_manager = 'QM_APP'
  user = "******" 
  password = "*****"
  
  qmgr = pymqi.connect(queue_manager, pymqi.CD(),None, user, password )
  
  print('Connected')
  
  qmgr.disconnect()
  </code></pre>
  
  <p>The exception is :</p>
  
  <pre><code>pymqi.MQMIError: MQI Error. Comp: 2, Reason 2538: FAILED: MQRC_HOST_NOT_AVAILABLE.
  </code></pre>
  
  <p>Please let me know if anybody know how can I make this happen.</p>