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.
Runtime Package Set#
selected source environment ... is missing required package(s)Add the missing runtime packages to the selected source environment:
conda,conda-rattler-solver, andconda-spawn.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 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.
install method may only contain ASCII letters, digits, dots, dashes, and underscoresUse a short method name such as
homebrew,conda-package, orstandalone.
Runtime Bootstrap#
runtime template, not a runnable conda 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 requires a stamped runtime lockOffline bootstrap requires a runtime built by
cs build.--bundle path is not a directoryPass a directory containing package archive files, not the compressed
.bundle.tar.zstfile itself.
Prefix Ownership#
refusing to bootstrap into existing non-empty pathChoose another
--pathor remove the existing directory yourself.refusing to use unmanaged install pathThe prefix does not contain ownership metadata for this runtime.
refusing to remove symbolic-link install pathThe runtime will not recursively remove a symlink path.
refusing to remove dangerous pathThe resolved path is too broad, such as a home directory or filesystem root.