IBM Support

PH66017: DOUBLE SYMLINK TO PYTHON BINARY CONTAINING A Z/OS SYSVAR CAUSES VENV ERROR

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Symlinks that contain a z/OS System Variable (sysvar) and point
    to the Python binary may encounter Python application issues if
    two levels of symlink are used.  For example:
    
    /usr -> /$VERSION/usr
    /usr/bin/python -> /usr/lpp/IBM/cyp/v3r11/pyz/bin/python3
    
    Here, the second symlink replaces it's /usr with /$VERSION/usr.
    When this is used, the internal Python prefix path may be
    incorrect, and packages such as venv will output an error:
    
    Error: Command 'Ý'/u/myuser/python/ckvenv/bin/python', '-m',
    'ensurepip', '--up
    grade', '--default-pip'¨' returned non-zero exit status 1.
    

Local fix

  • - Do not use symlinks with z/OS sysvars, OR
    - Only use one symlink to the Python binary with a sysvar
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All users of the IBM Open Enterprise SDK for *
    *                 Python 3.13                                  *
    ****************************************************************
    * PROBLEM DESCRIPTION: This contains a bug fix                 *
    ****************************************************************
    * RECOMMENDATION: Apply provided service                       *
    ****************************************************************
    Fixed zipapp created archives not being runnable
    

Problem conclusion

  • IBM is releasing a cumulative update to IBM Open Enterprise SDK
    for Python 3.13.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH66017

  • Reported component name

    PYTHON FOR ZOS

  • Reported component ID

    5655PYT00

  • Reported release

    3D0

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2025-04-04

  • Closed date

    2025-06-09

  • Last modified date

    2025-07-02

  • APAR is sysrouted FROM one or more of the following:

    PH65695

  • APAR is sysrouted TO one or more of the following:

Modules/Macros

  • CYPPHPAX CYPSNPAX
    

Fix information

  • Fixed component name

    PYTHON FOR ZOS

  • Fixed component ID

    5655PYT00

Applicable component levels

  • R3D0 PSY UO03555

       UP25/06/13 P F506

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU011","label":"Systems - zSystems software"},"Product":{"code":"SG19M"},"Platform":[{"code":"PF054","label":"z Systems"}],"Version":"3D0"}]

Document Information

Modified date:
02 July 2025