The python samples are based on https://dsuch.github.io/pymqi/ and have been tested with python 3.10.12,3.11.9 and 3.12.5
Python PyMQI library uses the IBM MQ C client libraries through the MQI interface.
The library needs to be compiled with a C compiler which you need to have installed in your development environment.
For example, on MacOS we used XCode
, on Windows the Desktop development with C++
module inside Visual Studio and on Ubuntu the gcc
GNU Compiler Collection.
Install/unzip IBM MQ client
IBM MQ MacOS toolkit for developers download
Add
/opt/mqm/bin
and
/opt/mqm/samp/bin
, to the PATH by editing /etc/paths
execute the following command:
export DYLD_LIBRARY_PATH=/opt/mqm/lib64
Windows MQ redist client download
Linux MQ redist client download
For installation instructions please go to
To run the examples cd to the Python directory, and install the prerequsites by running :
pip install pymqi
python basicput.py
and
python basicget.py
python basicpublish.py
and
python basicsubscribe.py
python basicrequest.py
and
python basicresponse.py