Open-source Languages & Tools for z/OS

 View Only
  • 1.  Problem installing Rocket free tools from channel in miniconda

    Posted 09-02-2022 15:39
    Hi,
    I have miniconda installted and I am trying to install some tools using it, but it is showing some channel error.
    This is what I am doing -

    1. I have Miniconda installed in - /shrd/miniconda/v2
    2. I have a environment named Rocket inside - /shrd/miniconda/v2/envs/Rocket
    3. I have the Channel name inside the file - /shrd/miniconda/v2/.condarc 
                                 What's inside .condarc :
                                                                add_pip_as_python_dependency: False
                                                                channel_alias: https://anaconda.org/
                                                                channels:
                                                                                  - zoss-appdev

    4. I have a file named appdev_manifest inside - /shrd/miniconda
    5.  So when I am running the following command I am getting error: 
                                          conda install - -file /shrd/miniconda/appdev_manifest_1.2.txt


    ERROR I AM GETTING:
    bash-4.3$ conda activate Rocket
    (Rocket) bash-4.3$ conda install --file /shrd/miniconda/appdev_manifest_1.2.txt
    Solving environment: failed

    CondaHTTPError: HTTP 404 NOT FOUND for url <https://anaconda.org/zoss-appdev/noarch/repodata.json>
    Elapsed: 00:00.563552
    CF-RAY: 74484c00ecfa7e80-LAX

    The remote server could not find the noarch directory for the
    requested channel with url: https://anaconda.org/zoss-appdev

    As of conda 4.3, a valid channel must contain a `noarch/repodata.json` and
    associated `noarch/repodata.json.bz2` file, even if `noarch/repodata.json` is
    empty. please request that the channel administrator create
    `noarch/repodata.json` and associated `noarch/repodata.json.bz2` files.
    $ mkdir noarch
    $ echo '{}' > noarch/repodata.json
    $ bzip2 -k noarch/repodata.json

    You will need to adjust your conda configuration to proceed.
    Use `conda config --show channels` to view your configuration's current state.
    Further configuration help can be found at <https://conda.io/docs/config.html>.

    What Should I do to install products or packages with conda ??


    ------------------------------
    Divyanshu Singh
    MVS system programmer
    BMC Software
    Kanpur IN
    ------------------------------


  • 2.  RE: Problem installing Rocket free tools from channel in miniconda

    ROCKETEER
    Posted 09-05-2022 03:40
    Hi Divyanshu Singh,

    Just delete 2nd line in your .condarc (line with channel alias) and try again.

    Thanks,
    Alex


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



  • 3.  RE: Problem installing Rocket free tools from channel in miniconda

    Posted 09-05-2022 14:45
    Hi Alex,

    I tried that, I removed the channel alias from .condarc file, but then too it not works!!
    .condarc :
    add_pip_as_python_dependency: False
    channels:
    - zoss-appdev/unzip

    Error:
    (Rocket) bash-4.3$ conda install --file /shrd/miniconda/appdev_manifest_1.2.txt
    Solving environment: failed

    CondaHTTPError: HTTP 404 NOT FOUND for url <https://anaconda.org/zoss-appdev/noarch/repodata.json>
    Elapsed: 00:00.583409
    CF-RAY: 7460fdf24eec7e10-LAX

    The remote server could not find the noarch directory for the
    requested channel with url: https://anaconda.org/zoss-appdev

    As of conda 4.3, a valid channel must contain a `noarch/repodata.json` and
    associated `noarch/repodata.json.bz2` file, even if `noarch/repodata.json` is
    empty. please request that the channel administrator create
    `noarch/repodata.json` and associated `noarch/repodata.json.bz2` files.
    $ mkdir noarch
    $ echo '{}' > noarch/repodata.json
    $ bzip2 -k noarch/repodata.json

    You will need to adjust your conda configuration to proceed.
    Use `conda config --show channels` to view your configuration's current state.
    Further configuration help can be found at <https://conda.io/docs/config.html>.

    (Rocket) bash-4.3$

    Am I giving any wrong Install command?? 


    ------------------------------
    Divyanshu Singh
    MVS system programmer
    BMC Software
    Kanpur IN
    ------------------------------



  • 4.  RE: Problem installing Rocket free tools from channel in miniconda

    ROCKETEER
    Posted 09-05-2022 15:13

    Hi Divyanshu Singh,

    Let's check all your config, please give the output of the following command:
    conda config --show-sources
    Also as I see you have "  - zoss-appdev/unzip" as a channel, it should be "  - zoss-appdev"

    Thanks,
    Alex



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



  • 5.  RE: Problem installing Rocket free tools from channel in miniconda

    Posted 09-05-2022 15:19
    Hi Alex,

    This is the output of --> conda config --show-sources

    bash-4.3$ conda activate Rocket
    (Rocket) bash-4.3$ conda config --show-sources
    ==> /shrd/miniconda/v2/.condarc <==
    add_pip_as_python_dependency: False
    channels:
    - zoss-appdev

    ==> /u/cstdys/.condarc <==
    channel_priority: False
    channels:
    - https://anaconda.org/zoss-appdev
    - https://repo.anaconda.com/pkgs/main/noarch/
    report_errors: False

    (Rocket) bash-4.3$

    And I might have to change it in the email, but I got it change in the file. Sorry for the confusion created!!




  • 6.  RE: Problem installing Rocket free tools from channel in miniconda

    Posted 09-05-2022 15:38
    Hi Alex,

    I made the same changes to .condarc inside /u/cstdys and tried to install it.
    channel_priority: false
    channels:

    * zoss-appdev
    It worked this time.

    Thanks for your support.
    Divyanshu.




  • 7.  RE: Problem installing Rocket free tools from channel in miniconda

    ROCKETEER
    Posted 09-05-2022 15:56
    nice

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



  • 8.  RE: Problem installing Rocket free tools from channel in miniconda

    Posted 09-05-2022 15:10
    Hi Alex,

    I have tried removing the channel alias from the .condarc file, but then too it shows the same error.

    .condarc:
    add_pip_as_python_dependency: False
    channels:
    - zoss-appdev

    Error:
    (Rocket) bash-4.3$ conda install --file /shrd/miniconda/appdev_manifest_1.2.txt
    Solving environment: failed

    CondaHTTPError: HTTP 404 NOT FOUND for url https://anaconda.org/zoss-appdev/noarch/repodata.json
    Elapsed: 00:00.583409
    CF-RAY: 7460fdf24eec7e10-LAX

    The remote server could not find the noarch directory for the
    requested channel with url: https://anaconda.org/zoss-appdev

    As of conda 4.3, a valid channel must contain a `noarch/repodata.json` and
    associated `noarch/repodata.json.bz2` file, even if `noarch/repodata.json` is
    empty. please request that the channel administrator create
    `noarch/repodata.json` and associated `noarch/repodata.json.bz2` files.
    $ mkdir noarch
    $ echo '{}' > noarch/repodata.json
    $ bzip2 -k noarch/repodata.json

    You will need to adjust your conda configuration to proceed.
    Use `conda config --show channels` to view your configuration's current state.
    Further configuration help can be found at https://conda.io/docs/config.html.

    Am I giving any wrong Install commands??
    I want this to work properly --> Rocket Open AppDev for Z (free solution)
    z/OS Miniconda installer for users not on paid support contract. z/OS ports will be downloaded from our conda channel server at anaconda.org.