Hi Michael,
(assuming you are running the Python on IBMi itself)
Here are a great few resources for you to try :
https://www.itjungle.com/2019/06/10/guru-getting-started-with-python-on-ibm-i/
https://github.com/IBM/ibmi-oss-examples (good examples here also for you to try out)
This is also a goto resource for you to evaluate (an official link for any IBM i Open Source) :
https://ibmi-oss-docs.readthedocs.io/en/latest/python/README.html
Then do you perhaps know of the IBM I Open Source community on Ryver? (there you will be able to post your questions for a great deal of Python experts)
https://ibmioss.ryver.com/
http://ibm.biz/ibmioss-chat-join <--- to join
Give your question there a stab to see if people might be able to help you troubleshoot?
------------------------------
Marius le Roux theIBMiGuy
Owner , IBM i Consultant & Technology Strategist
MLR Consulting
Port Alfred
------------------------------
Original Message:
Sent: Mon March 03, 2025 07:36 PM
From: Michael Soucy
Subject: Getting started with Python on the IBM Power system
Greetings,
My employer started offering Python training through a college that we have a relationship with. My goal is after the training I'd like to play with Python on our Power 10 server. I've already installed Python on one of our LPARs.
I'm wondering if anyone can recommend some good tutorials for Python that pertain to the IBM i. I found this IBM page that gives an example of reading a DB2 table using Python.
Python script accessing DB2 data - Simple example
I tried to do the example shown on the web page, but seem to be getting errors running the Python script I created. I also am not 100% sure I installed PTable correctly.
Lastly the training course I'm taking through work has us doing our Python training using Microsoft VS Code. I'm wondering can you run Python code in VS Code that accesses data on the IBM i?
Thank you,
Michael Soucy
------------------------------
Michael Soucy
------------------------------