Upgrading Image Processor for i

Note:

  • @@ is the version number of the source/current version level (example: 10)
  • ### is the version number of the target/new version level (example: 20)
For clarity, you may wish to copy these instructions to a text editor and then perform a scan and replace for the above values before beginning the upgrade.

  1. Unzip the downloaded file to C:\temp (or the directory of your choice).
  2. Create the *SAVF to upload to on your IBM i:
    CRTSAVF FILE(QGPL/IPI###) AUT(*ALL)
  3. FTP the file IPI.SAVF from your PC to the IBM i. Open a command prompt (Start → Run → type 'cmd' and preess Enter). Type the following into the command prompt, replacing the IP address with that of your IBM i. When prompted, enter your IBM i username and password.
    1. ftp 123.456.789.123
    2. binary
    3. lcd c:\temp
    4. quote site namefmt 0
    5. cd QGPL
    6. put ipi.savf ipi###.savf
    7. quit
  4. Issue the following IBM i commands:
    1. RSTOBJ OBJ(*ALL) SAVLIB(IPI) MBROPT(*ALL) ALWOBJDIF(*FILELVL *OWNER) OMITOBJ((LICP) (EXAMPLE)) RSTLIB(IPI) DEV(*SAVF) SAVF(QGPL/IPI###)
    2. RST DEV('/QSYS.LIB/IPI.LIB/IFS.FILE') OBJ(('/kato/ipi' *INCLUDE '/kato/ipi')) CRTPRNDIR(*YES) PRNDIROWN(QSYS) ALWOBJDIF(*ALL)
    3. DLTF FILE(IPI/EXAMPLE)
    4. RSTOBJ OBJ(EXAMPLE) OBJTYPE(*FILE) SAVLIB(IPI) MBROPT(*ALL) ALWOBJDIF(*FILELVL *OWNER) RSTLIB(IPI) DEV(*SAVF) SAVF(QGPL/IPI###)
    5. ADDLIBLE IPI
    6. CALL QP2TERM
  5. In the PASE shell, issue the following commands. Note that these may take multiple minutes to execute, and that you may see messages which look like errors. You can safely ignore all messages.
    1. export PATH=/QOpenSys/pkgs/bin:$PATH
    2. yum install python3 python3-devel python3-pip python3-setuptools -y
    3. yum install python39 python39-devel python39-wheel -y
    4. yum install libjpeg-turbo-devel zlib-devel libtiff-devel libwebp-devel freetype-devel -y
    5. cd /kato/ipi
    6. rm -rf /kato/ipi/env
    7. python3.9 -m venv env
    8. . env/bin/activate
    9. pip install Pillow-8.4.0-cp39-cp39-os400_powerpc64.whl
    10. pip list --local

      After completing the last step you should receive output similar to the following:

            Package    Version
            ---------- -------
            Pillow     8.4.0
            pip        23.0.1
            setuptools 58.1.0
            

      If you receive output that looks similar, execute the next command, and then press F3 to exit PASE:

    11. deactivate