Errors#
This page lists common conda-ship errors and the usual fix.
cs prints human-readable diagnostics by default. The conda ship adapter uses
an internal structured diagnostic mode so it can show the same errors through
conda without depending on terminal formatting.
Project Input#
could not find project root containing conda.toml, pixi.toml, or supported pyproject.tomlRun from the project root or pass
--root PATH.could not find conda.toml, pixi.toml, or supported pyproject.tomlAdd a supported manifest to the selected root.
lockfile not foundRefresh and commit the matching source lockfile with
conda workspace lockorpixi lock.source environment is requiredSet
[tool.conda-ship].source-environment.source environment "NAME" not foundAdd the environment to the source manifest and refresh the source lockfile.
runtime version is requiredPass
--runtime-version, set[tool.conda-ship].runtime-version, define static[project].versionin the selectedpyproject.toml, or opt intoruntime-version = { from = "project-metadata" }through the Pythonconda shipadapter for dynamic Python project versions.failed to read condarc-fileCheck
[tool.conda-ship].condarc-file. Relative paths start from the selected manifest directory.failed to parse condarc-file as YAMLFix the referenced YAML file.
condarc-file must contain a YAML mappingUse normal condarc key and value entries rather than a top-level scalar or sequence.
Package Archives#
cannot bundle packages without SHA256 hashesRefresh the source lockfile with package hash metadata before building
externalorembeddedlayouts.no default environment in ... runtime.lockThe derived runtime lock is malformed. Rebuild from the source lockfile.
Template Selection#
runtime template not foundInstall a conda-ship package that includes
cs-template, setCONDA_SHIP_TEMPLATE, or pass--template PATH.cross-builds require --templatePass a prebuilt runtime template for the requested target.
runtime template is already stamped--templatepoints at a generated runtime instead of a generic template.
Naming#
runtime name must start with an ASCII letter or digitUse a filename-safe runtime name such as
demoordemo-runtime.delegate executable may only contain ASCII letters, digits, dots, dashes, and underscoresUse an executable name, not a path.
target triple may only contain ASCII letters, digits, dots, dashes, and underscoresUse a target triple string, not a path to a custom target file.
installer may only contain ASCII letters, digits, dots, dashes, and underscoresUse a short installer name such as
homebrew,conda-package, orstandalone.
Runtime Bootstrap#
runtime template, not a runnable runtimeRun a binary produced by
cs build, not the generic runtime template.runtime has no stamped lockfileThe binary is not a properly stamped runtime. Rebuild it with
cs build.offline bootstrap requires a stamped runtime lockOffline bootstrap requires a runtime built by
cs build.runtime bundle path is not a directoryPoint the runtime-specific
_BUNDLEenvironment variable at a directory containing package archive files, not the compressed.bundle.tar.zstfile itself.
Prefix Ownership#
refusing to bootstrap into existing non-empty pathSet
CONDA_SHIP_PREFIXto another path or remove the existing directory yourself. Runtime-specific_PREFIXvariables also work for names other thanconda.refusing to use unmanaged install pathThe prefix does not contain ownership metadata for this runtime.
refusing to use install path with invalid bootstrap stateThe internal installing marker is malformed or belongs to another runtime. A non-empty prefix without matching ownership state is rejected.