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

Local Build KeyError: 'https://conda.anaconda.org/conda-forge' #24657

Open
DevAlvaroF opened this issue Dec 4, 2023 · 3 comments
Open

Local Build KeyError: 'https://conda.anaconda.org/conda-forge' #24657

DevAlvaroF opened this issue Dec 4, 2023 · 3 comments
Labels

Comments

@DevAlvaroF
Copy link
Contributor

DevAlvaroF commented Dec 4, 2023

Bug:

@conda-forge/staged-recipes

Tutorial to Test locally: https://conda-forge.org/docs/maintainer/adding_pkgs.html#running-tests-locally-for-staged-recipes

  1. Forked staged.recipes
  2. Checked out a new branch
  3. ran build-locally.py

Error: KeyError: 'https://conda.anaconda.org/conda-forge'

(base) alvaroflores@Alvaros-MacBook-Pro staged-recipes % sudo -E python build-locally.py
Password:
valid configs are {'linux64', 'linux64_cuda112', 'win64', 'osx64'}
config not selected, please choose from the following:

1. linux64
2. linux64_cuda112
3. osx64
4. win64

> 3
selected osx64
+ echo -e '\n\nInstalling a fresh version of Mambaforge.'


Installing a fresh version of Mambaforge.
+ [[ '' == \t\r\a\v\i\s ]]
+ MAMBAFORGE_URL=https://github.com/conda-forge/miniforge/releases/latest/download
+ MAMBAFORGE_FILE=Mambaforge-MacOSX-x86_64.sh
+ curl -L -O https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-MacOSX-x86_64.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 60.7M  100 60.7M    0     0  10.6M      0  0:00:05  0:00:05 --:--:-- 12.0M
+ bash Mambaforge-MacOSX-x86_64.sh -b
ERROR: File or directory already exists: '/Users/alvaroflores/mambaforge'
If you want to update an existing installation, use the -u option.
+ [[ '' == \t\r\a\v\i\s ]]
+ echo -e '\n\nConfiguring conda.'


Configuring conda.
+ [[ '' == \t\r\a\v\i\s ]]
+ source /Users/alvaroflores/Mambaforge/etc/profile.d/conda.sh
++ export CONDA_EXE=/Users/alvaroflores/mambaforge/bin/conda
++ CONDA_EXE=/Users/alvaroflores/mambaforge/bin/conda
++ export _CE_M=
++ _CE_M=
++ export _CE_CONDA=
++ _CE_CONDA=
++ export CONDA_PYTHON_EXE=/Users/alvaroflores/mambaforge/bin/python
++ CONDA_PYTHON_EXE=/Users/alvaroflores/mambaforge/bin/python
++ '[' -z x ']'
+ conda activate base
+ local cmd=activate
+ case "$cmd" in
+ __conda_activate activate base
+ '[' -n '' ']'
+ local ask_conda
++ PS1=
++ __conda_exe shell.posix activate base
++ /Users/alvaroflores/mambaforge/bin/conda shell.posix activate base
+ ask_conda='. "/Users/alvaroflores/mambaforge/etc/conda/deactivate.d/libxml2_deactivate.sh"
PS1='\''(base) '\''
export PATH='\''/Users/alvaroflores/mambaforge/bin:/Users/alvaroflores/mambaforge/condabin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/alvaroflores/.cargo/bin'\''
export CONDA_SHLVL='\''1'\''
export CONDA_PROMPT_MODIFIER='\''(base) '\''
. "/Users/alvaroflores/mambaforge/etc/conda/activate.d/conda-forge-ci-setup-activate.sh"
. "/Users/alvaroflores/mambaforge/etc/conda/activate.d/libxml2_activate.sh"'
+ eval '. "/Users/alvaroflores/mambaforge/etc/conda/deactivate.d/libxml2_deactivate.sh"
PS1='\''(base) '\''
export PATH='\''/Users/alvaroflores/mambaforge/bin:/Users/alvaroflores/mambaforge/condabin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/alvaroflores/.cargo/bin'\''
export CONDA_SHLVL='\''1'\''
export CONDA_PROMPT_MODIFIER='\''(base) '\''
. "/Users/alvaroflores/mambaforge/etc/conda/activate.d/conda-forge-ci-setup-activate.sh"
. "/Users/alvaroflores/mambaforge/etc/conda/activate.d/libxml2_activate.sh"'
++ . /Users/alvaroflores/mambaforge/etc/conda/deactivate.d/libxml2_deactivate.sh
+++ test -n ''
+++ unset XML_CATALOG_FILES
+++ unset xml_catalog_files_libxml2
++ PS1='(base) '
++ export PATH=/Users/alvaroflores/mambaforge/bin:/Users/alvaroflores/mambaforge/condabin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/alvaroflores/.cargo/bin
++ PATH=/Users/alvaroflores/mambaforge/bin:/Users/alvaroflores/mambaforge/condabin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/alvaroflores/.cargo/bin
++ export CONDA_SHLVL=1
++ CONDA_SHLVL=1
++ export 'CONDA_PROMPT_MODIFIER=(base) '
++ CONDA_PROMPT_MODIFIER='(base) '
++ . /Users/alvaroflores/mambaforge/etc/conda/activate.d/conda-forge-ci-setup-activate.sh
+++ export CPU_COUNT=2
+++ CPU_COUNT=2
+++ export PYTHONUNBUFFERED=1
+++ PYTHONUNBUFFERED=1
+++ export CONDA_BUILD_CROSS_COMPILATION=1
+++ CONDA_BUILD_CROSS_COMPILATION=1
+++ export CONDA_BUILD_SYSROOT=/Users/alvaroflores/opt/MacOSX10.9.sdk
+++ CONDA_BUILD_SYSROOT=/Users/alvaroflores/opt/MacOSX10.9.sdk
+++ export MACOSX_DEPLOYMENT_TARGET=10.9
+++ MACOSX_DEPLOYMENT_TARGET=10.9
++ . /Users/alvaroflores/mambaforge/etc/conda/activate.d/libxml2_activate.sh
+++ test -n ''
+++ xml_catalog_files_libxml2=
+++ XML_CATALOG_FILES=
+++ conda_catalog_files=
+++ ifs_libxml2=' 	
'
+++ IFS=' '
+++ rem=/Users/alvaroflores/mambaforge
+++ for pre in '${rem}'
+++ test '' = /Users/alvaroflores/mambaforge
+++ conda_catalog_files=/Users/alvaroflores/mambaforge
+++ rem=
+++ IFS=' 	
'
+++ conda_catalog_files='file:///Users/alvaroflores/mambaforge/etc/xml/catalog file:///etc/xml/catalog'
+++ export 'XML_CATALOG_FILES=file:///Users/alvaroflores/mambaforge/etc/xml/catalog file:///etc/xml/catalog'
+++ XML_CATALOG_FILES='file:///Users/alvaroflores/mambaforge/etc/xml/catalog file:///etc/xml/catalog'
+++ unset conda_catalog_files ifs_libxml2 rem
+ __conda_hashr
+ '[' -n '' ']'
+ '[' -n '' ']'
+ hash -r
+ echo -e '\n\nInstalling conda-forge-ci-setup=3, conda-build and boa.'


Installing conda-forge-ci-setup=3, conda-build and boa.
+ mamba install -n base --yes --quiet 'conda>4.7.12' 'conda-forge-ci-setup=3.*' conda-forge-pinning networkx=2.4 'conda-build>=3.16' boa
+ echo -e '\n\nSetting up the condarc and mangling the compiler.'


Setting up the condarc and mangling the compiler.
+ setup_conda_rc ./ ./recipes ./.ci_support/osx64.yaml
/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/ruamel_yaml/constructor.py:277: DuplicateKeyFutureWarning: while constructing a mapping
  in "./.ci_support/osx64.yaml", line 1, column 1
found duplicate key "build_platform" with value "[]" (original value: "[]")
  in "./.ci_support/osx64.yaml", line 17, column 1

To suppress this check see:
    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys

Duplicate keys will become an error in future releases, and are errors
by default when using the new API.

  warnings.warn(DuplicateKeyFutureWarning(*args))
/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/ruamel_yaml/constructor.py:277: DuplicateKeyFutureWarning: while constructing a mapping
  in "./.ci_support/osx64.yaml", line 1, column 1
found duplicate key "CONDA_BUILD_SYSROOT" with value "[]" (original value: "[]")
  in "./.ci_support/osx64.yaml", line 20, column 1

To suppress this check see:
    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys

Duplicate keys will become an error in future releases, and are errors
by default when using the new API.

  warnings.warn(DuplicateKeyFutureWarning(*args))
/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/ruamel_yaml/constructor.py:277: DuplicateKeyFutureWarning: while constructing a mapping
  in "./.ci_support/osx64.yaml", line 1, column 1
found duplicate key "build_platform" with value "[]" (original value: "[]")
  in "./.ci_support/osx64.yaml", line 23, column 1

To suppress this check see:
    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys

Duplicate keys will become an error in future releases, and are errors
by default when using the new API.

  warnings.warn(DuplicateKeyFutureWarning(*args))
/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/ruamel_yaml/constructor.py:277: DuplicateKeyFutureWarning: while constructing a mapping
  in "./.ci_support/osx64.yaml", line 1, column 1
found duplicate key "CONDA_BUILD_SYSROOT" with value "[]" (original value: "[]")
  in "./.ci_support/osx64.yaml", line 26, column 1

To suppress this check see:
    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys

Duplicate keys will become an error in future releases, and are errors
by default when using the new API.

  warnings.warn(DuplicateKeyFutureWarning(*args))
/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/ruamel_yaml/constructor.py:277: DuplicateKeyFutureWarning: while constructing a mapping
  in "./.ci_support/osx64.yaml", line 1, column 1
found duplicate key "build_platform" with value "[]" (original value: "[]")
  in "./.ci_support/osx64.yaml", line 29, column 1

To suppress this check see:
    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys

Duplicate keys will become an error in future releases, and are errors
by default when using the new API.

  warnings.warn(DuplicateKeyFutureWarning(*args))
/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/ruamel_yaml/constructor.py:277: DuplicateKeyFutureWarning: while constructing a mapping
  in "./.ci_support/osx64.yaml", line 1, column 1
found duplicate key "CONDA_BUILD_SYSROOT" with value "[]" (original value: "[]")
  in "./.ci_support/osx64.yaml", line 32, column 1

To suppress this check see:
    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys

Duplicate keys will become an error in future releases, and are errors
by default when using the new API.

  warnings.warn(DuplicateKeyFutureWarning(*args))
/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/ruamel_yaml/constructor.py:277: DuplicateKeyFutureWarning: while constructing a mapping
  in "./.ci_support/osx64.yaml", line 1, column 1
found duplicate key "build_platform" with value "[]" (original value: "[]")
  in "./.ci_support/osx64.yaml", line 35, column 1

To suppress this check see:
    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys

Duplicate keys will become an error in future releases, and are errors
by default when using the new API.

  warnings.warn(DuplicateKeyFutureWarning(*args))
/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/ruamel_yaml/constructor.py:277: DuplicateKeyFutureWarning: while constructing a mapping
  in "./.ci_support/osx64.yaml", line 1, column 1
found duplicate key "CONDA_BUILD_SYSROOT" with value "[]" (original value: "[]")
  in "./.ci_support/osx64.yaml", line 38, column 1

To suppress this check see:
    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys

Duplicate keys will become an error in future releases, and are errors
by default when using the new API.

  warnings.warn(DuplicateKeyFutureWarning(*args))
/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/ruamel_yaml/constructor.py:277: DuplicateKeyFutureWarning: while constructing a mapping
  in "./.ci_support/osx64.yaml", line 1, column 1
found duplicate key "build_platform" with value "[]" (original value: "[]")
  in "./.ci_support/osx64.yaml", line 17, column 1

To suppress this check see:
    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys

Duplicate keys will become an error in future releases, and are errors
by default when using the new API.

  warnings.warn(DuplicateKeyFutureWarning(*args))
/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/ruamel_yaml/constructor.py:277: DuplicateKeyFutureWarning: while constructing a mapping
  in "./.ci_support/osx64.yaml", line 1, column 1
found duplicate key "CONDA_BUILD_SYSROOT" with value "[]" (original value: "[]")
  in "./.ci_support/osx64.yaml", line 20, column 1

To suppress this check see:
    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys

Duplicate keys will become an error in future releases, and are errors
by default when using the new API.

  warnings.warn(DuplicateKeyFutureWarning(*args))
/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/ruamel_yaml/constructor.py:277: DuplicateKeyFutureWarning: while constructing a mapping
  in "./.ci_support/osx64.yaml", line 1, column 1
found duplicate key "build_platform" with value "[]" (original value: "[]")
  in "./.ci_support/osx64.yaml", line 23, column 1

To suppress this check see:
    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys

Duplicate keys will become an error in future releases, and are errors
by default when using the new API.

  warnings.warn(DuplicateKeyFutureWarning(*args))
/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/ruamel_yaml/constructor.py:277: DuplicateKeyFutureWarning: while constructing a mapping
  in "./.ci_support/osx64.yaml", line 1, column 1
found duplicate key "CONDA_BUILD_SYSROOT" with value "[]" (original value: "[]")
  in "./.ci_support/osx64.yaml", line 26, column 1

To suppress this check see:
    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys

Duplicate keys will become an error in future releases, and are errors
by default when using the new API.

  warnings.warn(DuplicateKeyFutureWarning(*args))
/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/ruamel_yaml/constructor.py:277: DuplicateKeyFutureWarning: while constructing a mapping
  in "./.ci_support/osx64.yaml", line 1, column 1
found duplicate key "build_platform" with value "[]" (original value: "[]")
  in "./.ci_support/osx64.yaml", line 29, column 1

To suppress this check see:
    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys

Duplicate keys will become an error in future releases, and are errors
by default when using the new API.

  warnings.warn(DuplicateKeyFutureWarning(*args))
/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/ruamel_yaml/constructor.py:277: DuplicateKeyFutureWarning: while constructing a mapping
  in "./.ci_support/osx64.yaml", line 1, column 1
found duplicate key "CONDA_BUILD_SYSROOT" with value "[]" (original value: "[]")
  in "./.ci_support/osx64.yaml", line 32, column 1

To suppress this check see:
    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys

Duplicate keys will become an error in future releases, and are errors
by default when using the new API.

  warnings.warn(DuplicateKeyFutureWarning(*args))
/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/ruamel_yaml/constructor.py:277: DuplicateKeyFutureWarning: while constructing a mapping
  in "./.ci_support/osx64.yaml", line 1, column 1
found duplicate key "build_platform" with value "[]" (original value: "[]")
  in "./.ci_support/osx64.yaml", line 35, column 1

To suppress this check see:
    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys

Duplicate keys will become an error in future releases, and are errors
by default when using the new API.

  warnings.warn(DuplicateKeyFutureWarning(*args))
/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/ruamel_yaml/constructor.py:277: DuplicateKeyFutureWarning: while constructing a mapping
  in "./.ci_support/osx64.yaml", line 1, column 1
found duplicate key "CONDA_BUILD_SYSROOT" with value "[]" (original value: "[]")
  in "./.ci_support/osx64.yaml", line 38, column 1

To suppress this check see:
    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys

Duplicate keys will become an error in future releases, and are errors
by default when using the new API.

  warnings.warn(DuplicateKeyFutureWarning(*args))

CondaKeyError: 'channels': 'defaults' is not in the 'channels' key of the config file

Warning: 'conda-forge' already in 'channels' list, moving to the top
+ [[ '' != '' ]]
+ [[ '' != '' ]]
+ echo -e '\n\nNot mangling homebrew as we are not running in CI'


Not mangling homebrew as we are not running in CI
+ echo -e '\n\nRunning the build setup script.'


Running the build setup script.
+ source run_conda_forge_build_setup
++ export CPU_COUNT=2
++ CPU_COUNT=2
++ export PYTHONUNBUFFERED=1
++ PYTHONUNBUFFERED=1
++ conda config --env --set show_channel_urls true
++ local cmd=config
++ case "$cmd" in
++ __conda_exe config --env --set show_channel_urls true
++ /Users/alvaroflores/mambaforge/bin/conda config --env --set show_channel_urls true
++ conda config --env --set auto_update_conda false
++ local cmd=config
++ case "$cmd" in
++ __conda_exe config --env --set auto_update_conda false
++ /Users/alvaroflores/mambaforge/bin/conda config --env --set auto_update_conda false
++ conda config --env --set add_pip_as_python_dependency false
++ local cmd=config
++ case "$cmd" in
++ __conda_exe config --env --set add_pip_as_python_dependency false
++ /Users/alvaroflores/mambaforge/bin/conda config --env --set add_pip_as_python_dependency false
++ conda config --env --append aggressive_update_packages ca-certificates
++ local cmd=config
++ case "$cmd" in
++ __conda_exe config --env --append aggressive_update_packages ca-certificates
++ /Users/alvaroflores/mambaforge/bin/conda config --env --append aggressive_update_packages ca-certificates
Warning: 'ca-certificates' already in 'aggressive_update_packages' list, moving to the bottom
++ conda config --env --remove-key aggressive_update_packages
++ local cmd=config
++ case "$cmd" in
++ __conda_exe config --env --remove-key aggressive_update_packages
++ /Users/alvaroflores/mambaforge/bin/conda config --env --remove-key aggressive_update_packages
++ conda config --env --append aggressive_update_packages ca-certificates
++ local cmd=config
++ case "$cmd" in
++ __conda_exe config --env --append aggressive_update_packages ca-certificates
++ /Users/alvaroflores/mambaforge/bin/conda config --env --append aggressive_update_packages ca-certificates
++ conda config --env --append aggressive_update_packages certifi
++ local cmd=config
++ case "$cmd" in
++ __conda_exe config --env --append aggressive_update_packages certifi
++ /Users/alvaroflores/mambaforge/bin/conda config --env --append aggressive_update_packages certifi
+++ cat ./conda-forge.yml
+++ shyaml get-value channel_priority strict
++ conda config --env --set channel_priority strict
++ local cmd=config
++ case "$cmd" in
++ __conda_exe config --env --set channel_priority strict
++ /Users/alvaroflores/mambaforge/bin/conda config --env --set channel_priority strict
++ export CONDA_PREFIX=/Users/alvaroflores/mambaforge
++ CONDA_PREFIX=/Users/alvaroflores/mambaforge
++ mkdir -p /Users/alvaroflores/mambaforge/etc/conda/activate.d
++ echo 'export CPU_COUNT='\''2'\'''
++ echo 'export PYTHONUNBUFFERED='\''1'\'''
++ [[ /Users/alvaroflores/opt == '' ]]
++++ dirname /Users/alvaroflores/mambaforge/bin/run_conda_forge_build_setup
+++ cd /Users/alvaroflores/mambaforge/bin
+++ pwd
++ SCRIPT_DIR=/Users/alvaroflores/mambaforge/bin
++ CI_SUPPORT=/Users/alvaroflores/Documents/staged-recipes/.ci_support
++ source /Users/alvaroflores/mambaforge/bin/cross_compile_support.sh
++++ conda info --json
++++ local cmd=info
++++ case "$cmd" in
++++ __conda_exe info --json
++++ jq -r .platform
++++ /Users/alvaroflores/mambaforge/bin/conda info --json
+++ BUILD_PLATFORM=osx-arm64
+++ '[' -f /Users/alvaroflores/Documents/staged-recipes/.ci_support/osx64.yaml ']'
++++ cat /Users/alvaroflores/Documents/staged-recipes/.ci_support/osx64.yaml
++++ shyaml get-value target_platform.0 osx-arm64
+++ HOST_PLATFORM=osx-64
++++ cat /Users/alvaroflores/Documents/staged-recipes/.ci_support/osx64.yaml
++++ shyaml get-value cuda_compiler_version.0 None
+++ CUDA_COMPILER_VERSION=None
++++ cat /Users/alvaroflores/Documents/staged-recipes/.ci_support/osx64.yaml
++++ shyaml get-value cdt_name.0 cos6
+++ CDT_NAME=cos6
+++ HOST_PLATFORM=osx-64
+++ CUDA_COMPILER_VERSION=None
+++ CDT_NAME=cos6
+++ [[ osx-64 != \o\s\x\-\a\r\m\6\4 ]]
+++ echo 'export CONDA_BUILD_CROSS_COMPILATION=1'
+++ export CONDA_BUILD_CROSS_COMPILATION=1
+++ CONDA_BUILD_CROSS_COMPILATION=1
+++ '[' -f /Users/alvaroflores/Documents/staged-recipes/.ci_support/osx64.yaml ']'
+++ echo build_platform:
+++ echo '- osx-arm64'
+++ [[ osx-arm64 == \l\i\n\u\x\-\6\4 ]]
++ source /Users/alvaroflores/mambaforge/bin/download_osx_sdk.sh
+++ '[' -f /Users/alvaroflores/Documents/staged-recipes/.ci_support/osx64.yaml ']'
++++ cat /Users/alvaroflores/Documents/staged-recipes/.ci_support/osx64.yaml
++++ shyaml get-value MACOSX_DEPLOYMENT_TARGET.0 10.9
+++ export MACOSX_DEPLOYMENT_TARGET=10.9
+++ MACOSX_DEPLOYMENT_TARGET=10.9
+++ export MACOSX_DEPLOYMENT_TARGET=10.9
+++ MACOSX_DEPLOYMENT_TARGET=10.9
+++ '[' -f /Users/alvaroflores/Documents/staged-recipes/.ci_support/osx64.yaml ']'
++++ cat /Users/alvaroflores/Documents/staged-recipes/.ci_support/osx64.yaml
++++ shyaml get-value MACOSX_SDK_VERSION.0 0
+++ export MACOSX_SDK_VERSION=0
+++ MACOSX_SDK_VERSION=0
++++ cat /Users/alvaroflores/Documents/staged-recipes/.ci_support/osx64.yaml
++++ shyaml get-value WITH_LATEST_OSX_SDK.0 0
+++ export WITH_LATEST_OSX_SDK=0
+++ WITH_LATEST_OSX_SDK=0
+++ [[ 0 != \0 ]]
+++ [[ 0 == \0 ]]
+++ export MACOSX_SDK_VERSION=10.9
+++ MACOSX_SDK_VERSION=10.9
+++ export CONDA_BUILD_SYSROOT=/Users/alvaroflores/opt/MacOSX10.9.sdk
+++ CONDA_BUILD_SYSROOT=/Users/alvaroflores/opt/MacOSX10.9.sdk
+++ [[ ! -d /Users/alvaroflores/opt/MacOSX10.9.sdk ]]
+++ '[' '!' -z osx64 ']'
+++ echo ''
+++ echo CONDA_BUILD_SYSROOT:
+++ echo '- /Users/alvaroflores/opt/MacOSX10.9.sdk'
+++ echo ''
+++ echo 'export CONDA_BUILD_SYSROOT='\''/Users/alvaroflores/opt/MacOSX10.9.sdk'\'''
+++ echo 'export MACOSX_DEPLOYMENT_TARGET='\''10.9'\'''
+++ [[ -d /Users/alvaroflores/opt/MacOSX10.9.sdk ]]
+++ echo 'Found CONDA_BUILD_SYSROOT: /Users/alvaroflores/opt/MacOSX10.9.sdk'
Found CONDA_BUILD_SYSROOT: /Users/alvaroflores/opt/MacOSX10.9.sdk
++ [[ 10.9 == 10.* ]]
++ [[ '' == \1 ]]
++ '[' '!' -z osx64 ']'
++ '[' '!' -z '' ']'
++ cat /Users/alvaroflores/Documents/staged-recipes/.ci_support/osx64.yaml
c_compiler:
  - clang
cxx_compiler:
  - clangxx
fortran_compiler:
  - gfortran
channel_sources:
  - conda-forge
target_platform:
  - osx-64
build_platform:
- osx-arm64

CONDA_BUILD_SYSROOT:
- /Users/alvaroflores/Documents/staged-recipes-main/opt/MacOSX10.9.sdk

build_platform:
- osx-arm64

CONDA_BUILD_SYSROOT:
- /Users/alvaroflores/Documents/staged-recipes/opt/MacOSX10.9.sdk

build_platform:
- osx-arm64

CONDA_BUILD_SYSROOT:
- /Users/alvaroflores/Documents/staged-recipes/opt/MacOSX10.9.sdk

build_platform:
- osx-arm64

CONDA_BUILD_SYSROOT:
- /Users/alvaroflores/opt/MacOSX10.9.sdk

build_platform:
- osx-arm64

CONDA_BUILD_SYSROOT:
- /Users/alvaroflores/opt/MacOSX10.9.sdk

build_platform:
- osx-arm64

CONDA_BUILD_SYSROOT:
- /Users/alvaroflores/opt/MacOSX10.9.sdk

++ conda info
++ local cmd=info
++ case "$cmd" in
++ __conda_exe info
++ /Users/alvaroflores/mambaforge/bin/conda info

     active environment : base
    active env location : /Users/alvaroflores/mambaforge
            shell level : 1
       user config file : /Users/alvaroflores/.condarc
 populated config files : /Users/alvaroflores/mambaforge/.condarc
                          /Users/alvaroflores/.condarc
          conda version : 23.3.1
    conda-build version : 3.27.0
         python version : 3.10.12.final.0
       virtual packages : __archspec=1=arm64
                          __osx=14.1.2=0
                          __unix=0=0
       base environment : /Users/alvaroflores/mambaforge  (writable)
      conda av data dir : /Users/alvaroflores/mambaforge/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/osx-arm64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /Users/alvaroflores/mambaforge/pkgs
                          /Users/alvaroflores/.conda/pkgs
       envs directories : /Users/alvaroflores/mambaforge/envs
                          /Users/alvaroflores/.conda/envs
               platform : osx-arm64
             user-agent : conda/23.3.1 requests/2.31.0 CPython/3.10.12 Darwin/23.1.0 OSX/14.1.2 solver/libmamba conda-libmamba-solver/23.3.0 libmambapy/1.5.0
                UID:GID : 0:0
             netrc file : None
           offline mode : False

++ conda config --env --show-sources
++ local cmd=config
++ case "$cmd" in
++ __conda_exe config --env --show-sources
++ /Users/alvaroflores/mambaforge/bin/conda config --env --show-sources
==> /Users/alvaroflores/mambaforge/.condarc <==
add_pip_as_python_dependency: False
auto_update_conda: False
aggressive_update_packages:
  - ca-certificates
  - certifi
channel_priority: strict
channels:
  - conda-forge
show_channel_urls: True
conda_build:
  pkg_format: 2
  zstd_compression_level: 19

==> /Users/alvaroflores/.condarc <==
show_channel_urls: True
always_yes: True
solver: libmamba

++ conda list --show-channel-urls
++ local cmd=list
++ case "$cmd" in
++ __conda_exe list --show-channel-urls
++ /Users/alvaroflores/mambaforge/bin/conda list --show-channel-urls
# packages in environment at /Users/alvaroflores/mambaforge:
#
# Name                    Version                   Build  Channel
anaconda-client           1.12.1             pyhd8ed1ab_1    conda-forge
anaconda-project          0.11.1             pyhd8ed1ab_0    conda-forge
anyio                     3.7.1              pyhd8ed1ab_0    conda-forge
attrs                     23.1.0             pyh71513ae_1    conda-forge
beautifulsoup4            4.12.2             pyha770c72_0    conda-forge
boa                       0.16.0             pyhd8ed1ab_1    conda-forge
boltons                   23.0.0             pyhd8ed1ab_0    conda-forge
brotli-python             1.1.0           py310h1253130_0    conda-forge
bzip2                     1.0.8                h3422bc3_4    conda-forge
c-ares                    1.19.1               hb547adb_0    conda-forge
ca-certificates           2023.11.17           hf0a4a13_0    conda-forge
cctools                   973.0.1             hd1ac623_15    conda-forge
cctools_osx-arm64         973.0.1             h2a25c60_15    conda-forge
certifi                   2023.11.17         pyhd8ed1ab_0    conda-forge
cffi                      1.15.1          py310h2399d43_3    conda-forge
chardet                   5.2.0           py310hbe9552e_1    conda-forge
charset-normalizer        3.2.0              pyhd8ed1ab_0    conda-forge
click                     8.1.7           unix_pyh707e725_0    conda-forge
clyent                    1.2.2              pyhd8ed1ab_2    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
conda                     23.3.1          py310hbe9552e_0    conda-forge
conda-build               3.27.0          py310hbe9552e_0    conda-forge
conda-env                 2.6.0                         1    conda-forge
conda-forge-ci-setup      3.34.0          py310hccab3ec_100    conda-forge
conda-forge-metadata      0.6.1              pyhd8ed1ab_0    conda-forge
conda-forge-pinning       2023.12.03.16.36.48      hd8ed1ab_0    conda-forge
conda-index               0.3.0              pyhd8ed1ab_1    conda-forge
conda-libmamba-solver     23.3.0             pyhd8ed1ab_0    conda-forge
conda-oci-mirror          0.1.0              pyhd8ed1ab_0    conda-forge
conda-pack                0.7.1              pyhd8ed1ab_0    conda-forge
conda-package-handling    2.2.0              pyh38be061_0    conda-forge
conda-package-streaming   0.9.0              pyhd8ed1ab_0    conda-forge
cryptography              41.0.3          py310hdd3b5e7_0    conda-forge
curl                      8.2.1                hc52a3a8_0    conda-forge
decorator                 5.1.1              pyhd8ed1ab_0    conda-forge
defusedxml                0.7.1              pyhd8ed1ab_0    conda-forge
exceptiongroup            1.2.0              pyhd8ed1ab_0    conda-forge
filelock                  3.13.1             pyhd8ed1ab_0    conda-forge
fmt                       9.1.0                hffc8910_0    conda-forge
freetype                  2.12.1               hadb7bae_2    conda-forge
gettext                   0.21.1               h0186832_0    conda-forge
git                       2.43.0          pl5321h6e320eb_0    conda-forge
icu                       73.2                 hc8870d7_0    conda-forge
idna                      3.4                pyhd8ed1ab_0    conda-forge
importlib_resources       6.1.1              pyhd8ed1ab_0    conda-forge
jinja2                    3.1.2              pyhd8ed1ab_1    conda-forge
joblib                    1.3.2              pyhd8ed1ab_0    conda-forge
jq                        1.7                  h93a5062_0    conda-forge
json5                     0.9.14             pyhd8ed1ab_0    conda-forge
jsonpatch                 1.32               pyhd8ed1ab_0    conda-forge
jsonpointer               2.0                        py_0    conda-forge
jsonschema                4.20.0             pyhd8ed1ab_0    conda-forge
jsonschema-specifications 2023.11.2          pyhd8ed1ab_0    conda-forge
jupyter_core              5.5.0           py310hbe9552e_0    conda-forge
krb5                      1.21.2               h92f50d5_0    conda-forge
lcms2                     2.15                 h40e5a24_2    conda-forge
ld64                      609                 h89fa09d_15    conda-forge
ld64_osx-arm64            609                 hc4dc95b_15    conda-forge
lerc                      4.0.0                h9a09cb3_0    conda-forge
libarchive                3.6.2                h82b9b87_1    conda-forge
libcurl                   8.2.1                hc52a3a8_0    conda-forge
libcxx                    16.0.6               h4653b0c_0    conda-forge
libdeflate                1.19                 hb547adb_0    conda-forge
libedit                   3.1.20191231         hc8eb9b7_2    conda-forge
libev                     4.33                 h642e427_1    conda-forge
libexpat                  2.5.0                hb7217d7_1    conda-forge
libffi                    3.4.2                h3422bc3_5    conda-forge
libiconv                  1.17                 he4db4b2_0    conda-forge
libjpeg-turbo             2.1.5.1              hb547adb_1    conda-forge
liblief                   0.12.3               hb7217d7_0    conda-forge
libllvm15                 15.0.7               h504e6bf_3    conda-forge
libmamba                  1.5.0                h4fa9c85_0    conda-forge
libmambapy                1.5.0           py310hb7070d9_0    conda-forge
libnghttp2                1.52.0               hae82a92_0    conda-forge
libpng                    1.6.39               h76d750c_0    conda-forge
libsolv                   0.7.24               ha614eb4_3    conda-forge
libsqlite                 3.43.0               hb31c410_0    conda-forge
libssh2                   1.11.0               h7a5bd25_0    conda-forge
libtiff                   4.6.0                h77c4dce_1    conda-forge
libwebp-base              1.3.2                hb547adb_0    conda-forge
libxcb                    1.15                 hf346824_0    conda-forge
libxml2                   2.11.5               h25269f3_1    conda-forge
libzlib                   1.2.13               h53f4e23_5    conda-forge
lz4-c                     1.9.4                hb7217d7_0    conda-forge
lzo                       2.10              h642e427_1000    conda-forge
mamba                     1.5.0           py310ha5d4528_0    conda-forge
markdown-it-py            3.0.0              pyhd8ed1ab_0    conda-forge
markupsafe                2.1.3           py310h2aa6e3c_1    conda-forge
mdurl                     0.1.0              pyhd8ed1ab_0    conda-forge
more-itertools            10.1.0             pyhd8ed1ab_0    conda-forge
nbformat                  5.9.2              pyhd8ed1ab_0    conda-forge
ncurses                   6.4                  h7ea286d_0    conda-forge
networkx                  2.4                        py_1    conda-forge
oniguruma                 6.9.9                h93a5062_0    conda-forge
openjpeg                  2.5.0                h4c1507b_3    conda-forge
openssl                   3.2.0                h0d3ecfb_1    conda-forge
oras-py                   0.1.14             pyhd8ed1ab_0    conda-forge
packaging                 23.1               pyhd8ed1ab_0    conda-forge
patch                     2.7.6             h27ca646_1002    conda-forge
pcre2                     10.42                h26f9a81_0    conda-forge
perl                      5.32.1          4_hf2054a2_perl5    conda-forge
pillow                    10.0.1          py310hadb9e77_1    conda-forge
pip                       23.2.1             pyhd8ed1ab_0    conda-forge
pkginfo                   1.9.6              pyhd8ed1ab_0    conda-forge
pkgutil-resolve-name      1.3.10             pyhd8ed1ab_1    conda-forge
platformdirs              4.0.0              pyhd8ed1ab_0    conda-forge
pluggy                    1.3.0              pyhd8ed1ab_0    conda-forge
prompt-toolkit            3.0.41             pyha770c72_0    conda-forge
prompt_toolkit            3.0.41               hd8ed1ab_0    conda-forge
psutil                    5.9.5           py310h2aa6e3c_1    conda-forge
pthread-stubs             0.4               h27ca646_1001    conda-forge
py-lief                   0.12.3          py310h0f1eb42_0    conda-forge
pybind11-abi              4                    hd8ed1ab_3    conda-forge
pycosat                   0.6.4           py310h8e9501a_1    conda-forge
pycparser                 2.21               pyhd8ed1ab_0    conda-forge
pygments                  2.17.2             pyhd8ed1ab_0    conda-forge
pyopenssl                 23.2.0             pyhd8ed1ab_1    conda-forge
pysocks                   1.7.1              pyha2e5f31_6    conda-forge
python                    3.10.12         h01493a6_0_cpython    conda-forge
python-dateutil           2.8.2              pyhd8ed1ab_0    conda-forge
python-fastjsonschema     2.19.0             pyhd8ed1ab_0    conda-forge
python-libarchive-c       5.0             py310hbe9552e_2    conda-forge
python_abi                3.10                    3_cp310    conda-forge
pytz                      2023.3.post1       pyhd8ed1ab_0    conda-forge
pyyaml                    6.0.1           py310h2aa6e3c_1    conda-forge
readline                  8.2                  h92ec313_1    conda-forge
referencing               0.31.1             pyhd8ed1ab_0    conda-forge
reproc                    14.2.4               h1a8c8d9_0    conda-forge
reproc-cpp                14.2.4               hb7217d7_0    conda-forge
requests                  2.31.0             pyhd8ed1ab_0    conda-forge
requests-toolbelt         1.0.0              pyhd8ed1ab_0    conda-forge
rich                      13.7.0             pyhd8ed1ab_0    conda-forge
ripgrep                   13.0.0               h5ef7bb8_3    conda-forge
rpds-py                   0.13.2          py310hd442715_0    conda-forge
ruamel.yaml               0.17.32         py310h2aa6e3c_0    conda-forge
ruamel.yaml.clib          0.2.7           py310h8e9501a_1    conda-forge
ruamel_yaml               0.15.80         py310h2aa6e3c_1009    conda-forge
setuptools                68.1.2             pyhd8ed1ab_0    conda-forge
shyaml                    0.6.2              pyhd3deb0d_0    conda-forge
sigtool                   0.1.3                h44b9a77_0    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
sniffio                   1.3.0              pyhd8ed1ab_0    conda-forge
soupsieve                 2.5                pyhd8ed1ab_1    conda-forge
tapi                      1100.0.11            he4954df_0    conda-forge
tk                        8.6.12               he1e0b03_0    conda-forge
tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
toolz                     0.12.0             pyhd8ed1ab_0    conda-forge
tornado                   6.3.3           py310h2aa6e3c_1    conda-forge
tqdm                      4.66.1             pyhd8ed1ab_0    conda-forge
traitlets                 5.14.0             pyhd8ed1ab_0    conda-forge
typing-extensions         4.8.0                hd8ed1ab_0    conda-forge
typing_extensions         4.8.0              pyha770c72_0    conda-forge
tzdata                    2023c                h71feb2d_0    conda-forge
urllib3                   2.0.4              pyhd8ed1ab_0    conda-forge
watchgod                  0.8.2              pyhd8ed1ab_0    conda-forge
wcwidth                   0.2.12             pyhd8ed1ab_0    conda-forge
wheel                     0.41.2             pyhd8ed1ab_0    conda-forge
xorg-libxau               1.0.11               hb547adb_0    conda-forge
xorg-libxdmcp             1.1.3                h27ca646_0    conda-forge
xz                        5.2.6                h57fd34a_0    conda-forge
yaml                      0.2.5                h3422bc3_2    conda-forge
yaml-cpp                  0.7.0                hb7217d7_2    conda-forge
zipp                      3.17.0             pyhd8ed1ab_0    conda-forge
zstandard                 0.19.0          py310h8e9501a_0    conda-forge
zstd                      1.5.5                h4f39d0f_0    conda-forge
++ [[ '' == \a\z\u\r\e ]]
+ [[ '' == \t\r\a\v\i\s ]]
+ set -e
+ mkdir -p /Users/runner/Mambaforge/conda-bld/osx-64/
+ echo ''

+ echo 'Finding recipes merged in main and removing them from the build.'
Finding recipes merged in main and removing them from the build.
+ pushd ./recipes
+ git fetch --force origin main:main
+ git ls-tree --name-only main -- .
+ xargs -I '{}' sh -c 'rm -rf {} && echo Removing recipe: {}'
Removing recipe: example
Removing recipe: hypsoreader
+ popd
+ echo ''

+ python .ci_support/build_all.py
Updating build index: /Users/alvaroflores/mambaforge/conda-bld

Will remove 1 (82.7 MB) tarball(s).
Will remove 1 index cache(s).
Will remove 1 (133.5 MB) package(s).
There are no tempfile(s) to remove.
There are no logfile(s) to remove.
Building hypso with local,conda-forge
/Users/alvaroflores/Documents/staged-recipes/.ci_support/build_all.py:145: DeprecationWarning: conda_build.api.update_index is deprecated and will be removed in 4.0.0. Use standalone conda-index.
  conda_build.api.update_index(index_path)
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): conda.anaconda.org:443
DEBUG:urllib3.connectionpool:https://conda.anaconda.org:443 "GET /conda-forge/osx-arm64/repodata.json HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:https://conda.anaconda.org:443 "GET /conda-forge/noarch/repodata.json HTTP/1.1" 200 None
WARNING: Setting build arch. This is only useful when pretending to be on another arch, such as for rendering necessary dependencies on a non-native arch. I trust that you know what you're doing.
rendering /Users/alvaroflores/Documents/staged-recipes/recipes/hypso for osx-64
WARNING: Setting build platform. This is only useful when pretending to be on another platform, such as for rendering necessary dependencies on a non-native platform. I trust that you know what you're doing.
INFO:/Users/alvaroflores/Documents/staged-recipes/.ci_support/compute_build_graph.py:node: hypso-1.7.5-on-osx-64
INFO:/Users/alvaroflores/Documents/staged-recipes/.ci_support/compute_build_graph.py:   build: []
INFO:/Users/alvaroflores/Documents/staged-recipes/.ci_support/compute_build_graph.py:   host: [MatchSpec("python[version='>=3.9']"), MatchSpec("pip"), MatchSpec("setuptools[version='>=61.0']"), MatchSpec("setuptools_scm[version='>=3.4']")]
INFO:/Users/alvaroflores/Documents/staged-recipes/.ci_support/compute_build_graph.py:   run: [MatchSpec("python[version='>=3.9']"), MatchSpec("numpy[version='>=1.24']"), MatchSpec("gdal=3.6.2"), MatchSpec("cartopy[version='>=0.21.1']"), MatchSpec("pandas"), MatchSpec("matplotlib-base"), MatchSpec("geopandas[version='>=0.12.2']"), MatchSpec("rasterio[version='>=1.3.4']"), MatchSpec("pyproj[version='>=3.4.1']"), MatchSpec("netcdf4[version='>=1.6.3']"), MatchSpec("scikit-image[version='>=0.21.0']"), MatchSpec("py6s[version='>=1.9.2']"), MatchSpec("scipy[version='>=1.11.2']"), MatchSpec("pillow"), MatchSpec("shapely[version='>=2.0.1']"), MatchSpec("tqdm[version='>=4.66.1']"), MatchSpec("astropy[version='>=5.3.4']"), MatchSpec("pyorbital[version='>=1.8.0']"), MatchSpec("progressbar[version='>=2.5']"), MatchSpec("h5py[version='>=3.8.0']"), MatchSpec("pyhdf[version='>=0.11.3']"), MatchSpec("pyresample[version='>=1.27.1']"), MatchSpec("pygrib[version='>=2.1.4']"), MatchSpec("requests"), MatchSpec("python-dateutil"), MatchSpec("scikit-learn[version='>=1.3.2']"), MatchSpec("packaging")]
INFO:/Users/alvaroflores/Documents/staged-recipes/.ci_support/compute_build_graph.py:   test: ['pip']
Computed that there are 1 distributions to build from 1 recipes
Resolved dependencies, will be built in the following order:
    hypso-1.7.5-on-osx-64
