Open-source Languages & Tools for z/OS

 View Only
Expand all | Collapse all

was able to instal miniconda and create & activate envirionment, but cannot do so any longer

  • 1.  was able to instal miniconda and create & activate envirionment, but cannot do so any longer

    Posted 04-26-2022 10:24

    Hi ,

    I downloaded the latest files: 

    appdev_manifest_2.0.1.txt
    miniconda-zos-2.0-2022-01-17.run

    1) I was able to successfully execute the installation script : miniconda-zos-2.0-2022-01-17.run  (we don't have access to Rocket secure server) 

    ./miniconda-zos-2.0-2022-01-17.run  --path /u/q3bbgx8/miniconda 

    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.
    bash-4.3$

    2) I am also able to create a conda environment : 

    bash-4.3$ cd /u/q3bbgx8/miniconda/bin
    bash-4.3$ ./conda create -n GCC
    Solving environment: done

    ## Package Plan ##

    environment location: /u/q3bbgx8/miniconda/envs/GCC


    Proceed (Ýy¨/n)? y

    Preparing transaction: done
    Verifying transaction: done
    Executing transaction: done

    3) I fail when attemptingto activate it : 

    bash-4.3$ ./conda activate GCC

    CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
    If your shell is Bash or a Bourne variant, enable conda for the current user with

    $ echo ". /u/q3bbgx8/miniconda/etc/profile.d/conda.sh" >> ~/.bashrc



    $ sudo ln -s /u/q3bbgx8/miniconda/etc/profile.d/conda.sh /etc/profile.d/conda.sh

    The options above will permanently enable the 'conda' command, but they do NOT
    put conda's base (root) environment on PATH. To do so, run

    $ conda activate

    in your terminal, or to put the base environment on PATH permanently, run

    $ echo "conda activate" >> ~/.bashrc

    Previous to conda 4.4, the recommended way to activate conda was to modify PATH in
    your ~/.bashrc file. You should manually remove the line that looks like

    export PATH="/u/q3bbgx8/miniconda/bin:$PATH"

    ¬¬¬ The above line should NO LONGER be in your ~/.bashrc file! ¬¬¬

    4) I tried the following command but it made no difference :  echo ". /u/q3bbgx8/miniconda/etc/profile.d/conda.sh" >> ~/.bashrc

    my /u/q3bgx8/.profile looks as follows : 

    PATH=/usr/lpp/java/J8.0_64/bin:$PATH
    LIBPATH=/usr/lpp/java/J8.0_64/lib:$LIBPATH
    LD_LIBRARY_PATH=/usr/lpp/java/J8.0_64/lib:$LD_LIBRARY_PATH=/lib
    export JAVA_HOME=/usr/lpp/java/J8.0_64
    export PATH LIBPATH LD_LIBRARY_PATH
    export _BPXK_AUTOCVT=ON
    export _CEE_RUNOPTS='FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)'
    SHELL=/u/q3bbgx8/miniconda/bin/bash
    exec $SHELL
    echo $_SC_ARG_MAX


    5) conda env list  yeilds the following :

    # conda environments:
    #
    base * /u/q3bbgx8/miniconda
    GCC /u/q3bbgx8/miniconda/envs/GCC


    Can you please advise if something in my environment is messed up.  I was able to  activate a conda  environment in the past but no longer able to do so .,

    Thanks,

    Marco Passaretti 




     



  • 2.  RE: was able to instal miniconda and create & activate envirionment, but cannot do so any longer

    ROCKETEER
    Posted 04-26-2022 11:06

    Hi Marco,

    Please download zOS Miniconda Documentation.pdf from the customer portal also and check "Installing z/OS Miniconda" section", especially details after "Each end user who needs access to Miniconda should have following settings in a Bash startup file: "

    Thanks,
    Alexander



    ------------------------------
    Alexander Klochkov
    QA
    Rocket Internal - All Brands
    Vilnius LT
    ------------------------------



  • 3.  RE: was able to instal miniconda and create & activate envirionment, but cannot do so any longer

    ROCKETEER
    Posted 04-26-2022 11:12

    >> 4) I tried the following command but it made no difference :  echo ". /u/q3bbgx8/miniconda/etc/profile.d/conda.sh" >> ~/.bashrc

    Did you try to restart your ssh terminal after that?



    ------------------------------
    Alexander Klochkov
    QA
    Rocket Internal - All Brands
    Vilnius LT
    ------------------------------



  • 4.  RE: was able to instal miniconda and create & activate envirionment, but cannot do so any longer

    Posted 04-26-2022 11:24

    Hi Alexander.

    Thanks for your replies .

    I logged off/on to uss ,but to no avail after executing this command : echo ". /u/q3bbgx8/miniconda/etc/profile.d/conda.sh" >> ~/.bashrc

    my .profile has the following commands in it : 

    export _BPXK_AUTOCVT=ON
    export _CEE_RUNOPTS='FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)'
    SHELL=/u/q3bbgx8/miniconda/bin/bash
    exec $SHELL


    Regards,

    Marco 



    ------------------------------
    Marco Passaretti
    System Programmer
    Royal Bank of Canada
    West Toronto ON CA
    ------------------------------



  • 5.  RE: was able to instal miniconda and create & activate envirionment, but cannot do so any longer

    ROCKETEER
    Posted 04-26-2022 11:37

    Hi Marco,

    Can you please attach the output of the "env | sort" and "cat ~/.bashrc" commands here?

    Thanks,
    Alex



    ------------------------------
    Alexander Klochkov
    QA
    Rocket Internal - All Brands
    Vilnius LT
    ------------------------------



  • 6.  RE: was able to instal miniconda and create & activate envirionment, but cannot do so any longer

    Posted 04-26-2022 12:03
      |   view attached
    please see attached .txt file .

    Thanks,

    Marco

    ------------------------------
    Marco Passaretti
    System Programmer
    Royal Bank of Canada
    West Toronto ON CA
    ------------------------------

    Attachment(s)

    txt
    commands.txt   6 KB 1 version


  • 7.  RE: was able to instal miniconda and create & activate envirionment, but cannot do so any longer

    ROCKETEER
    Posted 04-27-2022 05:34

    Hi Marco,

    What is the output of the following commands 'conda activate' and 'conda info'?

    Thanks,
    Alex




    ------------------------------
    Alexander Klochkov
    QA
    Rocket Internal - All Brands
    Vilnius LT
    ------------------------------



  • 8.  RE: was able to instal miniconda and create & activate envirionment, but cannot do so any longer

    Posted 04-27-2022 10:47
      |   view attached
    Hi Alexander,

    Please see attached file for command outputs .

    Thanks,

    Marco

    ------------------------------
    Marco Passaretti
    System Programmer
    Royal Bank of Canada
    West Toronto ON CA
    ------------------------------

    Attachment(s)

    txt
    conda_commands.txt   4 KB 1 version


  • 9.  RE: was able to instal miniconda and create & activate envirionment, but cannot do so any longer

    ROCKETEER
    Posted 04-28-2022 04:59
    Hi Marco,
    You don't have to be in 'u/q3bbgx8/miniconda/bin' to run conda commands, can you try again please but not from bin folder and without './' 
    Thanks

    ------------------------------
    Alexander Klochkov
    QA
    Rocket Internal - All Brands
    Vilnius LT
    ------------------------------



  • 10.  RE: was able to instal miniconda and create & activate envirionment, but cannot do so any longer

    Posted 04-28-2022 05:55
      |   view attached

    Hi Alexander,


    see attached commands issued from /u/q3bbgx8/

    thanks,

    Marco 



    ------------------------------
    Marco Passaretti
    System Programmer
    Royal Bank of Canada
    West Toronto ON CA
    ------------------------------

    Attachment(s)

    txt
    conda_commands_2.txt   1 KB 1 version


  • 11.  RE: was able to instal miniconda and create & activate envirionment, but cannot do so any longer

    Posted 04-28-2022 06:11

    Hi Alexander,

    I was able to proceed to activate my conda environment and download all the packages I require with e following command : 

    conda install -c https://conda.anaconda.org/zoss-appdev <product or package name>

    Thanks, 

    Marco Passaretti 



    ------------------------------
    Marco Passaretti
    System Programmer
    Royal Bank of Canada
    West Toronto ON CA
    ------------------------------



  • 12.  RE: was able to instal miniconda and create & activate envirionment, but cannot do so any longer

    ROCKETEER
    Posted 04-28-2022 07:54
    good to hear that

    ------------------------------
    Alexander Klochkov
    QA
    Rocket Internal - All Brands
    Vilnius LT
    ------------------------------



  • 13.  RE: was able to instal miniconda and create & activate envirionment, but cannot do so any longer

    Posted 04-28-2022 07:56
    Hi Alexander,

    Thanks for all you help on this matter.

    regards,

    Marco Passaretti

    ------------------------------
    Marco Passaretti
    System Programmer
    Royal Bank of Canada
    West Toronto ON CA
    ------------------------------