contracting icon indicating copy to clipboard operation
contracting copied to clipboard

Circular Import Error when Importing Contract()

Open KELs7 opened this issue 4 years ago • 1 comments

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 avatar Mar 13 '21 21:03 KELs7

Maybe there's no need to use it directly.

KELs7 avatar Mar 13 '21 22:03 KELs7