'i am trying to import class from python file but it show ImportError can not import name what should i do?

In python file there is no circular dependency or any other problem but still it show how ImportError can not import name from filename. there one python fileName

SQLfirst.py

from dbhelper import Student
st = Student()
print(st.id)

another file from i importing class

dbhelper.py

class Student:
    id = 1

class Student:
    id = 1

it just demo file, this is happen very python file

file where imported class

file from i import a class

error show



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source