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

KeyError after possible bad replacing when using conda-lock #230

Closed
2 tasks done
pmeier opened this issue Jul 12, 2023 · 6 comments · Fixed by #234
Closed
2 tasks done

KeyError after possible bad replacing when using conda-lock #230

pmeier opened this issue Jul 12, 2023 · 6 comments · Fixed by #234
Labels
locked [bot] locked due to inactivity type::bug describes erroneous operation, use severity::* to classify the type

Comments

@pmeier
Copy link

pmeier commented Jul 12, 2023

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

I'm not 100% sure this issue is right on this tracker given that I only experience it when using conda-lock. However, from the traceback I'm getting, it looks like conda-lock does the right thing. Furthermore, this error does not pop up when disabling the libmamba solver.

Imagine I have an environment like

# environment.yaml
channels:
  - conda-forge
dependencies:
  - panel
$ conda-lock lock --platform linux-64 --file environment.yaml
/home/coder/miniforge3/envs/rag-app-maint/lib/python3.11/site-packages/pydantic/_internal/_config.py:261: UserWarning: Valid config keys have changed in V2:
* 'json_encoders' has been removed
  warnings.warn(message, UserWarning)
/home/coder/miniforge3/envs/rag-app-maint/lib/python3.11/site-packages/pydantic/_internal/_config.py:261: UserWarning: Valid config keys have changed in V2:
* 'allow_mutation' has been removed
  warnings.warn(message, UserWarning)
