Skip to content

Conversation

@andreatgretel
Copy link
Contributor

As reported by @nabinchha - plugins that import from data_designer.engine.column_generators.generators.base (to subclass ColumnGenerator) caused circular import errors during plugin discovery.

That is because base.py imported COLUMN_TYPE_EMOJI_MAP from column_types.py at module level. Since column_types.py instantiates PluginManager() at import time (which triggers plugin discovery), this created a circular import chain:

plugin.module → base.py → column_types.py → PluginManager → plugin.module

The fix was to change the COLUMN_TYPE_EMOJI_MAP import in base.py from module-level to a lazy import inside the log_pre_generation() method where it's actually used.

Also added a test which fails before this fix, and passes after.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants