Python Forum

Full Version: Accessing IBM MQ using Python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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
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)
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.
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
I have taken the route of using Jython, but if there is an option using python compiler, would be great
Quote:Yes, I did, first thing mymqi does is import pymqe. And so I get the error
Did you install the package?