A
A
Azamgl2020-01-13 14:38:19
Python
Azamgl, 2020-01-13 14:38:19

Need help with an error when creating a bot in Python?

When running the code on the command line, it gives:
Traceback (most recent call last):
File "C:\Python\telebot.py", line 1, in
import telebot
File "C:\Python\telebot.py", line 3, in
bot = telebot.TeleBot("TOKEN")
AttributeError: partially initialized module 'telebot' has no attribute 'TeleBot' (most likely due to a circular import
) most likely due to circular imports).
Can you chew, if not difficult?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Linxet, 2020-01-13
@Azamgl

I can assume that your script file is called telebot.py
This error can be caused by this, change the file name.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question