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 » General IBM MQ Support » Python 3.12 & PYMQI

Post new topic  Reply to topic
 Python 3.12 & PYMQI « View previous topic :: View next topic » 
Author Message
bobbee
PostPosted: Tue Sep 03, 2024 8:54 am    Post subject: Python 3.12 & PYMQI Reply with quote

Knight

Joined: 20 Sep 2001
Posts: 545
Location: Tampa

I have been using Python 3.8. I upgraded my scripts and needed 3.10 or above for some supported code.

I am getting the following issue:

ModuleNotFoundError: No module named '_ctypes'

Interesting. I issued this command under 3.8 and the new 3.12 and it sez the _ctypes in not found.

python3.12 -m _ctypes
/usr/local/bin/python3.12: No module named _ctypes


I did check the build output and it sez _ctypes is there:

checking for stdlib extension module _ctypes_test... yes

This error is coming out of PYMQI.

Is PYMQI verified against 3.12?
Back to top
View user's profile Send private message Send e-mail AIM Address
hughson
PostPosted: Tue Sep 03, 2024 2:30 pm    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1959
Location: Bay of Plenty, New Zealand

I can well imagine that _ctypes_test is not the same thing as _ctypes.

Where in PyMQI is this error coming from - can you show a bit more of the error information or is that all you get?

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
bobbee
PostPosted: Wed Sep 04, 2024 2:39 am    Post subject: Reply with quote

Knight

Joined: 20 Sep 2001
Posts: 545
Location: Tampa

This was frustrating. I was running verification commands against the old, working, installation and was getting the same negative results. I checked the build output and it said it was there. I rebuild Python a 4th time. I do believe the instructions had one more command and then reinstalled MQPYI. Error went away.
Back to top
View user's profile Send private message Send e-mail AIM Address
bobbee
PostPosted: Wed Sep 04, 2024 4:22 am    Post subject: Reply with quote

Knight

Joined: 20 Sep 2001
Posts: 545
Location: Tampa

BTW, I put ths code in my program for debugging. In the end it finally worked

Code:
try:
    import _ctypes
    print("The _ctypes module is available.")
except ModuleNotFoundError:
    print("The _ctypes module is not available.")
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Python 3.12 & PYMQI
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.