@EVG82

На что ругается? Че ему надо?

Полностью залил готовый код. В консоле норм, как и в примере.

Нажал старт и вот, то, что ниже...

xecutor.py [LINE:362] #INFO     [2022-03-04 00:36:07,638] Bot: rekrut [@rekrut5_bot]
dispatcher.py [LINE:358] #INFO     [2022-03-04 00:36:07,638] Start polling.
dispatcher.py [LINE:390] #ERROR    [2022-03-04 00:36:11,412] Cause exception while getting updates.
Traceback (most recent call last):
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 381, in start_polling
    updates = await self.bot.get_updates(
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\bot\bot.py", line 110, in get_updates
    result = await self.request(api.Methods.GET_UPDATES, payload)
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\bot\base.py", line 231, in request
    return await api.make_request(await self.get_session(), self.server, self.__token, method, data, files,
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\bot\api.py", line 140, in make_request
    return check_result(method, response.content_type, response.status, await response.text())
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\bot\api.py", line 119, in check_result
    exceptions.ConflictError.detect(description)
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\utils\exceptions.py", line 140, in detect
    raise err(cls.text or description)
aiogram.utils.exceptions.TerminatedByOtherGetUpdates: Terminated by other getupdates request; make sure that only one bot instance is running
base_events.py [LINE:1729] #ERROR    [2022-03-04 00:36:16,548] Task exception was never retrieved
future: <Task finished name='Task-8' coro=<Dispatcher._process_polling_updates() done, defined at G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\dispatcher\dispatcher.py:407> exception=FileNotFoundError(2, 'No such file or directory')>
Traceback (most recent call last):
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 415, in _process_polling_updates
    for responses in itertools.chain.from_iterable(await self.process_updates(updates, fast)):
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 235, in process_updates
    return await asyncio.gather(*tasks)
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\dispatcher\handler.py", line 116, in notify
    response = await handler_obj.handler(*args, **partial_data)
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 256, in process_update
    return await self.message_handlers.notify(update.message)
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\dispatcher\handler.py", line 116, in notify
    response = await handler_obj.handler(*args, **partial_data)
  File "G:\PYTHON\PROSTO_bot\main.py", line 36, in welcome
    joinedFile = open("user.txt", "r")
FileNotFoundError: [Errno 2] No such file or directory: 'user.txt'
dispatcher.py [LINE:390] #ERROR    [2022-03-04 00:36:18,501] Cause exception while getting updates.
Traceback (most recent call last):
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 381, in start_polling
    updates = await self.bot.get_updates(
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\bot\bot.py", line 110, in get_updates
    result = await self.request(api.Methods.GET_UPDATES, payload)
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\bot\base.py", line 231, in request
    return await api.make_request(await self.get_session(), self.server, self.__token, method, data, files,
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\bot\api.py", line 140, in make_request
    return check_result(method, response.content_type, response.status, await response.text())
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\bot\api.py", line 119, in check_result
    exceptions.ConflictError.detect(description)
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\utils\exceptions.py", line 140, in detect
    raise err(cls.text or description)
aiogram.utils.exceptions.TerminatedByOtherGetUpdates: Terminated by other getupdates request; make sure that only one bot instance is running
base_events.py [LINE:1729] #ERROR    [2022-03-04 00:36:23,635] Task exception was never retrieved
future: <Task finished name='Task-12' coro=<Dispatcher._process_polling_updates() done, defined at G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\dispatcher\dispatcher.py:407> exception=FileNotFoundError(2, 'No such file or directory')>
Traceback (most recent call last):
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 415, in _process_polling_updates
    for responses in itertools.chain.from_iterable(await self.process_updates(updates, fast)):
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 235, in process_updates
    return await asyncio.gather(*tasks)
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\dispatcher\handler.py", line 116, in notify
    response = await handler_obj.handler(*args, **partial_data)
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 256, in process_update
    return await self.message_handlers.notify(update.message)
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\dispatcher\handler.py", line 116, in notify
    response = await handler_obj.handler(*args, **partial_data)
  File "G:\PYTHON\PROSTO_bot\main.py", line 36, in welcome
    joinedFile = open("user.txt", "r")
FileNotFoundError: [Errno 2] No such file or directory: 'user.txt'
dispatcher.py [LINE:390] #ERROR    [2022-03-04 00:36:25,095] Cause exception while getting updates.
Traceback (most recent call last):
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 381, in start_polling
    updates = await self.bot.get_updates(
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\bot\bot.py", line 110, in get_updates
    result = await self.request(api.Methods.GET_UPDATES, payload)
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\bot\base.py", line 231, in request
    return await api.make_request(await self.get_session(), self.server, self.__token, method, data, files,
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\bot\api.py", line 140, in make_request
    return check_result(method, response.content_type, response.status, await response.text())
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\bot\api.py", line 119, in check_result
    exceptions.ConflictError.detect(description)
  File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\utils\exceptions.py", line 140, in detect
    raise err(cls.text or description)
aiogram.utils.exceptions.TerminatedByOtherGetUpdates: Terminated by other getupdates request; make sure that only one bot instance is running
dispatcher.py [LINE:433] #INFO     [2022-03-04 00:36:32,082] Stop polling...
executor.py [LINE:329] #WARNING  [2022-03-04 00:36:32,087] Goodbye!
  • Вопрос задан
  • 6264 просмотра
Решения вопроса 3
iggor-markin
@iggor-markin
Python Developer
Написано, что запускаешь два бота одновременно
Ответ написан
@NSeydulla
aiogram.utils.exceptions.TerminatedByOtherGetUpdates: Terminated by other getupdates request; make sure that only one bot instance is running

Запускаешь два бота одновременно!
Проверь диспетчер задач и выключи все питоны которые должны не работать
Ответ написан
Комментировать
misha356
@misha356
Два бота
Нет файла

Traceback (most recent call last):
File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 381, in start_polling
updates = await self.bot.get_updates(
File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\bot\bot.py", line 110, in get_updates
result = await self.request(api.Methods.GET_UPDATES, payload)
File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\bot\base.py", line 231, in request
return await api.make_request(await self.get_session(), self.server, self.__token, method, data, files,
File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\bot\api.py", line 140, in make_request
return check_result(method, response.content_type, response.status, await response.text())
File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\bot\api.py", line 119, in check_result
exceptions.ConflictError.detect(description)
File "G:\PYTHON\PROSTO_bot\bot\lib\site-packages\aiogram\utils\exceptions.py", line 140, in detect
raise err(cls.text or description)
aiogram.utils.exceptions.TerminatedByOtherGetUpdates: Terminated by other getupdates request; make sure that only one bot instance is running
base_events.py [LINE:1729] #ERROR [2022-03-04 00:36:23,635] Task exception was never retrieved
future:

Килл из-за других обновлений
Ответ написан
Комментировать
Пригласить эксперта
Ответы на вопрос 1
@Drno
future: exception=FileNotFoundError(2, 'No such file or directory')>


тут разве не показывает что файл не найден?
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы