Installation [DEV]

The recommended development setup uses uv for both the virtual environment and package installation. The repository includes install_traceratops_uv.bash, which installs uv if needed, clones traceratops, creates a fresh .venv, installs traceratops with development dependencies, and runs a small import/CLI check.

Automated uv installation

From any terminal, run:

curl -O https://raw.githubusercontent.com/pyHi-M/traceratops/main/install_traceratops_uv.bash
bash install_traceratops_uv.bash

By default, the script:

  • clones traceratops into $HOME/Repositories/traceratops;

  • creates a fresh uv environment at $HOME/Repositories/traceratops/.venv;

  • uses Python 3.11;

  • installs traceratops in editable mode with the dev optional dependencies;

  • checks that core scientific dependencies and the trace_filter command are available.

Activate the environment after installation with:

source $HOME/Repositories/traceratops/.venv/bin/activate

Manual uv installation

If you prefer to run the commands yourself, install uv first if it is missing:

curl -LsSf https://astral.sh/uv/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"

Then clone and install traceratops:

mkdir -p $HOME/Repositories
cd $HOME/Repositories
git clone https://github.com/pyHi-M/traceratops.git
cd traceratops
uv venv .venv --python 3.11
source .venv/bin/activate
uv pip install -e ".[dev]"

Check the installation

python -c "import traceratops; print('traceratops OK')"
trace_filter --help

Strange error

  • If a script name seems to refer to another package:

    • Identify the error package name.

    • If it’s not in the dependencies of your project, it’s a “ghost”.

    • To exorcise it:

      • Identify exe path : which pylint (for example /home/user/.local/bin/pylint)

      • Remove it : rm ~/.local/bin/pylint

    • Re-install your package to be sure uv pip install -e ".[dev]"