Locking dependencies for ['linux-64']...
INFO:conda_lock.conda_solver:linux-64 using specs ['panel']
Could not lock the environment for platform linux-64
{'command': '/home/coder/miniforge3/bin/conda create --prefix /tmp/tmp_9uq182h/prefix --dry-run --json --override-channels --channel conda-forge --channel file:///tmp/tmp5jp6ts38 panel', 'conda_info': {'GID': 1337, 'UID': 1337, 'active_prefix': '/home/coder/miniforge3/envs/rag-app-maint', 'active_prefix_name': 'rag-app-maint', 'av_data_dir': '/home/coder/miniforge3/etc/conda', 'av_metadata_url_base': None, 'channels': ['https://conda.anaconda.org/conda-forge/linux-64', 'https://conda.anaconda.org/conda-forge/noarch', 'file:///tmp/tmp5jp6ts38/linux-64', 'file:///tmp/tmp5jp6ts38/noarch'], 'conda_build_version': 'not installed', 'conda_env_version': '23.5.0', 'conda_location': '/home/coder/miniforge3/lib/python3.10/site-packages/conda', 'conda_prefix': '/home/coder/miniforge3', 'conda_shlvl': 1, 'conda_version': '23.5.0', 'config_files': ['/home/coder/.condarc'], 'default_prefix': '/home/coder/miniforge3/envs/rag-app-maint', 'env_vars': {'CIO_TEST': '<not set>', 'CONDA_ADD_PIP_AS_PYTHON_DEPENDENCY': 'False', 'CONDA_DEFAULT_ENV': 'rag-app-maint', 'CONDA_EXE': '/home/coder/miniforge3/bin/conda', 'CONDA_OVERRIDE_ARCHSPEC': '', 'CONDA_OVERRIDE_CUDA': '', 'CONDA_OVERRIDE_GLIBC': '', 'CONDA_OVERRIDE_LINUX': '', 'CONDA_OVERRIDE_OSX': '', 'CONDA_OVERRIDE_UNIX': '', 'CONDA_OVERRIDE_WIN': '', 'CONDA_PKGS_DIRS': '/tmp/tmp_9uq182h', 'CONDA_PREFIX': '/home/coder/miniforge3/envs/rag-app-maint', 'CONDA_PROMPT_MODIFIER': '(rag-app-maint) ', 'CONDA_PYTHON_EXE': '/home/coder/miniforge3/bin/python', 'CONDA_ROOT': '/home/coder/miniforge3/envs/rag-app-maint', 'CONDA_SHLVL': '1', 'CONDA_SUBDIR': 'linux-64', 'CONDA_UNSATISFIABLE_HINTS_CHECK_DEPTH': '0', 'CURL_CA_BUNDLE': '<not set>', 'LD_PRELOAD': '<not set>', 'PATH': '/home/coder/miniforge3/envs/rag-app-maint/bin:/home/coder/miniforge3/bin:/home/coder/.local/bin:/home/coder/miniforge3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games', 'REQUESTS_CA_BUNDLE': '<not set>', 'SSL_CERT_FILE': '<not set>', 'SUDO_COMMAND': '/usr/bin/sh -c #!/usr/bin/env sh\nset -eux\n# Sleep for a good long while before exiting.\n# This is to allow folks to exec into a failed workspace and poke around to\n# troubleshoot.\nwaitonexit() {\n\techo "=== Agent script exited with non-zero code. Sleeping 24h to preserve logs..."\n\tsleep 86400\n}\ntrap waitonexit EXIT\nBINARY_DIR=$(mktemp -d -t coder.XXXXXX)\nBINARY_NAME=coder\nBINARY_URL=https://coder.kube-dev-cs-1.elliottmgmt.com/bin/coder-linux-amd64\ncd "$BINARY_DIR"\n# Attempt to download the coder agent.\n# This could fail for a number of reasons, many of which are likely transient.\n# So just keep trying!\nwhile :; do\n\t# Try a number of different download tools, as we don not know what we\n\t# will have available.\n\tstatus=""\n\tif command -v curl >/dev/null 2>&1; then\n\t\tcurl -fsSL --compressed "${BINARY_URL}" -o "${BINARY_NAME}" && break\n\t\tstatus=$?\n\telif command -v wget >/dev/null 2>&1; then\n\t\twget -q "${BINARY_URL}" -O "${BINARY_NAME}" && break\n\t\tstatus=$?\n\telif command -v busybox >/dev/null 2>&1; then\n\t\tbusybox wget -q "${BINARY_URL}" -O "${BINARY_NAME}" && break\n\t\tstatus=$?\n\telse\n\t\techo "error: no download tool found, please install curl, wget or busybox wget"\n\t\texit 127\n\tfi\n\techo "error: failed to download coder agent"\n\techo "       command returned: ${status}"\n\techo "Trying again in 30 seconds..."\n\tsleep 30\ndone\n\nif ! chmod +x $BINARY_NAME; then\n\techo "Failed to make $BINARY_NAME executable"\n\texit 1\nfi\n\nexport CODER_AGENT_AUTH="aws-instance-identity"\nexport CODER_AGENT_URL="https://coder.kube-dev-cs-1.elliottmgmt.com/"\nexec ./$BINARY_NAME agent\n', 'SUDO_GID': '0', 'SUDO_UID': '0', 'SUDO_USER': 'root'}, 'envs': [], 'envs_dirs': ['/home/coder/miniforge3/envs', '/home/coder/.conda/envs'], 'netrc_file': None, 'offline': False, 'pkgs_dirs': ['/tmp/tmp_9uq182h'], 'platform': 'linux-64', 'python_version': '3.10.12.final.0', 'rc_path': '/home/coder/.condarc', 'requests_version': '2.31.0', 'root_prefix': '/home/coder/miniforge3', 'root_writable': True, 'site_dirs': [], 'sys.executable': '/home/coder/miniforge3/bin/python', 'sys.prefix': '/home/coder/miniforge3', 'sys.version': '3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:40:32) [GCC 12.3.0]', 'sys_rc_path': '/home/coder/miniforge3/.condarc', 'user_agent': 'conda/23.5.0 requests/2.31.0 CPython/3.10.12 Linux/5.10.0-23-cloud-amd64 debian/11 glibc/2.31 solver/libmamba conda-libmamba-solver/23.5.0 libmambapy/1.4.8', 'user_rc_path': '/home/coder/.condarc', 'virtual_pkgs': [['__linux', '0', '0'], ['__unix', '0', '0']]}, 'error': 'KeyError("Channel info for https://conda.anaconda.org/@/linux-64 (https://conda.anaconda.org/@/linux-64) not found. Available keys: [\'https://conda.anaconda.org/conda-forge/linux-64\', \'https://conda.anaconda.org/conda-forge/noarch\', \'file:///tmp/tmp5jp6ts38/linux-64\', \'file:///tmp/tmp5jp6ts38/noarch\']")', 'exception_name': 'KeyError', 'exception_type': "<class 'KeyError'>", 'traceback': 'Traceback (most recent call last):\n  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda_libmamba_solver/index.py", line 139, in get_info\n    return self._index[key]\nKeyError: \'https://conda.anaconda.org/@/linux-64\'\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda/exception_handler.py", line 16, in __call__\n    return func(*args, **kwargs)\n  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda/cli/main.py", line 84, in main_subshell\n    exit_code = do_call(args, p)\n  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda/cli/conda_argparse.py", line 126, in do_call\n    return getattr(module, func_name)(args, parser)\n  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda/notices/core.py", line 123, in wrapper\n    return func(*args, **kwargs)\n  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda/cli/main_create.py", line 46, in execute\n    install(args, parser, "create")\n  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda/cli/install.py", line 309, in install\n    unlink_link_transaction = solver.solve_for_transaction(\n  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda/core/solve.py", line 153, in solve_for_transaction\n    unlink_precs, link_precs = self.solve_for_diff(\n  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda/core/solve.py", line 214, in solve_for_diff\n    final_precs = self.solve_final_state(\n  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda_libmamba_solver/solver.py", line 200, in solve_final_state\n    out_state = self._solving_loop(in_state, out_state, index)\n  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda_libmamba_solver/solver.py", line 277, in _solving_loop\n    self._export_solved_records(in_state, out_state, index)\n  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda_libmamba_solver/solver.py", line 698, in _export_solved_records\n    record = self._package_record_from_json_payload(index, channel, filename, json_payload)\n  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda_libmamba_solver/solver.py", line 739, in _package_record_from_json_payload\n    channel_info = index.get_info(channel)\n  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda_libmamba_solver/index.py", line 141, in get_info\n    raise KeyError(\nKeyError: "Channel info for https://conda.anaconda.org/@/linux-64 (https://conda.anaconda.org/@/linux-64) not found. Available keys: [\'https://conda.anaconda.org/conda-forge/linux-64\', \'https://conda.anaconda.org/conda-forge/noarch\', \'file:///tmp/tmp5jp6ts38/linux-64\', \'file:///tmp/tmp5jp6ts38/noarch\']"\n'}
    Command: ['/home/coder/miniforge3/bin/conda', 'create', '--prefix', '/tmp/tmp_9uq182h/prefix', '--dry-run', '--json', '--override-channels', '--channel', 'conda-forge', '--channel', 'file:///tmp/tmp5jp6ts38', 'panel']
    STDOUT:
{
  "command": "/home/coder/miniforge3/bin/conda create --prefix /tmp/tmp_9uq182h/prefix --dry-run --json --override-channels --channel conda-forge --channel file:///tmp/tmp5jp6ts38 panel",
  "conda_info": {
    "GID": 1337,
    "UID": 1337,
    "active_prefix": "/home/coder/miniforge3/envs/rag-app-maint",
    "active_prefix_name": "rag-app-maint",
    "av_data_dir": "/home/coder/miniforge3/etc/conda",
    "av_metadata_url_base": null,
    "channels": [
      "https://conda.anaconda.org/conda-forge/linux-64",
      "https://conda.anaconda.org/conda-forge/noarch",
      "file:///tmp/tmp5jp6ts38/linux-64",
      "file:///tmp/tmp5jp6ts38/noarch"
    ],
    "conda_build_version": "not installed",
    "conda_env_version": "23.5.0",
    "conda_location": "/home/coder/miniforge3/lib/python3.10/site-packages/conda",
    "conda_prefix": "/home/coder/miniforge3",
    "conda_shlvl": 1,
    "conda_version": "23.5.0",
    "config_files": [
      "/home/coder/.condarc"
    ],
    "default_prefix": "/home/coder/miniforge3/envs/rag-app-maint",
    "env_vars": {
      "CIO_TEST": "<not set>",
      "CONDA_ADD_PIP_AS_PYTHON_DEPENDENCY": "False",
      "CONDA_DEFAULT_ENV": "rag-app-maint",
      "CONDA_EXE": "/home/coder/miniforge3/bin/conda",
      "CONDA_OVERRIDE_ARCHSPEC": "",
      "CONDA_OVERRIDE_CUDA": "",
      "CONDA_OVERRIDE_GLIBC": "",
      "CONDA_OVERRIDE_LINUX": "",
      "CONDA_OVERRIDE_OSX": "",
      "CONDA_OVERRIDE_UNIX": "",
      "CONDA_OVERRIDE_WIN": "",
      "CONDA_PKGS_DIRS": "/tmp/tmp_9uq182h",
      "CONDA_PREFIX": "/home/coder/miniforge3/envs/rag-app-maint",
      "CONDA_PROMPT_MODIFIER": "(rag-app-maint) ",
      "CONDA_PYTHON_EXE": "/home/coder/miniforge3/bin/python",
      "CONDA_ROOT": "/home/coder/miniforge3/envs/rag-app-maint",
      "CONDA_SHLVL": "1",
      "CONDA_SUBDIR": "linux-64",
      "CONDA_UNSATISFIABLE_HINTS_CHECK_DEPTH": "0",
      "CURL_CA_BUNDLE": "<not set>",
      "LD_PRELOAD": "<not set>",
      "PATH": "/home/coder/miniforge3/envs/rag-app-maint/bin:/home/coder/miniforge3/bin:/home/coder/.local/bin:/home/coder/miniforge3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games",
      "REQUESTS_CA_BUNDLE": "<not set>",
      "SSL_CERT_FILE": "<not set>",
      "SUDO_COMMAND": "/usr/bin/sh -c #!/usr/bin/env sh\nset -eux\n# Sleep for a good long while before exiting.\n# This is to allow folks to exec into a failed workspace and poke around to\n# troubleshoot.\nwaitonexit() {\n\techo \"=== Agent script exited with non-zero code. Sleeping 24h to preserve logs...\"\n\tsleep 86400\n}\ntrap waitonexit EXIT\nBINARY_DIR=$(mktemp -d -t coder.XXXXXX)\nBINARY_NAME=coder\nBINARY_URL=https://coder.kube-dev-cs-1.elliottmgmt.com/bin/coder-linux-amd64\ncd \"$BINARY_DIR\"\n# Attempt to download the coder agent.\n# This could fail for a number of reasons, many of which are likely transient.\n# So just keep trying!\nwhile :; do\n\t# Try a number of different download tools, as we don not know what we\n\t# will have available.\n\tstatus=\"\"\n\tif command -v curl >/dev/null 2>&1; then\n\t\tcurl -fsSL --compressed \"${BINARY_URL}\" -o \"${BINARY_NAME}\" && break\n\t\tstatus=$?\n\telif command -v wget >/dev/null 2>&1; then\n\t\twget -q \"${BINARY_URL}\" -O \"${BINARY_NAME}\" && break\n\t\tstatus=$?\n\telif command -v busybox >/dev/null 2>&1; then\n\t\tbusybox wget -q \"${BINARY_URL}\" -O \"${BINARY_NAME}\" && break\n\t\tstatus=$?\n\telse\n\t\techo \"error: no download tool found, please install curl, wget or busybox wget\"\n\t\texit 127\n\tfi\n\techo \"error: failed to download coder agent\"\n\techo \"       command returned: ${status}\"\n\techo \"Trying again in 30 seconds...\"\n\tsleep 30\ndone\n\nif ! chmod +x $BINARY_NAME; then\n\techo \"Failed to make $BINARY_NAME executable\"\n\texit 1\nfi\n\nexport CODER_AGENT_AUTH=\"aws-instance-identity\"\nexport CODER_AGENT_URL=\"https://coder.kube-dev-cs-1.elliottmgmt.com/\"\nexec ./$BINARY_NAME agent\n",
      "SUDO_GID": "0",
      "SUDO_UID": "0",
      "SUDO_USER": "root"
    },
    "envs": [],
    "envs_dirs": [
      "/home/coder/miniforge3/envs",
      "/home/coder/.conda/envs"
    ],
    "netrc_file": null,
    "offline": false,
    "pkgs_dirs": [
      "/tmp/tmp_9uq182h"
    ],
    "platform": "linux-64",
    "python_version": "3.10.12.final.0",
    "rc_path": "/home/coder/.condarc",
    "requests_version": "2.31.0",
    "root_prefix": "/home/coder/miniforge3",
    "root_writable": true,
    "site_dirs": [],
    "sys.executable": "/home/coder/miniforge3/bin/python",
    "sys.prefix": "/home/coder/miniforge3",
    "sys.version": "3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:40:32) [GCC 12.3.0]",
    "sys_rc_path": "/home/coder/miniforge3/.condarc",
    "user_agent": "conda/23.5.0 requests/2.31.0 CPython/3.10.12 Linux/5.10.0-23-cloud-amd64 debian/11 glibc/2.31 solver/libmamba conda-libmamba-solver/23.5.0 libmambapy/1.4.8",
    "user_rc_path": "/home/coder/.condarc",
    "virtual_pkgs": [
      [
        "__linux",
        "0",
        "0"
      ],
      [
        "__unix",
        "0",
        "0"
      ]
    ]
  },
  "error": "KeyError(\"Channel info for https://conda.anaconda.org/@/linux-64 (https://conda.anaconda.org/@/linux-64) not found. Available keys: ['https://conda.anaconda.org/conda-forge/linux-64', 'https://conda.anaconda.org/conda-forge/noarch', 'file:///tmp/tmp5jp6ts38/linux-64', 'file:///tmp/tmp5jp6ts38/noarch']\")",
  "exception_name": "KeyError",
  "exception_type": "<class 'KeyError'>",
  "traceback": "Traceback (most recent call last):\n  File \"/home/coder/miniforge3/lib/python3.10/site-packages/conda_libmamba_solver/index.py\", line 139, in get_info\n    return self._index[key]\nKeyError: 'https://conda.anaconda.org/@/linux-64'\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n  File \"/home/coder/miniforge3/lib/python3.10/site-packages/conda/exception_handler.py\", line 16, in __call__\n    return func(*args, **kwargs)\n  File \"/home/coder/miniforge3/lib/python3.10/site-packages/conda/cli/main.py\", line 84, in main_subshell\n    exit_code = do_call(args, p)\n  File \"/home/coder/miniforge3/lib/python3.10/site-packages/conda/cli/conda_argparse.py\", line 126, in do_call\n    return getattr(module, func_name)(args, parser)\n  File \"/home/coder/miniforge3/lib/python3.10/site-packages/conda/notices/core.py\", line 123, in wrapper\n    return func(*args, **kwargs)\n  File \"/home/coder/miniforge3/lib/python3.10/site-packages/conda/cli/main_create.py\", line 46, in execute\n    install(args, parser, \"create\")\n  File \"/home/coder/miniforge3/lib/python3.10/site-packages/conda/cli/install.py\", line 309, in install\n    unlink_link_transaction = solver.solve_for_transaction(\n  File \"/home/coder/miniforge3/lib/python3.10/site-packages/conda/core/solve.py\", line 153, in solve_for_transaction\n    unlink_precs, link_precs = self.solve_for_diff(\n  File \"/home/coder/miniforge3/lib/python3.10/site-packages/conda/core/solve.py\", line 214, in solve_for_diff\n    final_precs = self.solve_final_state(\n  File \"/home/coder/miniforge3/lib/python3.10/site-packages/conda_libmamba_solver/solver.py\", line 200, in solve_final_state\n    out_state = self._solving_loop(in_state, out_state, index)\n  File \"/home/coder/miniforge3/lib/python3.10/site-packages/conda_libmamba_solver/solver.py\", line 277, in _solving_loop\n    self._export_solved_records(in_state, out_state, index)\n  File \"/home/coder/miniforge3/lib/python3.10/site-packages/conda_libmamba_solver/solver.py\", line 698, in _export_solved_records\n    record = self._package_record_from_json_payload(index, channel, filename, json_payload)\n  File \"/home/coder/miniforge3/lib/python3.10/site-packages/conda_libmamba_solver/solver.py\", line 739, in _package_record_from_json_payload\n    channel_info = index.get_info(channel)\n  File \"/home/coder/miniforge3/lib/python3.10/site-packages/conda_libmamba_solver/index.py\", line 141, in get_info\n    raise KeyError(\nKeyError: \"Channel info for https://conda.anaconda.org/@/linux-64 (https://conda.anaconda.org/@/linux-64) not found. Available keys: ['https://conda.anaconda.org/conda-forge/linux-64', 'https://conda.anaconda.org/conda-forge/noarch', 'file:///tmp/tmp5jp6ts38/linux-64', 'file:///tmp/tmp5jp6ts38/noarch']\"\n"
}

    STDERR:
WARNING conda.conda_libmamba_solver.solver:_export_solved_records(695): Tried to unlink __unix but it is not installed or manageable?

Message key not found in json! returning the full json text
Traceback (most recent call last):
  File "/home/coder/miniforge3/envs/rag-app-maint/bin/conda-lock", line 10, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/coder/miniforge3/envs/rag-app-maint/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/coder/miniforge3/envs/rag-app-maint/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/home/coder/miniforge3/envs/rag-app-maint/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/coder/miniforge3/envs/rag-app-maint/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/coder/miniforge3/envs/rag-app-maint/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/coder/miniforge3/envs/rag-app-maint/lib/python3.11/site-packages/click/decorators.py", line 34, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/coder/miniforge3/envs/rag-app-maint/lib/python3.11/site-packages/conda_lock/conda_lock.py", line 1320, in lock
    lock_func(
  File "/home/coder/miniforge3/envs/rag-app-maint/lib/python3.11/site-packages/conda_lock/conda_lock.py", line 1033, in run_lock
    make_lock_files(
  File "/home/coder/miniforge3/envs/rag-app-maint/lib/python3.11/site-packages/conda_lock/conda_lock.py", line 380, in make_lock_files
    lock_content = lock_content | create_lockfile_from_spec(
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/coder/miniforge3/envs/rag-app-maint/lib/python3.11/site-packages/conda_lock/conda_lock.py", line 782, in create_lockfile_from_spec
    deps = _solve_for_arch(
           ^^^^^^^^^^^^^^^^
  File "/home/coder/miniforge3/envs/rag-app-maint/lib/python3.11/site-packages/conda_lock/conda_lock.py", line 706, in _solve_for_arch
    conda_deps = solve_conda(
                 ^^^^^^^^^^^^
  File "/home/coder/miniforge3/envs/rag-app-maint/lib/python3.11/site-packages/conda_lock/conda_solver.py", line 157, in solve_conda
    dry_run_install = solve_specs_for_arch(
                      ^^^^^^^^^^^^^^^^^^^^^
  File "/home/coder/miniforge3/envs/rag-app-maint/lib/python3.11/site-packages/conda_lock/conda_solver.py", line 369, in solve_specs_for_arch
    proc.check_returncode()
  File "/home/coder/miniforge3/envs/rag-app-maint/lib/python3.11/site-packages/conda_lock/_vendor/poetry/utils/_compat.py", line 168, in check_returncode
    raise CalledProcessError(
conda_lock._vendor.poetry.utils._compat.CalledProcessError: Command '['/home/coder/miniforge3/bin/conda', 'create', '--prefix', '/tmp/tmp_9uq182h/prefix', '--dry-run', '--json', '--override-channels', '--channel', 'conda-forge', '--channel', 'file:///tmp/tmp5jp6ts38', 'panel']' returned non-zero exit status 1.

The interesting part is "hidden" behind the "traceback" key:

Traceback (most recent call last):
  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda_libmamba_solver/index.py", line 139, in get_info
    return self._index[key]
KeyError: https://conda.anaconda.org/@/linux-64

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda/exception_handler.py", line 16, in __call__
    return func(*args, **kwargs)
  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda/cli/main.py", line 84, in main_subshell
    exit_code = do_call(args, p)
  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda/cli/conda_argparse.py", line 126, in do_call
    return getattr(module, func_name)(args, parser)
  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda/notices/core.py", line 123, in wrapper
    return func(*args, **kwargs)
  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda/cli/main_create.py", line 46, in execute
    install(args, parser, "create")
  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda/cli/install.py", line 309, in install
    unlink_link_transaction = solver.solve_for_transaction(
  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda/core/solve.py", line 153, in solve_for_transaction
    unlink_precs, link_precs = self.solve_for_diff(
  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda/core/solve.py", line 214, in solve_for_diff
    final_precs = self.solve_final_state(
  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda_libmamba_solver/solver.py", line 200, in solve_final_state
    out_state = self._solving_loop(in_state, out_state, index)
  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda_libmamba_solver/solver.py", line 277, in _solving_loop
    self._export_solved_records(in_state, out_state, index)
  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda_libmamba_solver/solver.py", line 698, in _export_solved_records
    record = self._package_record_from_json_payload(index, channel, filename, json_payload)
  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda_libmamba_solver/solver.py", line 739, in _package_record_from_json_payload
    channel_info = index.get_info(channel)
  File "/home/coder/miniforge3/lib/python3.10/site-packages/conda_libmamba_solver/index.py", line 141, in get_info
    raise KeyError(
KeyError: "Channel info for https://conda.anaconda.org/@/linux-64 (https://conda.anaconda.org/@/linux-64) not found. Available keys: [https://conda.anaconda.org/conda-forge/linux-64, https://conda.anaconda.org/conda-forge/noarch, file:///tmp/tmp5jp6ts38/linux-64, file:///tmp/tmp5jp6ts38/noarch]"

This seems like a bad replacement: it is looking for https://conda.anaconda.org/@/linux-64 while https://conda.anaconda.org/conda-forge/linux-64 is available. However, the command executed by conda-lock seems to be fine:

$ /home/coder/miniforge3/bin/conda create --prefix /tmp/tmp_9uq182h/prefix --dry-run --json --override-channels --channel conda-forge --channel file:///tmp/tmp5jp6ts38 panel

This is why I'm reporting here rather than conda-lock. I have looked through that tracker as well, but didn't find an issue for this there either.

While debugging this, I found that this is not always happening. For example

# environment.yaml
channels:
  - conda-forge
dependencies:
  - python

works fine. panel in the original environment is however not the culprit. All other packages than plain python did not work for me.

Conda Info

active environment : rag-app-maint
    active env location : /home/coder/miniforge3/envs/rag-app-maint
            shell level : 1
       user config file : /home/coder/.condarc
 populated config files : /home/coder/miniforge3/.condarc
                          /home/coder/.condarc
          conda version : 23.5.0
    conda-build version : not installed
         python version : 3.10.12.final.0
       virtual packages : __archspec=1=x86_64
                          __glibc=2.31=0
                          __linux=5.10.0=0
                          __unix=0=0
       base environment : /home/coder/miniforge3  (writable)
      conda av data dir : /home/coder/miniforge3/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /home/coder/miniforge3/pkgs
                          /home/coder/.conda/pkgs
       envs directories : /home/coder/miniforge3/envs
                          /home/coder/.conda/envs
               platform : linux-64
             user-agent : conda/23.5.0 requests/2.31.0 CPython/3.10.12 Linux/5.10.0-23-cloud-amd64 debian/11 glibc/2.31 solver/libmamba conda-libmamba-solver/23.5.0 libmambapy/1.4.8
                UID:GID : 1337:1337
             netrc file : None
           offline mode : False

Conda Config

==> /home/coder/miniforge3/.condarc <==
channels:
  - conda-forge

==> /home/coder/.condarc <==
auto_activate_base: False
ssl_verify: False
solver: libmamba

Conda list

#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
annotated-types           0.5.0              pyhd8ed1ab_0    conda-forge
appdirs                   1.4.4              pyh9f0ad1d_0    conda-forge
brotlipy                  0.7.0           py311hd4cff14_1005    conda-forge
bzip2                     1.0.8                h7f98852_4    conda-forge
ca-certificates           2023.5.7             hbcca054_0    conda-forge
cachecontrol              0.13.0             pyhd8ed1ab_0    conda-forge
cachecontrol-with-filecache 0.13.0             pyhd8ed1ab_0    conda-forge
cachy                     0.3.0              pyhd8ed1ab_1    conda-forge
certifi                   2023.5.7           pyhd8ed1ab_0    conda-forge
cffi                      1.15.1          py311h409f033_3    conda-forge
charset-normalizer        3.2.0              pyhd8ed1ab_0    conda-forge
click                     8.1.4           unix_pyh707e725_0    conda-forge
click-default-group       1.2.2              pyhd8ed1ab_1    conda-forge
clikit                    0.6.2              pyhd8ed1ab_2    conda-forge
conda-lock                2.1.0              pyhd8ed1ab_0    conda-forge
crashtest                 0.4.1              pyhd8ed1ab_0    conda-forge
cryptography              41.0.2          py311h63ff55d_0    conda-forge
dbus                      1.13.6               h5008d03_3    conda-forge
distlib                   0.3.6              pyhd8ed1ab_0    conda-forge
ensureconda               1.4.3              pyhd8ed1ab_0    conda-forge
expat                     2.5.0                hcb278e6_1    conda-forge
filelock                  3.12.2             pyhd8ed1ab_0    conda-forge
gettext                   0.21.1               h27087fc_0    conda-forge
gitdb                     4.0.10             pyhd8ed1ab_0    conda-forge
gitpython                 3.1.32             pyhd8ed1ab_0    conda-forge
html5lib                  1.1                pyh9f0ad1d_0    conda-forge
idna                      3.4                pyhd8ed1ab_0    conda-forge
importlib-metadata        6.8.0              pyha770c72_0    conda-forge
importlib_metadata        6.8.0                hd8ed1ab_0    conda-forge
jaraco.classes            3.3.0              pyhd8ed1ab_0    conda-forge
jeepney                   0.8.0              pyhd8ed1ab_0    conda-forge
jinja2                    3.1.2              pyhd8ed1ab_1    conda-forge
keyring                   24.2.0          py311h38be061_0    conda-forge
ld_impl_linux-64          2.40                 h41732ed_0    conda-forge
libexpat                  2.5.0                hcb278e6_1    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc-ng                 13.1.0               he5830b7_0    conda-forge
libglib                   2.76.4               hebfc3b9_0    conda-forge
libgomp                   13.1.0               he5830b7_0    conda-forge
libiconv                  1.17                 h166bdaf_0    conda-forge
libnsl                    2.0.0                h7f98852_0    conda-forge
libsqlite                 3.42.0               h2797004_0    conda-forge
libstdcxx-ng              13.1.0               hfd8a6a1_0    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libzlib                   1.2.13               hd590300_5    conda-forge
lockfile                  0.12.2                     py_1    conda-forge
markupsafe                2.1.3           py311h459d7ec_0    conda-forge
more-itertools            9.1.0              pyhd8ed1ab_0    conda-forge
msgpack-python            1.0.5           py311ha3edf6b_0    conda-forge
ncurses                   6.4                  hcb278e6_0    conda-forge
openssl                   3.1.1                hd590300_1    conda-forge
packaging                 23.1               pyhd8ed1ab_0    conda-forge
pastel                    0.2.1              pyhd8ed1ab_0    conda-forge
pcre2                     10.40                hc3806b6_0    conda-forge
pip                       23.1.2             pyhd8ed1ab_0    conda-forge
pkginfo                   1.9.6              pyhd8ed1ab_0    conda-forge
platformdirs              3.8.1              pyhd8ed1ab_0    conda-forge
pycparser                 2.21               pyhd8ed1ab_0    conda-forge
pydantic                  2.0.2           py311h459d7ec_1    conda-forge
pydantic-core             2.1.2           py311h46250e7_0    conda-forge
pylev                     1.4.0              pyhd8ed1ab_0    conda-forge
pyopenssl                 23.2.0             pyhd8ed1ab_1    conda-forge
pysocks                   1.7.1              pyha2e5f31_6    conda-forge
python                    3.11.4          hab00c5b_0_cpython    conda-forge
python_abi                3.11                    3_cp311    conda-forge
pyyaml                    6.0             py311hd4cff14_5    conda-forge
readline                  8.2                  h8228510_1    conda-forge
requests                  2.31.0             pyhd8ed1ab_0    conda-forge
ruamel.yaml               0.17.32         py311h459d7ec_0    conda-forge
ruamel.yaml.clib          0.2.7           py311h2582759_1    conda-forge
secretstorage             3.3.3           py311h38be061_1    conda-forge
setuptools                68.0.0             pyhd8ed1ab_0    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
smmap                     3.0.5              pyh44b312d_0    conda-forge
tk                        8.6.12               h27826a3_0    conda-forge
tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
tomlkit                   0.11.8             pyha770c72_0    conda-forge
toolz                     0.12.0             pyhd8ed1ab_0    conda-forge
typing-extensions         4.7.1                hd8ed1ab_0    conda-forge
typing_extensions         4.7.1              pyha770c72_0    conda-forge
tzdata                    2023c                h71feb2d_0    conda-forge
urllib3                   1.26.15            pyhd8ed1ab_0    conda-forge
virtualenv                20.23.1            pyhd8ed1ab_0    conda-forge
webencodings              0.5.1                      py_1    conda-forge
wheel                     0.40.0             pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h166bdaf_0    conda-forge
yaml                      0.2.5                h7f98852_2    conda-forge
zipp                      3.16.0             pyhd8ed1ab_1    conda-forge

Additional Context

$ conda list -n base
# packages in environment at /home/coder/miniforge3:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
boltons                   23.0.0             pyhd8ed1ab_0    conda-forge
brotli                    1.0.9                h166bdaf_9    conda-forge
brotli-bin                1.0.9                h166bdaf_9    conda-forge
brotli-python             1.0.9           py310hd8f1fbe_9    conda-forge
bzip2                     1.0.8                h7f98852_4    conda-forge
c-ares                    1.19.1               hd590300_0    conda-forge
ca-certificates           2023.5.7             hbcca054_0    conda-forge
certifi                   2023.5.7           pyhd8ed1ab_0    conda-forge
cffi                      1.15.1          py310h255011f_3    conda-forge
charset-normalizer        3.2.0              pyhd8ed1ab_0    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
conda                     23.5.0          py310hff52083_1    conda-forge
conda-libmamba-solver     23.5.0             pyhd8ed1ab_0    conda-forge
conda-package-handling    2.0.2              pyh38be061_0    conda-forge
conda-package-streaming   0.8.0              pyhd8ed1ab_0    conda-forge
cryptography              41.0.2          py310h75e40e8_0    conda-forge
fmt                       9.1.0                h924138e_0    conda-forge
icu                       72.1                 hcb278e6_0    conda-forge
idna                      3.4                pyhd8ed1ab_0    conda-forge
jsonpatch                 1.32               pyhd8ed1ab_0    conda-forge
jsonpointer               2.0                        py_0    conda-forge
keyutils                  1.6.1                h166bdaf_0    conda-forge
krb5                      1.20.1               h81ceb04_0    conda-forge
ld_impl_linux-64          2.40                 h41732ed_0    conda-forge
libarchive                3.6.2                h039dbb9_1    conda-forge
libbrotlicommon           1.0.9                h166bdaf_9    conda-forge
libbrotlidec              1.0.9                h166bdaf_9    conda-forge
libbrotlienc              1.0.9                h166bdaf_9    conda-forge
libcurl                   8.1.2                h409715c_0    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libev                     4.33                 h516909a_1    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc-ng                 13.1.0               he5830b7_0    conda-forge
libgomp                   13.1.0               he5830b7_0    conda-forge
libiconv                  1.17                 h166bdaf_0    conda-forge
libmamba                  1.4.8                h658169a_0    conda-forge
libmambapy                1.4.8           py310h8aae740_0    conda-forge
libnghttp2                1.52.0               h61bc06f_0    conda-forge
libnsl                    2.0.0                h7f98852_0    conda-forge
libsolv                   0.7.24               hfc55251_1    conda-forge
libsqlite                 3.42.0               h2797004_0    conda-forge
libssh2                   1.11.0               h0841786_0    conda-forge
libstdcxx-ng              13.1.0               hfd8a6a1_0    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libxml2                   2.11.4               h0d562d8_0    conda-forge
libzlib                   1.2.13               hd590300_5    conda-forge
lz4-c                     1.9.4                hcb278e6_0    conda-forge
lzo                       2.10              h516909a_1000    conda-forge
ncurses                   6.4                  hcb278e6_0    conda-forge
openssl                   3.1.1                hd590300_1    conda-forge
packaging                 23.1               pyhd8ed1ab_0    conda-forge
pip                       23.1.2             pyhd8ed1ab_0    conda-forge
pluggy                    1.2.0              pyhd8ed1ab_0    conda-forge
pybind11-abi              4                    hd8ed1ab_3    conda-forge
pycosat                   0.6.4           py310h5764c6d_1    conda-forge
pycparser                 2.21               pyhd8ed1ab_0    conda-forge
pyopenssl                 23.2.0             pyhd8ed1ab_1    conda-forge
pysocks                   1.7.1              pyha2e5f31_6    conda-forge
python                    3.10.12         hd12c33a_0_cpython    conda-forge
python_abi                3.10                    3_cp310    conda-forge
readline                  8.2                  h8228510_1    conda-forge
reproc                    14.2.4               h0b41bf4_0    conda-forge
reproc-cpp                14.2.4               hcb278e6_0    conda-forge
requests                  2.31.0             pyhd8ed1ab_0    conda-forge
ruamel.yaml               0.17.32         py310h2372a71_0    conda-forge
ruamel.yaml.clib          0.2.7           py310h1fa729e_1    conda-forge
setuptools                68.0.0             pyhd8ed1ab_0    conda-forge
tk                        8.6.12               h27826a3_0    conda-forge
toolz                     0.12.0             pyhd8ed1ab_0    conda-forge
tqdm                      4.65.0             pyhd8ed1ab_1    conda-forge
tzdata                    2023c                h71feb2d_0    conda-forge
urllib3                   2.0.3              pyhd8ed1ab_1    conda-forge
wheel                     0.40.0             pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h166bdaf_0    conda-forge
yaml-cpp                  0.7.0                h27087fc_2    conda-forge
zstandard                 0.19.0          py310h1275a96_2    conda-forge
zstd                      1.5.2                hfc55251_7    conda-forge
@pmeier pmeier added the type::bug describes erroneous operation, use severity::* to classify the type label Jul 12, 2023
@github-project-automation github-project-automation bot moved this to 🆕 New in 🧭 Planning Jul 12, 2023
@qtdaniel
Copy link

We are also experiencing this issue.

@jaimergp
Copy link
Contributor

Are you also using libmamba 1.4.8? I cannot reproduce naively in a Docker image with libmamba(py) 1.4.9:

$ conda list
# packages in environment at /opt/conda:                                                                                                                                                                          
#                                                                                                                                                                                                                 
# Name                    Version                   Build  Channel                                                                                                                                                
_openmp_mutex             4.5                       2_gnu    conda-forge                                                                                                                                          
anaconda-client           1.11.1             pyhd8ed1ab_1    conda-forge                                                                                                                                          
anaconda-project          0.11.1             pyhd8ed1ab_0    conda-forge                                                                                                                                          
appdirs                   1.4.4              pyh9f0ad1d_0    conda-forge                                                                                                                                          
attrs                     22.2.0             pyh71513ae_0    conda-forge                                                                                                                                          
beautifulsoup4            4.12.2             pyha770c72_0    conda-forge                                                                                                                                          
boltons                   23.0.0             pyhd8ed1ab_0    conda-forge                                                                                                                                          
boto3                     1.26.109           pyhd8ed1ab_0    conda-forge                                                                                                                                          
botocore                  1.29.109           pyhd8ed1ab_0    conda-forge                                                                                                                                          
brotlipy                  0.7.0           py310h761cc84_1005    conda-forge                                                                                                                                       
bzip2                     1.0.8                hf897c2e_4    conda-forge                                                                                                                                          
c-ares                    1.18.1               hf897c2e_0    conda-forge                                                                                                                                          
ca-certificates           2023.5.7             hcefe29a_0    conda-forge                                                                                                                                          
cachecontrol              0.13.0             pyhd8ed1ab_0    conda-forge
cachecontrol-with-filecache 0.13.0             pyhd8ed1ab_0    conda-forge
cachy                     0.3.0              pyhd8ed1ab_1    conda-forge
certifi                   2023.5.7           pyhd8ed1ab_0    conda-forge
cffi                      1.15.1          py310hf0c4615_3    conda-forge
cfgv                      3.3.1              pyhd8ed1ab_0    conda-forge
chardet                   5.1.0           py310hbbe02a8_0    conda-forge
charset-normalizer        3.1.0              pyhd8ed1ab_0    conda-forge
click                     8.1.3           unix_pyhd8ed1ab_2    conda-forge
click-default-group       1.2.2              pyhd8ed1ab_1    conda-forge
clikit                    0.6.2              pyhd8ed1ab_2    conda-forge
clyent                    1.2.2                      py_1    conda-forge
collect-upstream-conda-tests 0.0.1                    pypi_0    pypi
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
conda                     23.5.1.dev56+g80fcfd532           dev_0    <develop>
conda-build               3.24.0          py310h4c7bcd0_0    conda-forge
conda-index               0.2.3              pyhd8ed1ab_0    conda-forge
conda-libmamba-solver     23.5.1.dev13+gb1b5a07          pypi_0    pypi
conda-lock                2.1.1              pyhd8ed1ab_0    conda-forge
conda-pack                0.7.0              pyh6c4a22f_0    conda-forge
conda-package-handling    2.0.2              pyh38be061_0    conda-forge
conda-package-streaming   0.7.0              pyhd8ed1ab_1    conda-forge
conda-verify              3.1.1           py310hbbe02a8_1006    conda-forge
coverage                  7.2.3           py310h734f5e8_0    conda-forge
crashtest                 0.4.1              pyhd8ed1ab_0    conda-forge
cryptography              40.0.1          py310he4ba0b1_0    conda-forge
curl                      8.1.2                hc34909b_0    conda-forge
dbus                      1.13.6               h12b9eeb_3    conda-forge
defusedxml                0.7.1              pyhd8ed1ab_0    conda-forge
distlib                   0.3.6              pyhd8ed1ab_0    conda-forge
ensureconda               1.4.3              pyhd8ed1ab_0    conda-forge
exceptiongroup            1.1.1              pyhd8ed1ab_0    conda-forge
execnet                   1.9.0              pyhd8ed1ab_0    conda-forge
expat                     2.5.0                hd600fc2_1    conda-forge
filelock                  3.11.0             pyhd8ed1ab_0    conda-forge
flake8                    6.0.0              pyhd8ed1ab_0    conda-forge
flask                     2.2.3              pyhd8ed1ab_0    conda-forge
fmt                       9.1.0                hdd96247_0    conda-forge
freetype                  2.12.1               hbbbf32d_1    conda-forge
future                    0.18.3             pyhd8ed1ab_0    conda-forge
gettext                   0.21.1               ha18d298_0    conda-forge
git                       2.40.0          pl5321h7e2208b_1    conda-forge
gitdb                     4.0.10             pyhd8ed1ab_0    conda-forge
gitpython                 3.1.32             pyhd8ed1ab_0    conda-forge
glob2                     0.7                        py_0    conda-forge
html5lib                  1.1                pyh9f0ad1d_0    conda-forge
icu                       72.1                 hcf00150_0    conda-forge
identify                  2.5.22             pyhd8ed1ab_0    conda-forge
idna                      3.4                pyhd8ed1ab_0    conda-forge
importlib-metadata        6.2.0              pyha770c72_0    conda-forge
importlib_metadata        6.2.0                hd8ed1ab_0    conda-forge
importlib_resources       5.12.0             pyhd8ed1ab_0    conda-forge
iniconfig                 2.0.0              pyhd8ed1ab_0    conda-forge
itsdangerous              2.1.2              pyhd8ed1ab_0    conda-forge
jaraco.classes            3.3.0              pyhd8ed1ab_0    conda-forge
jeepney                   0.8.0              pyhd8ed1ab_0    conda-forge
jinja2                    3.1.2              pyhd8ed1ab_1    conda-forge
jmespath                  1.0.1              pyhd8ed1ab_0    conda-forge
jsonpatch                 1.32               pyhd8ed1ab_0    conda-forge
jsonpointer               2.0                        py_0    conda-forge
jsonschema                4.17.3             pyhd8ed1ab_0    conda-forge
jupyter_core              5.3.0           py310h4c7bcd0_0    conda-forge
keyring                   24.2.0          py310h4c7bcd0_0    conda-forge
keyutils                  1.6.1                h4e544f5_0    conda-forge
krb5                      1.20.1               h113d92e_0    conda-forge
lcms2                     2.15                 h3e0bdec_1    conda-forge
ld_impl_linux-aarch64     2.40                 h2d8c526_0    conda-forge
lerc                      4.0.0                h4de3ea5_0    conda-forge
libarchive                3.6.2                hc81d4a0_0    conda-forge
libcurl                   8.1.2                hc34909b_0    conda-forge
libdeflate                1.18                 hb4cce97_0    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libev                     4.33                 h516909a_1    conda-forge
libexpat                  2.5.0                hd600fc2_1    conda-forge
libffi                    3.4.2                h3557bc0_5    conda-forge
libgcc-ng                 12.2.0              h607ecd0_19    conda-forge
libglib                   2.76.4               h0464669_0    conda-forge
libgomp                   12.2.0              h607ecd0_19    conda-forge
libiconv                  1.17                 h9cdd2b7_0    conda-forge
libjpeg-turbo             2.1.5.1              hb4cce97_0    conda-forge
liblief                   0.12.3               h4de3ea5_0    conda-forge
libmamba                  1.4.9                h0c45e31_0    conda-forge
libmambapy                1.4.9           py310h1082823_0    conda-forge
libnghttp2                1.52.0               h250e5c5_0    conda-forge
libnsl                    2.0.0                hf897c2e_0    conda-forge
libpng                    1.6.39               hf9034f9_0    conda-forge
libsolv                   0.7.24               hd84c7bf_1    conda-forge
libsqlite                 3.42.0               h194ca79_0    conda-forge
libssh2                   1.10.0               he5a64b1_3    conda-forge
libstdcxx-ng              12.2.0              hc13a102_19    conda-forge
libtiff                   4.5.0                h536c0eb_6    conda-forge
libuuid                   2.38.1               hb4cce97_0    conda-forge
libwebp-base              1.3.0                hb4cce97_0    conda-forge
libxcb                    1.13              h3557bc0_1004    conda-forge
libxml2                   2.10.3               h430b14f_6    conda-forge
libzlib                   1.2.13               h4e544f5_4    conda-forge
lockfile                  0.12.2                     py_1    conda-forge
lz4-c                     1.9.4                hd600fc2_0    conda-forge
lzo                       2.10              h516909a_1000    conda-forge
markupsafe                2.1.2           py310h734f5e8_0    conda-forge
mccabe                    0.7.0              pyhd8ed1ab_0    conda-forge
more-itertools            9.1.0              pyhd8ed1ab_0    conda-forge
msgpack-python            1.0.5           py310hb43b7d6_0    conda-forge
nbformat                  5.8.0              pyhd8ed1ab_0    conda-forge
ncurses                   6.3                  headf329_1    conda-forge
nodeenv                   1.7.0              pyhd8ed1ab_0    conda-forge
openjpeg                  2.5.0                h9508984_2    conda-forge
openssl                   3.1.1                h31becfc_1    conda-forge
packaging                 23.0               pyhd8ed1ab_0    conda-forge
pastel                    0.2.1              pyhd8ed1ab_0    conda-forge
patch                     2.7.6             hf897c2e_1002    conda-forge
patchelf                  0.17.2               h884eca8_0    conda-forge
pcre2                     10.40                he7b27c6_0    conda-forge
perl                      5.32.1          2_hf897c2e_perl5    conda-forge
pexpect                   4.8.0              pyh1a96a4e_2    conda-forge
pillow                    9.5.0           py310hcf0f7da_0    conda-forge
pip                       23.2               pyhd8ed1ab_0    conda-forge
pkginfo                   1.9.6              pyhd8ed1ab_0    conda-forge
pkgutil-resolve-name      1.3.10             pyhd8ed1ab_0    conda-forge
platformdirs              3.2.0              pyhd8ed1ab_0    conda-forge
pluggy                    1.0.0              pyhd8ed1ab_5    conda-forge
pre-commit                3.2.2              pyha770c72_0    conda-forge
psutil                    5.9.4           py310h761cc84_0    conda-forge
pthread-stubs             0.4               hb9de7d4_1001    conda-forge
ptyprocess                0.7.0              pyhd3deb0d_0    conda-forge
py                        1.11.0             pyh6c4a22f_0    conda-forge
py-lief                   0.12.3          py310h130cc07_0    conda-forge
pybind11-abi              4                    hd8ed1ab_3    conda-forge
pycodestyle               2.10.0             pyhd8ed1ab_0    conda-forge
pycosat                   0.6.4           py310h761cc84_1    conda-forge
pycparser                 2.21               pyhd8ed1ab_0    conda-forge
pycrypto                  2.6.1           py310h7cee911_1006    conda-forge
pydantic                  1.10.11         py310hb299538_0    conda-forge
pyflakes                  3.0.1              pyhd8ed1ab_0    conda-forge
pylev                     1.4.0              pyhd8ed1ab_0    conda-forge
pyopenssl                 23.1.1             pyhd8ed1ab_0    conda-forge
pyrsistent                0.19.3          py310h734f5e8_0    conda-forge
pysocks                   1.7.1              pyha2e5f31_6    conda-forge
pytest                    7.2.2              pyhd8ed1ab_0    conda-forge
pytest-cov                4.0.0              pyhd8ed1ab_0    conda-forge
pytest-mock               3.10.0             pyhd8ed1ab_0    conda-forge
pytest-rerunfailures      11.1.2             pyhd8ed1ab_0    conda-forge
pytest-split              0.8.0              pyhd8ed1ab_0    conda-forge
pytest-timeout            2.1.0              pyhd8ed1ab_0    conda-forge
pytest-xdist              3.2.1              pyhd8ed1ab_0    conda-forge
pytest-xprocess           0.22.2             pyhd8ed1ab_0    conda-forge
python                    3.10.10         ha43d526_0_cpython    conda-forge
python-dateutil           2.8.2              pyhd8ed1ab_0    conda-forge
python-fastjsonschema     2.16.3             pyhd8ed1ab_0    conda-forge
python-libarchive-c       4.0             py310h4c7bcd0_2    conda-forge
python_abi                3.10                    3_cp310    conda-forge
pytz                      2023.3             pyhd8ed1ab_0    conda-forge
pyyaml                    6.0             py310h761cc84_5    conda-forge
readline                  8.2                  h8fc344f_1    conda-forge
reproc                    14.2.4               hb4cce97_0    conda-forge
reproc-cpp                14.2.4               hd600fc2_0    conda-forge
requests                  2.28.2             pyhd8ed1ab_1    conda-forge
responses                 0.21.0             pyhd8ed1ab_0    conda-forge
ripgrep                   13.0.0               hc770f70_2    conda-forge
ruamel.yaml               0.17.21         py310hb89b984_3    conda-forge
ruamel.yaml.clib          0.2.7           py310hb89b984_1    conda-forge
ruamel_yaml               0.15.80         py310h761cc84_1008    conda-forge
s3transfer                0.6.0              pyhd8ed1ab_0    conda-forge
secretstorage             3.3.3           py310hbbe02a8_1    conda-forge
setuptools                65.6.3             pyhd8ed1ab_0    conda-forge
setuptools-scm            7.1.0              pyhd8ed1ab_0    conda-forge
setuptools_scm            7.1.0                hd8ed1ab_0    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
smmap                     3.0.5              pyh44b312d_0    conda-forge
soupsieve                 2.3.2.post1        pyhd8ed1ab_0    conda-forge
sqlite                    3.42.0               h3b3482f_0    conda-forge
tk                        8.6.12               hd8af866_0    conda-forge
toml                      0.10.2             pyhd8ed1ab_0    conda-forge
tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
tomlkit                   0.11.8             pyha770c72_0    conda-forge
toolz                     0.12.0             pyhd8ed1ab_0    conda-forge
tornado                   6.2             py310hdc54845_1    conda-forge
tqdm                      4.65.0             pyhd8ed1ab_1    conda-forge
traitlets                 5.9.0              pyhd8ed1ab_0    conda-forge
typing-extensions         4.5.0                hd8ed1ab_0    conda-forge
typing_extensions         4.5.0              pyha770c72_0    conda-forge
tzdata                    2023c                h71feb2d_0    conda-forge
ukkonen                   1.0.1           py310hb15e014_3    conda-forge
urllib3                   1.26.15            pyhd8ed1ab_0    conda-forge
virtualenv                20.21.0            pyhd8ed1ab_0    conda-forge
webencodings              0.5.1                      py_1    conda-forge
werkzeug                  2.2.3              pyhd8ed1ab_0    conda-forge
wheel                     0.40.0             pyhd8ed1ab_0    conda-forge
xdoctest                  1.1.1              pyhd8ed1ab_0    conda-forge
xorg-libxau               1.0.9                h3557bc0_0    conda-forge
xorg-libxdmcp             1.1.3                h3557bc0_0    conda-forge
xz                        5.2.6                h9cdd2b7_0    conda-forge
yaml                      0.2.5                hf897c2e_2    conda-forge
yaml-cpp                  0.7.0                h4de3ea5_2    conda-forge
zipp                      3.15.0             pyhd8ed1ab_0    conda-forge
zstandard                 0.19.0          py310hde4b81c_1    conda-forge
zstd                      1.5.2                h44f6412_6    conda-forge
(base) test_user@cd9a7a86ad9b:/opt/conda-libmamba-solver-src$ conda-lock lock --platform linux-64 --file env.yml 
Locking dependencies for ['linux-64']...
INFO:conda_lock.conda_solver:linux-64 using specs ['panel']
 - Install lock using: conda-lock install --name YOURENV conda-lock.yml

@jaimergp
Copy link
Contributor

Also note conda-lock has 2.1.1 now and that's the one I used for my tests.

@jaimergp
Copy link
Contributor

Sorry about the noise, I can indeed reproduce. I hadn't enabled the solver 🤦. Checking now!

@qtdaniel
Copy link

qtdaniel commented Jul 17, 2023

I now think that this could be a conda-lock issue. The command that is failing involves a temporary directory input. That temporary directory is deleted when conda-lock exits making it difficult to check it isn't the source of the problem.

If one omits the temporary directory from the conda command then the command completes successfully.

If one copies the temporary directory while it is running via conda-lock, and then copies it back after it is deleted, then re-run the internal conda command directly referencing the temporary directory, then the problem re-surfaces.

This suggests to me it is the contents of that temporary directory that cause conda to fail and I am assuming that temporary directory is created by conda-lock.

I am using conda 23.5.2, conda-lock 2.1.0, conda-libmamba-solver 23.5.0, libmamba 1.4.9, and libmambapy 1.4.9.

@jaimergp
Copy link
Contributor

I looked into it a bit more and it's about the injected virtual packages via CONDA_OVERRIDE_* environment variables (which we don't see on the argument list). I proposed a fix in #234.

@github-project-automation github-project-automation bot moved this from 🆕 New to 🏁 Done in 🧭 Planning Jul 18, 2023
@jaimergp jaimergp added this to the July 2023 release milestone Jul 18, 2023
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Jul 18, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity type::bug describes erroneous operation, use severity::* to classify the type
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants