You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> pycycle --here --verboseTrying to parse file: /private/tmp/reproduction/reproduction/__init__.pyTrying to parse file: /private/tmp/reproduction/reproduction/moduleB/__init__.pyTrying to parse file: /private/tmp/reproduction/reproduction/moduleB/b_class.pyTrying to parse file: /private/tmp/reproduction/reproduction/moduleA/a_class.pyTrying to parse file: /private/tmp/reproduction/reproduction/moduleA/__init__.pyProject successfully transformed to AST, checking imports for cycles..No worries, no cycles here!If you think some cycle was missed, please open an Issue on Github.Finished.
when trying to import moduleA:
> python3 -c 'import reproduction.moduleA'Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/tmp/reproduction/reproduction/moduleA/__init__.py", line 1, in <module> from .a_class import ClassA File "/private/tmp/reproduction/reproduction/moduleA/a_class.py", line 1, in <module> import reproduction.moduleB File "/private/tmp/reproduction/reproduction/moduleB/__init__.py", line 1, in <module> from .b_class import ClassB File "/private/tmp/reproduction/reproduction/moduleB/b_class.py", line 1, in <module> from ..moduleA import ClassAImportError: cannot import name 'ClassA' from partially initialized module 'reproduction.moduleA' (most likely due to a circular import) (/private/tmp/reproduction/reproduction/moduleA/__init__.py)
The text was updated successfully, but these errors were encountered:
A rather primitive module cycle is not detected. Minimal working example:
reproduction > moduleA > __init__.py
:reproduction > moduleA > a_class.py
:reproduction > moduleB > __init__.py
:reproduction > moduleB > b_class.py
:When running pycycle:
when trying to import moduleA:
The text was updated successfully, but these errors were encountered: