Open-source Languages & Tools for z/OS

 View Only
  • 1.  Install and activate z/OS MIniconda

    Posted 02-21-2023 07:22


    I am writing to consult you on activating miniconda on z/OS. After I installed z/OS Miniconda and tried to activate the environment, I encountered the following error. Would you please help figure out what' wrong? Thanks.

    bash-5.1$ conda activate proenv
    CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
    To initialize your shell, run

        $ conda init <SHELL_NAME>

    Currently supported shells are:
      - bash
      - fish
      - tcsh
      - xonsh
      - zsh
      - powershell

    See 'conda init --help' for more information and options.

    IMPORTANT: You may need to close and restart your shell after running 'conda init'.

    bash-5.1$ conda init bash

    # >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

        Traceback (most recent call last):
          File "/u/mvsbuild/miniconda/lib/python3.10/site-packages/conda/", line 1118, in __call__
            return func(*args, **kwargs)
          File "/u/mvsbuild/miniconda/lib/python3.10/site-packages/conda/cli/", line 69, in main_subshell
            exit_code = do_call(args, p)
          File "/u/mvsbuild/miniconda/lib/python3.10/site-packages/conda/cli/", line 91, in do_call
            return getattr(module, func_name)(args, parser)
          File "/u/mvsbuild/miniconda/lib/python3.10/site-packages/conda/cli/", line 38, in execute
            return initialize(context.conda_prefix, selected_shells, for_user, args.system,
          File "/u/mvsbuild/miniconda/lib/python3.10/site-packages/conda/core/", line 116, in initialize
          File "/u/mvsbuild/miniconda/lib/python3.10/site-packages/conda/core/", line 664, in run_plan
            result = globals()[step['function']](*step.get('args', ()), **step.get('kwargs', {}))
          File "/u/mvsbuild/miniconda/lib/python3.10/site-packages/conda/core/", line 1279, in init_sh_user
            rc_content =
          File "/u/mvsbuild/miniconda/lib/python3.10/", line 329, in decode
            (result, consumed) = self._buffer_decode(data, self.errors, final)
        UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa4 in position 2: invalid start byte

    `$ ./conda init bash`

      environment variables:
                     CIO_TEST=<not set>
               CURL_CA_BUNDLE=<not set>
                   LD_PRELOAD=<not set>
           REQUESTS_CA_BUNDLE=<not set>
                SSL_CERT_FILE=<not set>

         active environment : None
           user config file : /u/jialjlj/.condarc
     populated config files : /u/mvsbuild/miniconda/.condarc
              conda version : 22.11.1
        conda-build version : conda-build-3.12.0-6
             python version :
           virtual packages :
           base environment : /u/mvsbuild/miniconda  (writable)
          conda av data dir : /u/mvsbuild/miniconda/etc/conda
      conda av metadata url : None
               channel URLs :
              package cache : /u/mvsbuild/miniconda/pkgs
           envs directories : /u/mvsbuild/miniconda/envs
                   platform : zos-z
                 user-agent : conda/22.11.1 requests/2.28.1 CPython/3.10.7 OS/390/28.00 OS/390/04
                    UID:GID : 1001356:2611
                 netrc file : None
               offline mode : False

    An unexpected error has occurred. Conda has prepared the above report.

    If submitted, this report will be used by core maintainers to improve
    future releases of conda.
    Would you like conda to send this report to the core maintainers? [y/N]: y
    Upload successful.

    Thank you for helping to improve conda.
    Opt-in to always sending reports (and not see this message again)
    by running

        $ conda config --set report_errors true

    Jia Liu
    IBM China Company Limited
    Shanghai CN

  • 2.  RE: Install and activate z/OS MIniconda

    Posted 02-21-2023 08:24

    Hello Jia,

    Could you confirm that the settings from the step 5 were added to your pfoile?

    Tatiana Balaburkina
    Engineering Manager
    Rocket Internal - All Brands