error: MQGMO wrong size. Given: 112, expected 108

Asked by GK

Hi,
I have read through the bug reports and tried those suggestions; but I still get this error when I try to get messages from the MQ queues.

I have tried to test using these following two version of pymqi.
1. pymqi-1.2.win-amd64-py2.6-mq-7.0-client.exe
2. pymqi-1.2.win32-py2.6-mq-7.0-client.exe

When I use "pymqi-1.2.win-amd64-py2.6-mq-7.0-client.exe", I get "error: MQGMO wrong size. Given: 112, expected 108"
When try with "pymqi-1.2.win32-py2.6-mq-7.0-client.exe" "ImportError: DLL load failed: %1 is not a valid Win32 application."

FYI: I also tested by removing both .pyc and .pyo file
python Version:
ActivePython 2.6.6.18 (ActiveState Software Inc.) based on Python 2.6.6 (r266:84292, Jan 7 2011, 14:01:45) [MSC v.1500 64 bit (AMD64)] onwin32

MQ Version :7.5
OS version : Microsoft Windows 7 Professional 64 bit

Can you please advice?

Thanks,
--GK.

Question information

Language:
English Edit question
Status:
Answered
For:
PyMQI Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
GK (kgothandaraman) said :
#1

My python script:

import pymqi
qmgr=pymqi.QueueManager(None)
print pymqi.__mqbuild__
qmgr.connectTCPClient('qMangerName',pymqi.cd(),"SYSTEM.DEF.SVRCONN","localhost(1414)")
queue=pymqi.Queue(qmgr,'queueName')
print queue.get()

Revision history for this message
Dariusz Suchojad (dsuch) said :
#2

> I have tried to test using these following two version of pymqi.
> 1. pymqi-1.2.win-amd64-py2.6-mq-7.0-client.exe
> 2. pymqi-1.2.win32-py2.6-mq-7.0-client.exe
>
>
> When I use "pymqi-1.2.win-amd64-py2.6-mq-7.0-client.exe", I get "error: MQGMO wrong size. Given: 112, expected 108"
> When try with "pymqi-1.2.win32-py2.6-mq-7.0-client.exe" "ImportError: DLL load failed: %1 is not a valid Win32 application."
>
> FYI: I also tested by removing both .pyc and .pyo file
> python Version:
> ActivePython 2.6.6.18 (ActiveState Software Inc.) based on Python 2.6.6 (r266:84292, Jan 7 2011, 14:01:45) [MSC v.1500 64 bit (AMD64)] onwin32
>
> MQ Version :7.5
> OS version : Microsoft Windows 7 Professional 64 bit
>
> Can you please advice?

PyMQI binaries built for 7.0 won't work with MQ 7.5 - this simply isn't
possible.

Right now, due to other commitments I'm not able to spend time on
providing support for MQ 7.5. Please read here for more information:

http://www.gefira.pl/blog/2013/02/07/can-you-sponsor-pymqi-1-3-python-and-websphere-mq-interface/

You need to compile PyMQI yourself on that system for that particular MQ
version.

Revision history for this message
Dariusz Suchojad (dsuch) said :
#3

I've just released PyMQI 1.3 and the development effort has moved to GitHub - https://github.com/dsuch/pymqi

Revision history for this message
GK (kgothandaraman) said :
#4

Hi Dariusz,
Thank you for releasing PyMQI 1.3. By any chance have you created pymqe library?

Thanks,
--GK.

Revision history for this message
Dariusz Suchojad (dsuch) said :
#5

Hello GK,

there will be no free Windows support for now, I'm really sorry about it but I just can't do everything myself.

http://pythonhosted.org/pymqi/support-consulting-contact.html

I really thought someone would step forth and help me out with everything by sponsoring the release but no one did so I just need to drop.

http://www.gefira.pl/blog/2013/02/07/can-you-sponsor-pymqi-1-3-python-and-websphere-mq-interface/

Sorry, I am only myself, can't handle everything..

Can you help with this problem?

Provide an answer of your own, or ask GK for more information if necessary.

To post a message you must log in.