Python Forum
Accessing IBM MQ using Python - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Accessing IBM MQ using Python (/thread-13585.html)



Accessing IBM MQ using Python - Rajeshs16 - Oct-22-2018

Hi,
I am looking to access IBM MQ via python, pyMQI looks to need C compiler, so unable to use it as I dont have option of installing the same on everyone who would be running the script. Any suggestion or pointer would help?

Thanks,
Rj


RE: Accessing IBM MQ using Python - Larz60+ - Oct-22-2018

you can install pymqi see: https://dsuch.github.io/pymqi/
install from command line with:

first try pip -V to see if pip is for proper version of python
if so, use
pip install pymqi
if not, use:
pip3 install pymqi
to use, follow instructions on above link


RE: Accessing IBM MQ using Python - Rajeshs16 - Oct-22-2018

I tried pymqi. It looks like its just a wrapper around pymqe which requires a c compiler to compile it before I can use it (if my understanding is correct)


RE: Accessing IBM MQ using Python - Larz60+ - Oct-22-2018

it's 'pymqi'.
Did you read the page link above?
I see nothing at all about having to compile anything!
what happened when you tried?
show code used for attempt.


RE: Accessing IBM MQ using Python - Rajeshs16 - Oct-22-2018

Yes, I did, first thing mymqi does is import pymqe. And so I get the error

import pymqe # Backward compatibility
ImportError: No module named pymqe


RE: Accessing IBM MQ using Python - Rajeshs16 - Oct-22-2018

I have taken the route of using Jython, but if there is an option using python compiler, would be great


RE: Accessing IBM MQ using Python - Larz60+ - Oct-22-2018

Quote:Yes, I did, first thing mymqi does is import pymqe. And so I get the error
Did you install the package?