thoth-station / kebechet

I'm Kebechet bot, goddess of freshness - I will keep your source code fresh and up-to-date
24 stars 20 forks source link

cli PYTHONPATH=. python kebechet-cli --help failed with importError #1091

Closed shreekarSS closed 2 years ago

shreekarSS commented 2 years ago

Bug description

cli PYTHONPATH=. python kebechet-cli --help failed with ImportError

(kebechet) [shreekarSS@fedora kebechet]$ PYTHONPATH=. python kebechet-cli --help Traceback (most recent call last): File "kebechet-cli", line 31, in from kebechet.kebechet_runners import run, run_url, run_webhook, run_analysis File "/home/shreekarSS/wip/issue_151/kebechet/kebechet/kebechet_runners.py", line 33, in from kebechet.managers import ( File "/home/shreekarSS/wip/issue_151/kebechet/kebechet/managers/init.py", line 6, in from .version import VersionManager # noqa F401 File "/home/shreekarSS/wip/issue_151/kebechet/kebechet/managers/version/init.py", line 3, in from .version import VersionManager # noqa F401 File "/home/shreekarSS/wip/issue_151/kebechet/kebechet/managers/version/version.py", line 31, in from .release_triggers import ( File "/home/shreekarSS/wip/issue_151/kebechet/kebechet/managers/version/release_triggers.py", line 27, in from kebechet.managers import ManagerBase ImportError: cannot import name 'ManagerBase' from partially initialized module 'kebechet.managers' (most likely due to a circular import) (/home/shreekarSS/wip/issue_151/kebechet/kebechet/managers/init.py)

Steps to Reproduce

Steps to reproduce the behavior: 1.Follow this doc https://github.com/thoth-station/kebechet/blob/master/docs/getting-started.rst to install pre reqs

Actual behavior

cli failed with python ImportError

Expected behavior

help cli should run without any issuess

harshad16 commented 2 years ago

Does PYTHONPATH=. pipenv run ./kebechet-cli --help also give same error?

shreekarSS commented 2 years ago

Does PYTHONPATH=. pipenv run ./kebechet-cli --help also give same error?

Yes , it's giving the same error

harshad16 commented 2 years ago

Seems like this issue is occured due this PR: https://github.com/thoth-station/kebechet/pull/1080/files tested in local , gonna try to fix it or revert it.