# IBM MQ extension includes cpython linux .so file?

**URL:** <https://community.dynatrace.com/t/ibm-mq-extension-includes-cpython-linux-so-file/55037>\
**Category:** Extensions\
**Tags:** extensions, ibm-mq\
**Created:** [February 18, 2026, 6:21pm UTC](https://community.dynatrace.com/t/ibm-mq-extension-includes-cpython-linux-so-file/55037 "2026-02-18T18:21:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [February 18, 2026, 6:21pm UTC](https://community.dynatrace.com/t/ibm-mq-extension-includes-cpython-linux-so-file/55037/1 "2026-02-18T18:21:56Z")

</div>

While debugging an error I’m having with the IBM MQ extension, I have noticed that it includes in the extension ibm\_mq-3.9.5-py3-none-any.whl, the following binary files, inside the ibm\_mq/pymqi directory:

- pymqe.cp310-win\_amd64.pyd
- pymqe.cpython-310-x86\_64-linux-gnu.so

As I believe I have not seen this before, was wondering (as an Extension developer) why it was done this way? Some optimization trick? Because I believe it would have been setup better as a setup.py dependency, with the corresponding .whl file in the extension.&nbsp;Or ist&nbsp;it&nbsp;a&nbsp;dependency&nbsp;from&nbsp;the&nbsp;other&nbsp;jar&nbsp;file?[@Mike\_L](https://community.dynatrace.com/user/11520)&nbsp;, can someone from you team give a hint?

---

<div class="post-metadata">

**Author:** ![diego\_morales](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/diego_morales/32/2556_2.png) [@diego\_morales](https://community.dynatrace.com/u/diego_morales)\
**Post date:** [February 18, 2026, 9:36pm UTC](https://community.dynatrace.com/t/ibm-mq-extension-includes-cpython-linux-so-file/55037/2 "2026-02-18T21:36:55Z")

</div>

Hi&nbsp;[@AntonioSousa](https://community.dynatrace.com/user/17213)

It cannot be added in setup.py because it has to be built using the IBM MQ SDK local to the machine. That .pyd and .so files look for the IBM MQ SDK libraries on the machine it is built, then compiles its CPython using those libraries.

They need to be pre-built on each OS and then added manually for that reason. It only executes the one it recognizes by the OS when the extension runs.

Hope this answers your question.

Thanks,

Diego

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [February 18, 2026, 10:16pm UTC](https://community.dynatrace.com/t/ibm-mq-extension-includes-cpython-linux-so-file/55037/3 "2026-02-18T22:16:54Z")

</div>

[@diego\_morales](https://community.dynatrace.com/user/21611)&nbsp;,

Thanks for the explanation.

I was aware of the native dependencies, but had the idea they were distributed as whl’s. That’s at least what we usually see with libraries like cryptography, which are included in separate linux and windows whl’s. I believe this ibm\_mq is really the only extension where I have seen the binaries inside the “main” whl of the extension.

---

<div class="post-metadata">

**Author:** ![diego\_morales](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/diego_morales/32/2556_2.png) [@diego\_morales](https://community.dynatrace.com/u/diego_morales)\
**Post date:** [February 18, 2026, 11:50pm UTC](https://community.dynatrace.com/t/ibm-mq-extension-includes-cpython-linux-so-file/55037/4 "2026-02-18T23:50:39Z")

</div>

Indeed, they usually are. These ones require that combination of native MQ SDK libraries to compile, so a simple .whl won’t do. That extension is also unique in many ways considering IBM made MQ very customizable in different OS and distributions and they all behave different. The extension had to accommodate for all that as well.

---

<div class="post-metadata">

**Author:** ![jiri\_stefanek](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jiri\_stefanek](https://community.dynatrace.com/u/jiri_stefanek)\
**Post date:** [February 20, 2026, 7:17am UTC](https://community.dynatrace.com/t/ibm-mq-extension-includes-cpython-linux-so-file/55037/5 "2026-02-20T07:17:45Z")

</div>

Hi&nbsp;[@diego\_morales](https://community.dynatrace.com/user/21611)

I have a question regarding the IBM MQ extension. We have this extension running in a Managed environment without any issues, but we recently migrated to SaaS (the configuration is identical to the Managed setup; the only new component is the ActiveGate in SaaS). Unfortunately, in SaaS we are getting these errors. The firewall on the new ActiveGate is open for the same ports as in the Managed environment.

Do you have any idea what might be causing the issue or what we should focus on?  
What’s strange is that besides errors and warnings, the status also shows “OK”, but we still don’t receive any data.

**Warn**

Content

Endpoints OK: 0 WARNING: 0 ERROR: 1 Unhealthy endpoints: xxxx - GENERIC\_ERROR DEC:15C ERROR: Unable to connect to queue manager xxxxx. Could not connect to Queue Manager: Code: MQCC\_FAILED, Reason: MQRC\_HOST\_NOT\_AVAILABLE. Message: MQJE001: Completion Code ‘2’, Reason ‘2538’.  
**Error**  
ContentTIATUOAQM: [NEW] - GENERIC\_ERROR DEC:15C ERROR: Unable to connect to queue manager TIATUOAQM. Could not connect to Queue Manager: Code: MQCC\_FAILED, Reason: MQRC\_HOST\_NOT\_AVAILABLE. Message: MQJE001: Completion Code ‘2’, Reason ‘2538’. **Info**  
ContentEndpoints OK: 1 WARNING: 0 ERROR: 0  
**Info** Contentxxxxx: [NEW] - OK  
The only thing I noticed is that Managed has for examle in event logs  
dt.entity.extensions:extension  
CUSTOM\_DEVICE-xxxxxxxxxxx  
but SaaS has  
dt.openpipeline.pipelines  
system.events:default

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [February 20, 2026, 9:00am UTC](https://community.dynatrace.com/t/ibm-mq-extension-includes-cpython-linux-so-file/55037/6 "2026-02-20T09:00:43Z")

</div>

[@jiri\_stefanek](https://community.dynatrace.com/user/30685)&nbsp;your error clearly states the extension cannot connect to MQ manager. Most missing firewall clearances between AG and MQ (if you deployed a new AG for SaaS). Or a different configuration.
