|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
![Reply to topic](templates/DAJ_Glass/images/lang_english/reply.gif) |
|
Python package pymqi installation issue |
« View previous topic :: View next topic » |
Author |
Message
|
ghoshly |
Posted: Thu Nov 23, 2023 3:12 am Post subject: Python package pymqi installation issue |
|
|
Partisan
Joined: 10 Jan 2008 Posts: 325
|
In my Windows laptop I have Pycharm and Python 3.9.6 installed and I am trying to install pymqi package so that I can interact with Queue manager and queues which are installed in remote AIX server.
I have installed Microsoft VC ++ Build Tools 2022 and I could run the following command to see MQ Server is installed in the Windows laptop, not MQ client. I can use RFHUtilc to connect to remote queue managers from the laptop.
reg.exe query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\IBM\WebSphere MQ\Installation" /s
After installing the MSVC ++ Build tools and set-visual-studio-env.bat execution, initial error was -
C1083: Cannot open include file: 'cmqc.h': No such file or directory
I followed this link - https://stackoverflow.com/questions/56281909/how-to-install-pymqi-in-window-64-bit
Now the error says - LINK : fatal error LNK1181: cannot open input file 'mqic.lib'
I tried to read blog update of Morag Hughson where she mentions how to flip to Local binding using mqm.lib and MQ_CONNECT_TYPE environment variable, but for now I am trying to get the client connection working.
Do I have to install MQ client separately? |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
gbaddeley |
Posted: Thu Nov 23, 2023 2:39 pm Post subject: |
|
|
![](images/avatars/gallery/Star Wars/movie_star_wars_yoda.gif) Jedi
Joined: 25 Mar 2003 Posts: 2495 Location: Melbourne, Australia
|
If reg query shows that MQ Client is installed, you should be good to go. Check that the lib file is present in the MQ installation directory structure. It could also be an issue with environment variables. set-visual-studio-env.bat may missing something. _________________ Glenn |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
hughson |
Posted: Thu Nov 23, 2023 7:01 pm Post subject: |
|
|
![](images/avatars/810794940518bb946528b3.jpg) Padawan
Joined: 09 May 2013 Posts: 1916 Location: Bay of Plenty, New Zealand
|
Did you run setmqenv (or is your installation a primary)?
Cheers,
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
ghoshly |
Posted: Fri Nov 24, 2023 8:03 am Post subject: Resolved |
|
|
Partisan
Joined: 10 Jan 2008 Posts: 325
|
Only MQ server was installed in the laptop. Client was not installed.
I could run dspmqver and MQ v9 was Primary installation.
I could source Lib64 directory from MQ Client installation folder and that resolved the issue of package installation. |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
hughson |
Posted: Fri Nov 24, 2023 2:36 pm Post subject: Re: Resolved |
|
|
![](images/avatars/810794940518bb946528b3.jpg) Padawan
Joined: 09 May 2013 Posts: 1916 Location: Bay of Plenty, New Zealand
|
ghoshly wrote: |
Only MQ server was installed in the laptop. Client was not installed.
I could run dspmqver and MQ v9 was Primary installation. |
Not sure I understand why you are trying to get it to work with the client if you don't have the client installed.
Remember also that if you tie the PyMQI build to mqm instead of mqic, then you can still make client connections. The mqm library can do both.
ghoshly wrote: |
I could source Lib64 directory from MQ Client installation folder and that resolved the issue of package installation. |
Does that mean you didn't install the MQ Client, but instead just pointed at the installation folder? Are you able to run MQ Client applications - say amqsputc - by doing this? While this may have got your PyMQI installation to complete, I'm sure you will have other problems down the line. Best to use an actual installed version of MQ. You have an MQ installation and the know-how for the PyMQI install to tie to mqm.lib, why not just go that route?
Cheers,
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
|
|
![Reply to topic](templates/DAJ_Glass/images/lang_english/reply.gif) |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|