This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author KOMILJONOV
Recipients KOMILJONOV
Date 2022-01-24.06:47:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643006824.68.0.207165371072.issue46499@roundup.psfhosted.org>
In-reply-to
Content
ImportError: cannot import name 'Db' from partially initialized module 'orm_model.db' (most likely due to a circular import) (C:\Users\Komil\OneDrive\Desktop\mymodel\orm_model\db.py)


I am making al library!

I have model.py and db.py
in db.py has class Db
in model.py has class Model

db.py imported Model
and model.py imported Db

but i have error 

ImportError: cannot import name 'Db' from partially initialized module 'orm_model.db' (most likely due to a circular import) 


how can i resolve it please enswer me!
History
Date User Action Args
2022-01-24 06:47:04KOMILJONOVsetrecipients: + KOMILJONOV
2022-01-24 06:47:04KOMILJONOVsetmessageid: <1643006824.68.0.207165371072.issue46499@roundup.psfhosted.org>
2022-01-24 06:47:04KOMILJONOVlinkissue46499 messages
2022-01-24 06:47:04KOMILJONOVcreate