Cloud-CV / Cloud-CV/EvalAI

Fix cyclic import dependency in challenges/aws_utils.py

Open
#3,146 9 comments 1 reaction 1 assignee Claimed by @burnerlee View on GitHub
Dominant language
Python
Stars
2k
Forks
984
Avg merge
2h 54m
Merged PRs (30d)
14

Description

### Description

Currently, we can't import `Challenge` model or any method from `challenges/utils.py` in [challenges/aws_utils.py](https://github.com/Cloud-CV/EvalAI/blob/master/apps/challenges/aws_utils.py) because `aws_utils.py` is being imported in `challenges/model.py`. If we try to import any util methods or models from `challenges/utils.py` or `challenges/models.py` in `challenges/aws_utils.py` it fails because of cyclic imports.

### Fix

Refactor `challenges/models.py` to fix cyclic imports

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.