Skip to content

Circular Import Error: Cannot Import model_legacy in harmonic/utils.py #310

Closed
@AB-physics

Description

@AB-physics

When running tests with pytest, I encounter a circular import error in harmonic/utils.py at the line:
from harmonic import model_legacy
This error occurs because harmonic/init.py imports utils, leading to a circular dependency. Please consider either moving this import inside the functions that use it (lazy import) or updating the import to the new location if model_legacy has been renamed.

Metadata

Metadata

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