Привет,у меня не получается сделать бота,в скрипте все правильно,но почему то не выходит ничего,выдает ошибку пожалуйста помогите, ошибка:
libssl.py [LINE:79] #INFO [2023-11-29 13:46:38,095] Failed to load SSL library: <class 'OSError'> (no library called "ssl" found)
aes.py [LINE:25] #INFO [2023-11-29 13:46:38,095] cryptg module not installed and libssl not found, falling back to (slower) Python encryption
c:\Users\DNS\Desktop\ll\app.py:11: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
base_events.py [LINE:1744] #ERROR [2023-11-29 13:46:41,938] Task exception was never retrieved
future: <Task finished name='Task-1' coro=<game_time() done, defined at c:\Users\DNS\Desktop\ll\data\functions\functions.py:97> exception=TypeError("'NoneType' object is not subscriptable")>
Traceback (most recent call last):
File "c:\Users\DNS\Desktop\ll\data\functions\functions.py", line 101, in game_time
if get_jackpot_end_time() < now_time:
File "c:\Users\DNS\Desktop\ll\data\functions\db.py", line 456, in get_jackpot_end_time
row = cursor.fetchone()[0]
TypeError: 'NoneType' object is not subscriptable
executor.py [LINE:329] #WARNING [2023-11-29 13:46:42,498] Goodbye!
Traceback (most recent call last):
File "c:\Users\DNS\Desktop\ll\app.py", line 13, in <module>
executor.start_polling(dp)
File "C:\Users\DNS\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\utils\executor.py", line 45, in start_polling
executor.start_polling(
File "C:\Users\DNS\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\utils\executor.py", line 320, in start_polling
loop.run_until_complete(self._startup_polling())
File "C:\Users\DNS\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 646, in run_until_complete
return future.result()
File "C:\Users\DNS\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\utils\executor.py", line 372, in _startup_polling
await self._welcome()
File "C:\Users\DNS\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\utils\executor.py", line 361, in _welcome
user = await self.dispatcher.bot.me
File "C:\Users\DNS\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\bot\bot.py", line 30, in me
setattr(self, '_me', await self.get_me())
File "C:\Users\DNS\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\bot\bot.py", line 233, in get_me
result = await self.request(api.Methods.GET_ME, payload)
File "C:\Users\DNS\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\bot\base.py", line 236, in request
return await api.make_request(await self.get_session(), self.server, self.__token, method, data, files,
File "C:\Users\DNS\AppData\Local\Programs\Python\Python310\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 "C:\Users\DNS\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\bot\api.py", line 121, in check_result
exceptions.Unauthorized.detect(description)
File "C:\Users\DNS\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\utils\exceptions.py", line 141, in detect
raise cls(description)
aiogram.utils.exceptions.Unauthorized: Unauthorized
libssl.py [LINE:79] #INFO [2023-11-29 13:46:38,095] Failed to load SSL library: <class 'OSError'> (no library called "ssl" found)
aes.py [LINE:25] #INFO [2023-11-29 13:46:38,095] cryptg module not installed and libssl not found, falling back to (slower) Python encryption
c:\Users\DNS\Desktop\ll\app.py:11: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
base_events.py [LINE:1744] #ERROR [2023-11-29 13:46:41,938] Task exception was never retrieved
future: <Task finished name='Task-1' coro=<game_time() done, defined at c:\Users\DNS\Desktop\ll\data\functions\functions.py:97> exception=TypeError("'NoneType' object is not subscriptable")>
Traceback (most recent call last):
File "c:\Users\DNS\Desktop\ll\data\functions\functions.py", line 101, in game_time
if get_jackpot_end_time() < now_time:
File "c:\Users\DNS\Desktop\ll\data\functions\db.py", line 456, in get_jackpot_end_time
row = cursor.fetchone()[0]
TypeError: 'NoneType' object is not subscriptable
executor.py [LINE:329] #WARNING [2023-11-29 13:46:42,498] Goodbye!
Traceback (most recent call last):
File "c:\Users\DNS\Desktop\ll\app.py", line 13, in <module>
executor.start_polling(dp)
File "C:\Users\DNS\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\utils\executor.py", line 45, in start_polling
executor.start_polling(
File "C:\Users\DNS\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\utils\executor.py", line 320, in start_polling
loop.run_until_complete(self._startup_polling())
File "C:\Users\DNS\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 646, in run_until_complete
return future.result()
File "C:\Users\DNS\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\utils\executor.py", line 372, in _startup_polling
await self._welcome()
File "C:\Users\DNS\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\utils\executor.py", line 361, in _welcome
user = await self.dispatcher.bot.me
File "C:\Users\DNS\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\bot\bot.py", line 30, in me
setattr(self, '_me', await self.get_me())
File "C:\Users\DNS\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\bot\bot.py", line 233, in get_me
result = await self.request(api.Methods.GET_ME, payload)
File "C:\Users\DNS\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\bot\base.py", line 236, in request
return await api.make_request(await self.get_session(), self.server, self.__token, method, data, files,
File "C:\Users\DNS\AppData\Local\Programs\Python\Python310\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 "C:\Users\DNS\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\bot\api.py", line 121, in check_result
exceptions.Unauthorized.detect(description)
File "C:\Users\DNS\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\utils\exceptions.py", line 141, in detect
raise cls(description)
aiogram.utils.exceptions.Unauthorized: Unauthorized
Последнее редактирование: