[New-bugs-announce] [issue46499] circular impoty

shukurulloxkomiljonov report at bugs.python.org
Mon Jan 24 01:47:04 EST 2022


New submission from shukurulloxkomiljonov <komiljonovshukurullox at gmail.com>:

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!

----------
components: Library (Lib)
messages: 411447
nosy: KOMILJONOV
priority: normal
severity: normal
status: open
title: circular impoty
type: crash
versions: Python 3.10, Python 3.11, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46499>
_______________________________________


More information about the New-bugs-announce mailing list