No matching distribution found for atlanai from pip
pip stops with ERROR: Could not find a version that satisfies the requirement atlanai (from versions: none). Above it, pip may list Ignored the following versions that require a different python version followed by the atlanai versions it skipped.
Cause
The SDK requires Python 3.10 or later (Requires-Python >=3.10). On an older interpreter, pip ignores every release because none declares support for it, so it finds no candidate.
Solution
Install with a supported interpreter.- Run
python --versionand confirm it prints 3.10 or later. - If it does not, create a virtual environment with a newer Python, for example
python3.12 -m venv .venv, and activate it. - Run
pip install atlanaiagain. - Run
python -c "import atlanai; print(atlanai.__version__)"to confirm the package imports.
ModuleNotFoundError: atlanai.tracing needs the tracing extra
Importing atlanai.tracing fails and the message names the tracing extra.
Cause
Tracing’s OpenTelemetry packages are an optional extra in Python. A plainpip install atlanai includes the atlanai.tracing module but not the packages it needs.
Solution
Install the extra.- Run
pip install 'atlanai[tracing]'. - Run
python -c "import atlanai.tracing as t; print(t.__version__)". - Confirm the version matches
atlanai.__version__. If the two differ, runpip install --upgrade 'atlanai[tracing]'to align them.
init() disables tracing and no traces are exported
The call returns, your application runs, and nothing reaches Agent Registry.
Cause
init() turns tracing off, and logs a warning that starts with “tracing disabled”, in these cases:
- There is no
ATLAN_API_KEYand noOTEL_EXPORTER_OTLP_*_ENDPOINTsetting. - The service name is missing:
service_namein Python,serviceNamein TypeScript. ATLAN_BASE_URLis nothttps. Plainhttpis allowed only for loopback hosts such aslocalhost.
ATLAN_TRACING=false also disables tracing, and it logs no warning.
Solution
Match the warning to its setting.- Read the warning text. It names the missing setting.
- Set
ATLAN_API_KEYandATLAN_WORKSPACE_IDin the environment of the process that callsinit(). Tracing reads the process environment wheninit()runs, so a variable exported in a different terminal is not visible. In runtimes with no environment, such as Cloudflare Workers, passapiKeyandworkspaceIdtoinit()instead. - Pass a service name to
init(). - Confirm
ATLAN_BASE_URLis unset or starts withhttps://, and thatATLAN_TRACINGis notfalse. - Run your code again and confirm the warning no longer appears.
AtlanConfigError: a workspace is required when exporting to an Atlan endpoint
init() raises instead of returning a client.
Cause
You configured an Atlan API key but no workspace. Traces sent without a workspace would land in thedefault workspace and be effectively lost, so the SDK refuses to start.
Solution
Provide the workspace.- Set
ATLAN_WORKSPACE_IDto the ID of the workspace that owns the traces. - Or pass
workspace_id(Python) orworkspaceId(TypeScript) toinit(). - Run
init()again and confirm it returns without raising.
AtlanAPIError from management call
A call such as client.auth.whoami() raises AtlanAPIError.
Cause
The Gateway returned a non-2xx response, or no response arrived. The error carriesstatus and code, and trace_id (Python) or traceId (TypeScript) when the Gateway includes one. A status of 0 means the request failed before any response, for example because of a wrong Gateway URL or a network error.
Solution
Read the error before you retry.- Print
error.statusanderror.code. - If
statusis0, check that the Gateway URL is correct and reachable from your machine. - If
statusis not0, look up thecodein Errors and retries and follow the cause listed there. - Keep the
trace_idortraceIdif you contact support. - Run the call again and confirm it returns your account.
See also
- Install atlanai SDK: Install the SDK and confirm the package resolves.
- Trace your first agent run: Initialize the tracing client and send your first trace.
- Configuration reference: Every option and environment variable for management and tracing.
- Errors and retries: Gateway error codes, causes, and when to retry.