Skip to content

TIR-Learner step crashes with KeyError: 0 due to Pandas 2.0+ incompatibility #631

Description

@lorenzopenone

When running the EDTA.sif Apptainer container on the TIR step, the pipeline crashes with a KeyError: 0. This is caused by TIR-Learner3.0 using deprecated positional indexing (x[0]) on a Pandas Series in check_TIR_TSD.py. Python 3.12 and Pandas 2.0+ strictly forbid this fallback behavior.

For anyone encountering this, you can extract check_TIR_TSD.py, run sed -i 's/x\[\([0-9]\+\)\]/x.iloc[\1]/g' check_TIR_TSD.py, and bind-mount the fixed file when running Apptainer: apptainer exec --bind $PWD/check_TIR_TSD.py:/usr/local/share/TIR-Learner3.0/bin/check_TIR_TSD.py EDTA.sif ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions