ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Python package pymqi installation issue

Post new topic  Reply to topic
 Python package pymqi installation issue « View previous topic :: View next topic » 
Author Message
ghoshly
PostPosted: Thu Nov 23, 2023 3:12 am    Post subject: Python package pymqi installation issue Reply with quote

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
View user's profile Send private message
gbaddeley
PostPosted: Thu Nov 23, 2023 2:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
hughson
PostPosted: Thu Nov 23, 2023 7:01 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
ghoshly
PostPosted: Fri Nov 24, 2023 8:03 am    Post subject: Resolved Reply with quote

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
View user's profile Send private message
hughson
PostPosted: Fri Nov 24, 2023 2:36 pm    Post subject: Re: Resolved Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Python package pymqi installation issue
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.