Draegerwerk/sdc11073

Circular import

Closed this issue · 0 comments

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

An import
from sdc11073.roles.product import DefaultProduct

causes:
File "C:\devel\sdc11073\src\sdc11073\roles\product.py", line 7, in
from .alarmprovider import GenericAlarmProvider
File "C:\devel\sdc11073\src\sdc11073\roles\alarmprovider.py", line 10, in
from sdc11073.provider.operations import ExecuteResult
File "C:\devel\sdc11073\src\sdc11073\provider_init_.py", line 9, in
from sdc11073.provider.providerimpl import SdcProvider
File "C:\devel\sdc11073\src\sdc11073\provider\providerimpl.py", line 30, in
from .components import default_sdc_provider_components
File "C:\devel\sdc11073\src\sdc11073\provider\components.py", line 11, in
from sdc11073.roles.product import DefaultProduct
ImportError: cannot import name 'DefaultProduct' from partially initialized module 'sdc11073.roles.product' (most likely due to a circular import) (C:\devel\sdc11073\src\sdc11073\roles\product.py)

Expected Behavior

no circular import

Minimal Reproducible Example

No response

Solution proposal

No response

Python Version

all

Operating system

all

Sdc11073 Version

2.0.0rc1

Link to sdc11073 Logs

No response

Further Information

No response

Participation

  • I am willing to submit a pull request to fix this bug.