All Apps and Add-ons

IBM Websphere MQ Modular Input for Splunk installation : No module named pymqe

dhtran
Loves-to-Learn Lots

Hello,

I'm testing Splunk Enterprise 8.0.3 locally on my laptop (Windows 10 Home) and trying to set up the IBM MQ Input Modular (https://splunkbase.splunk.com/app/3004/#/overview).

I followed the instructions on github repo of the add-on (https://github.com/jjjw420/splunk-ibm-websphere-mq-add-on)

The prerequisites are installed :
- IBM MQ Server - OK
- IBM MQ Client - OK
- pymqi-1.10.1 64bits - get and build OK
- mq_ta add-on copied in /etc/apps - OK
- The pymqi built libs are copied in /etc/apps/mq_ta/bin - OK

But, when I tested the import of pymqi with the embedded python3 (whichs is python 3.7.4) interpreter of Splunk, I got "ImportError: No module named pymqe" error.
However, when I tried the same import with python 3.8.2 installed on my system, everything was OK, no error.

Is it because the pymqi is not supported by python 3.7.4 or windows 10 ?
Is there anyway to tell Splunk to use another python version other than the one that came with the product ?

Thanks in advance for your help

Tags (1)
0 Karma

gerardo_maya
Splunk Employee
Splunk Employee

Hello, 

 

I just faced the same situation. In my case I detected that the file libmqic_r.so was not present in all the directories needed (/usr/lib and /usr/lib64)

/usr/lib/libmqic_r.so
/usr/lib64/libmqic_r.so
/opt/mqm/lib/compat/libmqic_r.so
/opt/mqm/lib/libmqic_r.so
/opt/mqm/lib64/compat/libmqic_r.so

 

I just copied the one in /opt/mqm/lib to the .usr/lib and /usr/lib64 and restarted Splunk and it works.

Something that is important to mention is that all the files requiered must have read permissions by the user that is running Splunk. 

I hope it helps!.

0 Karma

alexisbourdeau
New Member

Hello,
I have the same issue.

Help welcome

Thanks a lot

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...