Closed csyhuang closed 1 week ago
In addition, when I tried setting up MDTF environments using
./src/conda/conda_env_setup.sh --all --conda_root /home/clare/miniconda3
I encountered the following error:
info libmamba ****************** Backtrace Start ******************
debug libmamba Loading configuration
trace libmamba Compute configurable 'create_base'
trace libmamba Compute configurable 'no_env'
trace libmamba Compute configurable 'no_rc'
trace libmamba Compute configurable 'rc_files'
trace libmamba Compute configurable 'root_prefix'
trace libmamba Get RC files configuration from locations up to HomeDir
trace libmamba Configuration not found at '/home/clare/.mambarc'
trace libmamba Configuration not found at '/home/clare/.mamba/mambarc.d'
trace libmamba Configuration not found at '/home/clare/.mamba/mambarc'
trace libmamba Configuration not found at '/home/clare/.mamba/.mambarc'
trace libmamba Configuration not found at '/home/clare/.config/mamba/mambarc.d'
trace libmamba Configuration not found at '/home/clare/.config/mamba/mambarc'
trace libmamba Configuration not found at '/home/clare/.config/mamba/.mambarc'
trace libmamba Configuration not found at '/home/clare/.condarc'
trace libmamba Configuration not found at '/home/clare/.conda/condarc.d'
trace libmamba Configuration not found at '/home/clare/.conda/condarc'
trace libmamba Configuration not found at '/home/clare/.conda/.condarc'
trace libmamba Configuration not found at '/home/clare/.config/conda/condarc.d'
trace libmamba Configuration not found at '/home/clare/.config/conda/condarc'
trace libmamba Configuration not found at '/home/clare/.config/conda/.condarc'
trace libmamba Configuration not found at '/home/clare/miniconda3/envs/_MDTF_install_temp/.mambarc'
trace libmamba Configuration not found at '/home/clare/miniconda3/envs/_MDTF_install_temp/condarc.d'
trace libmamba Configuration not found at '/home/clare/miniconda3/envs/_MDTF_install_temp/condarc'
trace libmamba Configuration not found at '/home/clare/miniconda3/envs/_MDTF_install_temp/.condarc'
trace libmamba Configuration not found at '/var/lib/conda/.mambarc'
trace libmamba Configuration not found at '/var/lib/conda/condarc.d/'
trace libmamba Configuration not found at '/var/lib/conda/condarc'
trace libmamba Configuration not found at '/var/lib/conda/.condarc'
trace libmamba Configuration not found at '/etc/conda/.mambarc'
trace libmamba Configuration not found at '/etc/conda/condarc.d/'
trace libmamba Configuration not found at '/etc/conda/condarc'
trace libmamba Configuration not found at '/etc/conda/.condarc'
trace libmamba Update configurable 'no_env'
trace libmamba Compute configurable 'envs_dirs'
trace libmamba Compute configurable 'file_specs'
error libmamba YAML spec file '=/home/clare/Dropbox/GitHub/mdtf/MDTF-diagnostics/src/conda/env_base_micromamba.yml' not found
critical libmamba File not found. Aborting.
info libmamba ****************** Backtrace End ********************
I checked that the /home/clare/Dropbox/GitHub/mdtf/MDTF-diagnostics/src/conda/env_base_micromamba.yml
exists, though.
@csyhuang For the miniconda issue, you need to specify --env_dir in the call (e.g., --env_dir /home/clare/miniconda3/envs). If the install still fails, try installing one environment at a time with the -e parameter instead of --all (e.g., -e python3_base). I'll try out the example_multicase on my machine and see if I can replicate the issue.
@csyhuang In the muitirun_config_template.jsonc, remove "example_pp_script.py" from the user_scripts list so that the line looks like "user_pp_scripts" : [],
. The preprocessor automatically runs files in the list, and this won't work on the multicase example. I'll fix the template file in the example POD directory.
@wrongkindofdoctor Thanks Jess. After merging your new commits, I'm able to run the multicase example and view the output graph.
It would be helpful to indicate in the documentation which files contain path that user has to change (as mentioned in point 3, 4). It would be good to update the environment file to include the python package (point 5) too.
Regarding the installation error:
For the miniconda issue, you need to specify --env_dir in the call (e.g., --env_dir /home/clare/miniconda3/envs).
I thought it was not neecssary because from the documentation:
If the --env_dir flag is omitted, the environment files will be installed in your system’s conda’s default location (usually
/envs).
And also, my error is not about the installation path, but that the environment file was not located properly. I installed the environment files one by one to get around this.
This issue is solved that I can proceed. Thanks and you can close this ticket.
I am trying to run the multicase example following 2.3-2.6 in the documentation page, but run into the error below.
There are several adjustments that I made in order to make the code run (till the point of error) - I think it would be good to include them in documentation such that new users can follow easier, so I listed them in the session Steps To Reproduce.
Please let me know if I missed anything. Thanks!
Bug Severity
Describe the bug
After making the path adjustments, I run the multicase example by the command
And got the error
AttributeError: 'DataArray' object has no attribute 'variables'. Did you mean: 'variable'?
. The full output is as follows:When I check the dataset using
ncdump -h ~/Dropbox/GitHub/mdtf/inputdata/mdtf_test_data/CMIP_Synthetic_r1i1p1f1_gr1_19850101-19891231/day/CMIP_Synthetic_r1i1p1f1_gr1_19850101-19891231.tas.day.nc
, I can see the time dimension being 1825, not 0.Steps To Reproduce
In addition to following the instructions on the documentation Section 2.3-2.6, I also made the following changes to get the code running:
I created the synthetic data as instructed in Section 2.3 and they are stored in
/home/clare/Dropbox/GitHub/mdtf/inputdata/mdtf_test_data/
.In
user_scripts/example_pp_script.py
, I changed the config_file to:I changed the paths in
diagnostics/example_multicase/esm_catalog_CMIP_synthetic_r1i1p1f1_gr1.csv
anddiagnostics/example_multicase/esm_catalog_CMIP_synthetic_r1i1p1f1_gr1.csv
to point to the dataset on my machine.I changed in
diagnostics/example_multicase/esm_catalog_CMIP_synthetic_r1i1p1f1_gr1.json
the"catalog_file"
to point to the correct.csv
path.I installed the most updated environment
src/conda/env_python3_base.yml
. Runningmdtf
afterwards gave me an error likeModuleNotFoundError: No module named 'cfunits'
, which I fixed by installing the missing packages:These are the steps I've executed before running
./mdtf -f diagnostics/example_multicase/multirun_config_template.jsonc
.Environment
I am on the
main
branch with all the existing commits pulled.Executing
cat /etc/os-release
gives