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 Error for keri.db.basing #554

Open
nkongsuwan opened this issue Aug 10, 2023 · 1 comment
Open

Circular import Error for keri.db.basing #554

nkongsuwan opened this issue Aug 10, 2023 · 1 comment
Assignees

Comments

@nkongsuwan
Copy link
Contributor

When keri.db.basing is imported, I get the following error message.

ImportError: cannot import name 'KeyStateRecord' from partially initialized module 'keri.db.basing' (most likely due to a circular import) (/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/keri/db/basing.py)

This is because there is a circular import between keri.db.basing and keri.core.eventing.

Note that the problem does not arise when keri.core.eventing is imported before keri.db.basing.

@SmithSamuelM
Copy link
Contributor

We need to move anything that db.basing is importing from eventing to kering as db.basing needs to be importable anywhere

@m00sey m00sey self-assigned this Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants