z/OS Tools & Language

Expand all | Collapse all

Fatal Python error during z/OS Miniconda installation

Jump to Best Answer
  • 1.  Fatal Python error during z/OS Miniconda installation

    Posted 17 days ago
    Hi All.
    I have the IBM Open Enterprise Python 3.8 for z/OS installed and I am now trying to install the z/OS Miniconda. After I have executed command "./miniconda-py37-zos-2020-10-01.run --path /usr/RocketSW/miniconda/" everything looked good until the " installing extra_pkgs to the base env" phase. At that point I got an error (showed at the very bottom of this message) that I have no idea how to fix. Any idea?




    $ ./miniconda-py37-zos-2020-10-01.run --path /usr/RocketSW/miniconda/
    ********************************************************************************
    * Miniconda installation script is starting at 2020.10.05 15:54:13...
    ********************************************************************************
    Checking miniconda instance...
    Updating Miniconda distribution at '/usr/RocketSW/miniconda/'. Continue? Ýy/N¨
    Moving out sensitive files and directories...
    Extracting packages from distribution...
    Installing packages...
    PREFIX=/usr/RocketSW/miniconda
    installing: preconda ...
    installing: anaconda-client-1.7.2-py37_2 ...
    installing: asn1crypto-0.24.0-py37_0 ...
    installing: autotag-0.5-7 ...
    installing: bash-4.3.48-2 ...
    installing: beautifulsoup4-4.6.0-py37_0 ...
    installing: bzip2-1.0.6-6 ...
    installing: certifi-2018.4.16-py37_0 ...
    installing: cffi-1.11.5-py37_0 ...
    installing: chardet-3.0.4-py37_0 ...
    installing: click-6.7-py37_1 ...
    installing: clyent-1.2.1-py37_1 ...
    installing: conda-4.5.8-py37_11 ...
    installing: conda-build-3.12.0-py37_4 ...
    installing: conda-verify-3.0.2-py37_0 ...
    installing: cryptography-2.3-py37_3 ...
    installing: decorator-4.3.0-py37_0 ...
    installing: filelock-3.0.4-py37_0 ...
    installing: future-0.16.0-py37_1 ...
    installing: gettext-0.19.8.1-1 ...
    installing: glob2-0.6-py37_2 ...
    installing: idna-2.7-py37_0 ...
    installing: ipython_genutils-0.2.0-py37_0 ...
    installing: jinja2-2.10-py37_0 ...
    installing: jsonschema-2.6.0-py37_1 ...
    installing: jupyter_core-4.4.0-py37_2 ...
    installing: libffi-3.2.1-6 ...
    installing: markupsafe-1.0-py37_5 ...
    installing: nbformat-4.4.0-py37_0 ...
    installing: ncurses-6.1-10 ...
    installing: openssl-1.0.2k-5 ...
    installing: pkginfo-1.4.2-py37_0 ...
    installing: pyasn1-0.4.3-py37_0 ...
    installing: pycosat-0.6.3-py37_0 ...
    installing: pycparser-2.18-py37_0 ...
    installing: pyopenssl-18.0.0-py37_2 ...
    installing: python-3.7.0-26 ...
    installing: python-dateutil-2.7.3-py37_0 ...
    installing: pytz-2018.5-py37_0 ...
    installing: pyyaml-3.13-py37_0 ...
    installing: readline-7.0-3 ...
    installing: requests-2.19.1-py37_0 ...
    installing: ruamel_yaml-0.15.43-py37_0 ...
    installing: setuptools-40.0.0-py37_0 ...
    installing: six-1.14.0-py37_2 ...
    installing: sqlite-3.23.1-0 ...
    installing: traitlets-4.3.2-py37_1 ...
    installing: urllib3-1.23-py37_0 ...
    installing: xz-5.2.3-2 ...
    installing: yaml-0.1.6-1 ...
    installing: zlib-1.2.11-4 ...
    Building the "base" Anaconda environment
    Done.
    ---- installing extra_pkgs to the base env ----
    conda-repo-cli-1.0.1+2.g39f4600-py_0.tar.bz2:
    Fatal Python error: initfsencoding: unable to load the file system codec
    ModuleNotFoundError: No module named 'encodings'

    Current thread 0x3008400000000001 (most recent call first):
    äáá----á-èÇÁ-ËÑÅ>/%-ëñå âêè-Ï/Ë-ÊÁÄÁÑÎÁÀ--Fatal Python error: initfsencoding: unable to load the file system codec
    ModuleNotFoundError: No module named 'encodings'

    Current thread 0x3008380000000001 (most recent call first):
    äáá----á-èÇÁ-ËÑÅ>/%-ëñå âêè-Ï/Ë-ÊÁÄÁÑÎÁÀ--ÍËÊê?Ä,ÁÈëï_Ñ>ÑÄ?>À/ÁÈÄøÊ?ÃÑ%Á-ÀÄ?>À/-ËÇ--%Ñ>Á--------------- â|êè-Ñ>ËÈÊÍÄÈÑ?>
    UM7351 not found

    ------------------------------
    Claudio Martins
    z/OS System Programmer
    IBM Brazil
    ------------------------------


  • 2.  RE: Fatal Python error during z/OS Miniconda installation

    Posted 16 days ago
    Hi Claudio,
    Do you have IBM's Python installation directory in your $PATH? If yes, could you remove it temporary and install Miniconda again?

    ------------------------------
    Tatiana Balaburkina
    Rocket Software
    ------------------------------



  • 3.  RE: Fatal Python error during z/OS Miniconda installation
    Best Answer

    Posted 16 days ago
    Hi Tatiana.
    I've removed the IBM's Python installation directory from $PATH and got the same error. I then removed all the IBM Python's setup from my profile and could successfully complete the Miniconda installation. Since I am still not set for the secure conda server I have replied 'n' to 'Configure to use Rocket's secure conda server? '. Thanks a lot! Moving on ....


    Done.
    ---- installing extra_pkgs to the base env ----
    conda-repo-cli-1.0.1+2.g39f4600-py_0.tar.bz2:

    Downloading and Extracting Packages
    *-None | | ########## | 100%
    Preparing transaction: done
    Verifying transaction: done
    Executing transaction: done
    Creating .condarc file...
    Configure to use Rocket's secure conda server? ÝY/n¨
    n
    Installation successful.

    ------------------------------
    Claudio Martins
    z/OS System Programmer
    IBM Brazil
    ------------------------------