WARNING: No numpy version specified in conda_build_config.yaml.  Falling back to default numpy value of 1.22
Adding in variants from internal_defaults
Adding in variants from /Users/alvaroflores/mambaforge/conda_build_config.yaml
Adding in variants from /Users/alvaroflores/Documents/staged-recipes/.ci_support/osx64.yaml
Attempting to finalize metadata for hypso
Users/alvaroflores/mambaforge/conda-bld/osx-64 (.. Checked  0.0s
Users/alvaroflores/mambaforge/conda-bld/noarch (.. Checked  0.0s
conda-forge/noarch                                          Using cache
Users/alvaroflores/mambaforge/conda-bld/osx-64     127.0 B @ 969.5kB/s  0.0s
Users/alvaroflores/mambaforge/conda-bld/noarch     127.0 B @   2.4MB/s  0.0s
conda-forge/osx-64                                  27.6MB @  12.1MB/s  2.3s
Reloading output folder: /Users/alvaroflores/mambaforge/conda-bld
file:///Users/alvaroflores/mambaforge/conda-bld/.. Checked  0.0s
file:///Users/alvaroflores/mambaforge/conda-bld/.. Checked  0.0s
file:///Users/alvaroflores/mambaforge/conda-bld/.. 127.0 B @ 969.5kB/s  0.0s
file:///Users/alvaroflores/mambaforge/conda-bld/.. 127.0 B @   2.8MB/s  0.0s
Transaction

  Prefix: /Users/alvaroflores/mambaforge

  Nothing to do

Reloading output folder: /Users/alvaroflores/mambaforge/conda-bld
file:///Users/alvaroflores/mambaforge/conda-bld/.. Checked  0.0s
file:///Users/alvaroflores/mambaforge/conda-bld/.. Checked  0.0s
file:///Users/alvaroflores/mambaforge/conda-bld/.. 127.0 B @ 920.3kB/s  0.0s
file:///Users/alvaroflores/mambaforge/conda-bld/.. 127.0 B @   1.6MB/s  0.0s
Transaction

  Prefix: /Users/alvaroflores/mambaforge

  Updating specs:

   - pip
   - setuptools_scm[version='>=3.4']
   - setuptools[version='>=61.0']
   - python[version='>=3.9']


warning  libmamba Extracted package cache '/Users/alvaroflores/mambaforge/pkgs/tomli-2.0.1-pyhd8ed1ab_0' has invalid url
warning  libmamba Extracted package cache '/Users/alvaroflores/mambaforge/pkgs/typing_extensions-4.8.0-pyha770c72_0' has invalid url
  Package                 Version  Build               Channel          Size
──────────────────────────────────────────────────────────────────────────────
  Install:
──────────────────────────────────────────────────────────────────────────────

  + xz                      5.2.6  h775f41a_0          conda-forge     238kB
  + libexpat                2.5.0  hf0c8a7f_1          conda-forge      70kB
  + ncurses                   6.4  h93d8f39_2          conda-forge     822kB
  + bzip2                   1.0.8  h10d778d_5          conda-forge     128kB
  + libffi                  3.4.2  h0d85af4_5          conda-forge      51kB
  + libzlib                1.2.13  h8a1eda9_5          conda-forge      59kB
  + ca-certificates    2023.11.17  h8857fd0_0          conda-forge     154kB
  + readline                  8.2  h9e318b2_1          conda-forge     256kB
  + tk                     8.6.13  h1abcd95_1          conda-forge       3MB
  + libsqlite              3.44.2  h92b6c6a_0          conda-forge     891kB
  + openssl                 3.2.0  hd75f5a5_1          conda-forge       3MB
  + tzdata                  2023c  h71feb2d_0          conda-forge     118kB
  + python                 3.12.0  h30d4d87_0_cpython  conda-forge      15MB
  + wheel                  0.42.0  pyhd8ed1ab_0        conda-forge      58kB
  + tomli                   2.0.1  pyhd8ed1ab_0        conda-forge      16kB
  + packaging                23.2  pyhd8ed1ab_0        conda-forge      49kB
  + typing_extensions       4.8.0  pyha770c72_0        conda-forge      35kB
  + setuptools             68.2.2  pyhd8ed1ab_0        conda-forge     464kB
  + typing-extensions       4.8.0  hd8ed1ab_0          conda-forge      10kB
  + pip                    23.3.1  pyhd8ed1ab_0        conda-forge       1MB
  + setuptools-scm          8.0.4  pyhd8ed1ab_0        conda-forge      36kB
  + setuptools_scm          8.0.4  hd8ed1ab_0          conda-forge       6kB

  Summary:

  Install: 22 packages

  Total download: 25MB

──────────────────────────────────────────────────────────────────────────────


Traceback (most recent call last):
  File "/Users/alvaroflores/Documents/staged-recipes/.ci_support/build_all.py", line 218, in <module>
    build_all(os.path.join(root_dir, "recipes"), args.arch)
  File "/Users/alvaroflores/Documents/staged-recipes/.ci_support/build_all.py", line 118, in build_all
    build_folders(recipes_dir, folders, arch, channel_urls)
  File "/Users/alvaroflores/Documents/staged-recipes/.ci_support/build_all.py", line 174, in build_folders
    conda_build.api.build([recipe], config=get_config(arch, channel_urls))
  File "/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/conda_build/api.py", line 253, in build
    return build_tree(
  File "/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/conda_build/build.py", line 3804, in build_tree
    packages_from_this = build(
  File "/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/conda_build/build.py", line 2473, in build
    output_metas = expand_outputs([(m, need_source_download, need_reparse_in_env)])
  File "/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/conda_build/render.py", line 923, in expand_outputs
    for output_dict, m in deepcopy(_m).get_output_metadata_set(
  File "/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/conda_build/metadata.py", line 2577, in get_output_metadata_set
    conda_packages = finalize_outputs_pass(
  File "/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/conda_build/metadata.py", line 937, in finalize_outputs_pass
    fm = finalize_metadata(
  File "/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/conda_build/render.py", line 637, in finalize_metadata
    build_unsat, host_unsat = add_upstream_pins(
  File "/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/conda_build/render.py", line 478, in add_upstream_pins
    host_deps, host_unsat, extra_run_specs_from_host = _read_upstream_pin_files(
  File "/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/conda_build/render.py", line 431, in _read_upstream_pin_files
    deps, actions, unsat = get_env_dependencies(
  File "/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/conda_build/render.py", line 151, in get_env_dependencies
    actions = environ.get_install_actions(
  File "/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/boa/cli/mambabuild.py", line 141, in mamba_get_install_actions
    solution = solver.solve_for_action(_specs, prefix)
  File "/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/boa/core/solver.py", line 250, in solve_for_action
    return to_action(
  File "/Users/alvaroflores/mambaforge/lib/python3.10/site-packages/boa/core/solver.py", line 77, in to_action
    entry = lookup_dict[get_url_from_channel(c)]
KeyError: 'https://conda.anaconda.org/conda-forge'
Traceback (most recent call last):
  File "/Users/alvaroflores/Documents/staged-recipes/build-locally.py", line 101, in <module>
    main()
  File "/Users/alvaroflores/Documents/staged-recipes/build-locally.py", line 97, in main
    run_osx_build(ns)
  File "/Users/alvaroflores/Documents/staged-recipes/build-locally.py", line 38, in run_osx_build
    subprocess.check_call([script])
  File "/Users/alvaroflores/mambaforge/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['.scripts/run_osx_build.sh']' returned non-zero exit status 1.

@DevAlvaroF DevAlvaroF added the bug label Dec 4, 2023
@mfansler
Copy link
Member

mfansler commented Dec 4, 2023

A few things of note:

  • the installation of Mambaforge in the logs indicates that your copy of staged-recipes is not up-to-date; scripts were updated to use Miniforge a few months ago; try pulling the latest copy and rebasing
  • I'm unsure about support for running build-locally.py when the host is osx-arm64; that represents a configuration that isn't tested, AFAIK; maybe this can be worked around by exporting CONDA_SUBDIR=osx-64 prior to running the script?
  • sudo shouldn't be necessary, but maybe there are reasons (perhaps elaborate?)

@DevAlvaroF
Copy link
Contributor Author

I started using sudo as some directories for the SDK could not be created.

Is there a workaround to test this? I have pushed a couple of buggy versions (see conda-forge/admin-requests#885 (comment)) because I am not able to test it locally. VMWare could work?

How people usually test the build to avoid pushing buggy versions

And I will try pulling the new versions

@mfansler
Copy link
Member

mfansler commented Dec 4, 2023

If specifically trying to test the hypso recipe - it is a noarch recipe, so linux-64 build is all that matters and that will run through Docker (if you have it installed and running).

Otherwise, light trial-and-error debugging directly in a PR is fine. We frequently deal with recipes that need troubleshooting after version bumps, and I'd be surprised if anything less than 90% of that is done directly on GitHub (i.e., never touches local).

Note, occasionally you may want to inspect/locally test artifacts, which can be enabled by adding to the feedstock's conda-forge.yml:

azure:
  store_build_artifacts: true

I believe this requires a rerender to take effect.

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

No branches or pull requests

2 participants