Short answer: The recovery phrase does not have exactly 25 words.
WrongMnemonicLengthError: mnemonic length must be 25
Source: captured locally with py-algorand-sdk 2.12.0 on 2026-12-03.
Captured by passing the first 24 words of a valid mnemonic to mnemonic.to_private_key.
.split(); check for a missing word, a line break or extra quotes from an env var." ".join(m.split()).Wording can change between SDK versions. All Python SDK errors · errors.json · JavaScript SDK errors · API errors · node errors