Помогите! AttributeError: partially initialized module 'telebot.types' has no attribute 'User' при запуске бота

AngelyOs

Новичок
Автор темы
1
0
Всем доброго дня. Помогите, пожалуйста, понять, в чем проблема. Создаю Телеграм-бот, при запуске выдает ошибку. Имен совпадающих нет. Деинсталляция не помогает.
Traceback (most recent call last):
File "C:\Users\256bit.by\PycharmProjects\pythonProject1\InterBot.py", line 2, in <module>
from telebot import types
File "C:\Users\256bit.by\lib\site-packages\telebot\types.py", line 12, in <module>
from telebot import util
File "C:\Users\256bit.by\lib\site-packages\telebot\util.py", line 404, in <module>
def user_link(user: types.User, include_id: bool=False) -> str:
AttributeError: partially initialized module 'telebot.types' has no attribute 'User' (most likely due to a circular import)

import telebot
from telebot import types
# t.me/InterrrrrBot
token = '5970261367:AAHr7vO2uQofxTWlB_8v_ZvYFh1mJxCqdwY'
bot = telebot.TeleBot('token')
bot.polling(non_stop=True, interval=0)
(venv) PS C:\Users\256bit.by\PycharmProjects\pythonProject1> pip uninstall telebot
Found existing installation: telebot 0.0.4
Not uninstalling telebot at c:\users\256bit.by\lib\site-packages, outside environment C:\Users\256bit.by\PycharmProjects\pythonProject1\venv
Can't uninstall 'telebot'. No files were found to uninstall.
(venv) PS C:\Users\256bit.by\PycharmProjects\pythonProject1>