cannot import name 'mydb' from partially initialized module 'connection' in Python

前端 未结 7 1529
南笙
南笙 2021-02-19 03:15

Python 3.8 error

ImportError: cannot import name \'mydb\' from partially initialized module \'connection\' 
(most likely due to a circular import) (C:\\U
sers\         


        
7条回答
  •  爱一瞬间的悲伤
    2021-02-19 03:48

    This error comes when you are attempting circular import. make sure you have not created any file with the same name with that of the module you are trying to import in the directory.

提交回复
热议问题