Skip to content

empyrical python package referenced in Task_1 requirements.txt is not compatible with Python 3.12 #8

@ryanpd423

Description

@ryanpd423

When trying to run the pip install command for the requirements.txt in the Task 1 repo I got an error regarding incompatibility between empyrical and Python 3.12. I believe it has something to do with with the SafeConfigParser call on line 412 in its versioneer.py file and support for that being removed from Python 3.12 - this is kind of my guess, not sure though I'm not a Python dev.

As a workaround I had to comment out empyrical from the requirements.txt file (in the Task 1 repo).

@stellawang196 (Keyi) asked me to create an issue for this in the #finai-2025-contest channel. Explained that empyrical is used for calculating metrics and that we could temporarily change cumulative_returns and max_drawdown to their corresponding formulas instead of using empyrical and that they would try to fix this asap.

I also experienced a number of package versions in the requirements.txt file that were out of date and causing further setup issues. Just fyi for anyone else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions