8000 Circular Import Error when Importing Contract() · Issue #291 · Lamden/contracting · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Circular Import Error when Importing Contract() #291

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

Open
KELs7 opened this issue Mar 13, 2021 · 1 comment
Open

Circular Import Error when Importing Contract() #291

KELs7 opened this issue Mar 13, 2021 · 1 comment

Comments

@KELs7
Copy link
KELs7 commented Mar 13, 2021

I wanted to use the contract module
from contracting.db.contract import Contract
But got a circular import error because the contract module depends on the orm module which has the same line
from contracting.db.contract import Contract
therefore creating a circular dependency. Here is a screenshot of the error message.

IMG_20210313_210701

@KELs7
Copy link
Author
KELs7 commented Mar 13, 2021

Maybe there's no need to use it directly.

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

1 participant
0