Answer the question
In order to leave comments, you need to log in
Database error in telegram bot. How to decide?
I am writing an "Anonymous Chat" bot for a cart. I created a database class, connected it to the bot code, launched it and got an error.
Here is the error: from database import Database
ImportError: cannot import name 'Database' from 'database'
What should I do?
Answer the question
In order to leave comments, you need to log in
Try to write at the beginning of the code:
But seriously, where is the code, where is the database file?
from golova import mozgi
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question