Skip to content

cannot import name 'Producer' from partially initialized module 'rstream' (most likely due to a circular import) #597

@rain-0000

Description

@rain-0000

Describe the bug

Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2024.3.3\plugins\python-ce\helpers\pydev\pydevd.py", line 1570, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\JetBrains\PyCharm 2024.3.3\plugins\python-ce\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:\Users\76885\Desktop\gsProject\python\dcops\utils\mq\rstream.py", line 7, in
from rstream import Producer
File "C:\Users\76885\Desktop\gsProject\python\dcops\utils\mq\rstream.py", line 7, in
from rstream import Producer
ImportError: cannot import name 'Producer' from partially initialized module 'rstream' (most likely due to a circular import)

Reproduction steps

1.from rstream import Producer

Expected behavior

Normal import

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    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