This page collects common setup and CLI issues that are easy to fix once you know what to check.
Symptom:
venv/bin/passivbot ...behaves differently frompassivbot ...passivbot -hstill shows old help output after reinstallingpassivbotappears to ignore changes from the current checkout
Cause:
- Your shell is resolving a different
passivbotexecutable than the one inside the active virtualenv. - This is common with
pyenv, multiple virtualenvs, or shells that cache command paths. - Newer Passivbot builds detect this and either re-exec into the active environment's
passivbotscript or fail loudly with an explicit mismatch message.
Check which command is being used:
type -a passivbot
command -v passivbot
python -c "import sys; print(sys.executable)"Expected result:
command -v passivbotshould point to the active venv, for example:
/path/to/passivbot/venv/bin/passivbotThe Python executable should also point to the same virtualenv, for example:
/path/to/passivbot/venv/bin/pythonIf either command points somewhere else, refresh shell command lookup:
hash -rIf your shell also supports rehash (zsh, tcsh), run that too:
rehashIf that is not enough, reactivate the venv:
deactivate
source venv/bin/activate
hash -rFor shells with rehash, run it after reactivating:
rehashIf you use pyenv, also refresh its shims:
pyenv which passivbot
pyenv rehashIf you still need to confirm the current checkout is correct, compare:
venv/bin/passivbot optimize -h | head -40
passivbot optimize -h | head -40If the first command is correct and the second is not, the problem is shell path resolution, not Passivbot itself.
Install the full profile:
python3 -m pip install -e ".[full]"Activate the venv and rebuild the Rust extension:
source venv/bin/activate
maturin develop --releaseIf you recently pulled new commits, refresh the install too:
python3 -m pip install -e .
# or: python3 -m pip install -e ".[full]"
# or: python3 -m pip install -e ".[dev]"This is a Rust toolchain issue, not a Python dependency issue.
If the Rust build logs include errors like:
feature edition2024 is requiredcargo metadata ... failedfailed to parse manifestinside~/.cargo/registry/...
then your local Cargo is too old for the crates it resolved during the build.
Check your toolchain:
cargo --version
rustc --versionUpdate to the current stable Rust toolchain and retry:
rustup update stable
python3 -m pip install -e ".[full]"If Rust was installed from system packages instead of rustup, prefer switching to the rustup-managed toolchain.
This usually means the build is running outside the project venv.
Activate the venv first:
source venv/bin/activate
which python
python -m pip --versionExpected result:
which pythonshould point to.../venv/bin/pythonpython -m pip --versionshould reference the same venv
Then rerun:
maturin develop --releaseIf you are still seeing the wrong interpreter, recreate the venv with a supported interpreter (Python 3.12 or 3.14; not 3.13) and reinstall Passivbot inside that venv.