Задать вопрос
  • При запуске элементарного кода(правильного) на vkbottle выдает огромное количество ошибок. Что делать?

    @maxim_tlgrm Автор вопроса
    сертификаты чекнул, пусто, мб вирусы, нужно антивирус качать
  • При запуске элементарного кода(правильного) на vkbottle выдает огромное количество ошибок. Что делать?

    @maxim_tlgrm Автор вопроса
    я интернет раздаю на ноут с телефона, возможно поэтому что-то с провайдером может быть что-то, но на вирусы тож чекну.
  • При запуске элементарного кода(правильного) на vkbottle выдает огромное количество ошибок. Что делать?

    @maxim_tlgrm Автор вопроса
    INFO | 2023-08-19 15:30:44 | vkbottle.framework.bot.bot:run_forever:90 > Loop will be ran forever
    INFO | 2023-08-19 15:30:44 | vkbottle.framework.bot.bot:run_polling:79 > Starting polling for >...>
    DEBUG | 2023-08-19 15:30:44 | vkbottle.polling.bot_polling:get_server:49 > Getting polling server...
    DEBUG | 2023-08-19 15:30:44 | vkbottle.api.api:validate_request:112 > API request was validated
    Task exception was never retrieved
    future: exception=ClientConnectorCertificateError(ConnectionKey(host='api.vk.com', port=443, is_ssl=True, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=None), SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1002)'))>
    Traceback (most recent call last):
    File "/Users/maks/PycharmProjects/vkbottle test/venv/lib/python3.11/site-packages/aiohttp/connector.py", line 980, in _wrap_create_connection
    return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_events.py", line 1112, in create_connection
    transport, protocol = await self._create_connection_transport(
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_events.py", line 1145, in _create_connection_transport
    await waiter
    File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/sslproto.py", line 575, in _on_handshake_complete
    raise handshake_exc
    File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/sslproto.py", line 557, in _do_handshake
    self._sslobj.do_handshake()
    File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ssl.py", line 979, in do_handshake
    self._sslobj.do_handshake()
    ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1002)

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last):
    File "/Users/maks/PycharmProjects/vkbottle test/venv/lib/python3.11/site-packages/vkbottle/framework/bot/bot.py", line 81, in run_polling
    async for event in polling.listen():
    File "/Users/maks/PycharmProjects/vkbottle test/venv/lib/python3.11/site-packages/vkbottle/polling/bot_polling.py", line 57, in listen
    server = await self.get_server()
    ^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/maks/PycharmProjects/vkbottle test/venv/lib/python3.11/site-packages/vkbottle/polling/bot_polling.py", line 51, in get_server
    self.group_id = (await self.api.request("groups.getById", {}))["response"][0]["id"]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/maks/PycharmProjects/vkbottle test/venv/lib/python3.11/site-packages/vkbottle/api/api.py", line 72, in request
    response = await self.http_client.request_text(
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/maks/PycharmProjects/vkbottle test/venv/lib/python3.11/site-packages/vkbottle/http/aiohttp.py", line 73, in request_text
    response = await self.request_raw(url, method, data, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/maks/PycharmProjects/vkbottle test/venv/lib/python3.11/site-packages/vkbottle/http/aiohttp.py", line 50, in request_raw
    async with self.session.request(url=url, method=method, data=data, **kwargs) as response:
    File "/Users/maks/PycharmProjects/vkbottle test/venv/lib/python3.11/site-packages/aiohttp/client.py", line 1141, in __aenter__
    self._resp = await self._coro
    ^^^^^^^^^^^^^^^^
    File "/Users/maks/PycharmProjects/vkbottle test/venv/lib/python3.11/site-packages/aiohttp/client.py", line 536, in _request
    conn = await self._connector.connect(
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/maks/PycharmProjects/vkbottle test/venv/lib/python3.11/site-packages/aiohttp/connector.py", line 540, in connect
    proto = await self._create_connection(req, traces, timeout)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/maks/PycharmProjects/vkbottle test/venv/lib/python3.11/site-packages/aiohttp/connector.py", line 901, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/maks/PycharmProjects/vkbottle test/venv/lib/python3.11/site-packages/aiohttp/connector.py", line 1209, in _create_direct_connection
    raise last_exc
    File "/Users/maks/PycharmProjects/vkbottle test/venv/lib/python3.11/site-packages/aiohttp/connector.py", line 1178, in _create_direct_connection
    transp, proto = await self._wrap_create_connection(
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/maks/PycharmProjects/vkbottle test/venv/lib/python3.11/site-packages/aiohttp/connector.py", line 982, in _wrap_create_connection
    raise ClientConnectorCertificateError(req.connection_key, exc) from exc
    aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host api.vk.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1002)')]

    не помогает токен создал новый в итоге ничего не поменялось
  • При запуске элементарного кода(правильного) на vkbottle выдает огромное количество ошибок. Что делать?

    @maxim_tlgrm Автор вопроса
    Requirement already satisfied: aiofiles<22.2,>=0.8 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from vkbottle) (22.1.0)
    Requirement already satisfied: aiohttp<4.0.0,>=3.8.1 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from vkbottle) (3.8.4)
    Requirement already satisfied: choicelib<0.2.0,>=0.1.5 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from vkbottle) (0.1.5)
    Requirement already satisfied: pydantic<2.0.0,>=1.9.1 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from vkbottle) (1.10.12)
    Requirement already satisfied: typing-extensions<5.0.0,>=4.3.0 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from vkbottle) (4.7.1)
    Requirement already satisfied: vbml<2.0,>=1.1.post1 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from vkbottle) (1.1.post1)
    Requirement already satisfied: vkbottle-types<6.0.0.0,>=5.131.146.9 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from vkbottle) (5.131.146.16)
    Requirement already satisfied: watchfiles<0.19,>=0.15 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from vkbottle) (0.18.1)
    Requirement already satisfied: attrs>=17.3.0 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from aiohttp<4.0.0,>=3.8.1->vkbottle) (23.1.0)
    Requirement already satisfied: charset-normalizer<4.0,>=2.0 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from aiohttp<4.0.0,>=3.8.1->vkbottle) (3.1.0)
    Requirement already satisfied: multidict<7.0,>=4.5 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from aiohttp<4.0.0,>=3.8.1->vkbottle) (6.0.4)
    Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from aiohttp<4.0.0,>=3.8.1->vkbottle) (4.0.2)
    Requirement already satisfied: yarl<2.0,>=1.0 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from aiohttp<4.0.0,>=3.8.1->vkbottle) (1.9.2)
    Requirement already satisfied: frozenlist>=1.1.1 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from aiohttp<4.0.0,>=3.8.1->vkbottle) (1.3.3)
    Requirement already satisfied: aiosignal>=1.1.2 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from aiohttp<4.0.0,>=3.8.1->vkbottle) (1.3.1)
    Requirement already satisfied: anyio>=3.0.0 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from watchfiles<0.19,>=0.15->vkbottle) (3.7.1)
    Requirement already satisfied: idna>=2.8 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from anyio>=3.0.0->watchfiles<0.19,>=0.15->vkbottle) (3.4)
    Requirement already satisfied: sniffio>=1.1 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from anyio>=3.0.0->watchfiles<0.19,>=0.15->vkbottle) (1.3.0)
    Installing collected packages: vkbottle
    Successfully installed vkbottle-4.3.12

    написал, то что вы ответили, выбивает это