Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circular import #333

Closed
2 tasks done
deichmab-draeger opened this issue Feb 7, 2024 · 0 comments · Fixed by #334
Closed
2 tasks done

Circular import #333

deichmab-draeger opened this issue Feb 7, 2024 · 0 comments · Fixed by #334
Assignees
Labels
bug Something isn't working v2 Version 2 is affected v2.0 Mandatory for the 2.0 release
Milestone

Comments

@deichmab-draeger
Copy link
Member

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.
@deichmab-draeger deichmab-draeger added bug Something isn't working v2 Version 2 is affected v2.0 Mandatory for the 2.0 release labels Feb 7, 2024
@deichmab-draeger deichmab-draeger self-assigned this Feb 7, 2024
@leon1995 leon1995 linked a pull request Feb 7, 2024 that will close this issue
5 tasks
@leon1995 leon1995 added this to the v2.0 release milestone Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v2 Version 2 is affected v2.0 Mandatory for the 2.0 release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants