gee-community/qgis-earthengine-plugin

Circular imports stemming from ee_plugin

Opened this issue · 0 comments

In the feature/ci branch, a circular dependency exists between the modules ee_plugin, provider, Map, and utils. This dependency chain causes ee_plugin to be partially initialized when imported, resulting in an ImportError during test execution. The chain arises because ee_plugin depends on provider, which depends on Map and utils, and these modules loop back to ee_plugin.

Map.py
    ↓
utils.py
    ↓
ee_plugin.py
    ↓
provider.py
    ↓
Map.py (cycle back)

I ran into the issue while creating some tests using Map.py.

Included in #174