Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation of catalog builder #136

Open
Wen-hao-Dong opened this issue Jun 26, 2024 · 10 comments
Open

Installation of catalog builder #136

Wen-hao-Dong opened this issue Jun 26, 2024 · 10 comments

Comments

@Wen-hao-Dong
Copy link

I was trying to install the catalog builder following the instruction but ran into some issues:
conda install intakebuilder -c noaa-gfdl
Collecting package metadata (current_repodata.json): failed

ChannelNotAllowed: Channel not included in whitelist:
channel name: noaa-gfdl
channel url: https://conda.anaconda.org/noaa-gfdl

I then tried the alternative:
git clone https://github.com/aradhakrishnanGFDL/CatalogBuilder.git

conda env create -f environment_intake.yml

but got this message: EnvironmentFileNotFound: '/home/wnd/CatalogBuilder/environment_intake.yml' file not found

@Ciheim
Copy link
Collaborator

Ciheim commented Jun 28, 2024

Hey Wenhao, the condo installation can be tricky. Try running this command conda config --add channels new_channel.

If you want to try the conda environment creation try running this: conda env create -f ./environment_intake.yml

Let me know if those work for you.

@aradhakrishnanGFDL
Copy link
Owner

Hi @Wen-hao-Dong and @Ciheim I think the following works

conda config --add channels noaa-gfdl
conda config --append channels conda-forge
conda install intakebuilder -c noaa-gfdl

@Wen-hao-Dong
Copy link
Author

Wen-hao-Dong commented Jul 3, 2024 via email

@Wen-hao-Dong
Copy link
Author

Wen-hao-Dong commented Jul 3, 2024 via email

@aradhakrishnanGFDL
Copy link
Owner

Try this -

Make changes to your ~/.condarc file to reflect something like the following, mainly adding the channels to the whitelist.

whitelist_channels:
  - noaa-gfdl
  - conda-forge
  - anaconda
channels:
  - noaa-gfdl
  - conda-forge
  - anaconda

@aradhakrishnanGFDL
Copy link
Owner

@Wen-hao-Dong any luck?

@Wen-hao-Dong
Copy link
Author

Wen-hao-Dong commented Jul 11, 2024 via email

@Wen-hao-Dong
Copy link
Author

Got a different message after another try:
Downloading and Extracting Packages
intakebuilder-2.0.1 | 47.9 MB | ######################################################################################################################################################################## | 100%
Preparing transaction: done
Verifying transaction: failed

EnvironmentNotWritableError: The current user does not have write permissions to the target environment.
environment location: /app/conda/miniconda
uid: 20398
gid: 77

@ceblanton
Copy link
Collaborator

That error means you need to tell conda to use directories you own to install the packages and environments into. If you're on the GFDL workstations, you can use /local2/home:

conda config --add pkgs_dirs /local2/home/conda/pkgs
conda config --add envs_dirs /local2/home/conda/envs

Then you should be able to install it into a new environment with:

conda create --name intakebuilder -c noaa-gfdl -c conda-forge intakebuilder

@Wen-hao-Dong
Copy link
Author

Wen-hao-Dong commented Jul 17, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants