我使用了代理,python版本为3.10,但是运行出现下面的错误,可以帮我一下吗
INFO | main::292 - Memories:{}
2022-12-13 23:12:19,775 - apscheduler.scheduler - INFO - Adding job tentatively -- it will be properly scheduled when the scheduler starts
Traceback (most recent call last):
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\anyio-3.6.2-py3.10.egg\anyio_core_sockets.py", line 164, in try_connect
stream = await asynclib.connect_tcp(remote_host, remote_port, local_address)
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\anyio-3.6.2-py3.10.egg\anyio_backends_asyncio.py", line 1691, in connect_tcp
await get_running_loop().create_connection(
File "C:\Program Files\Python310\lib\asyncio\base_events.py", line 1070, in create_connection
raise exceptions[0]
File "C:\Program Files\Python310\lib\asyncio\base_events.py", line 1054, in create_connection
sock = await self._connect_sock(
File "C:\Program Files\Python310\lib\asyncio\base_events.py", line 963, in _connect_sock
await self.sock_connect(sock, address)
File "C:\Program Files\Python310\lib\asyncio\proactor_events.py", line 709, in sock_connect
return await self._proactor.connect(sock, address)
File "C:\Program Files\Python310\lib\asyncio\windows_events.py", line 821, in _poll
value = callback(transferred, key, ov)
File "C:\Program Files\Python310\lib\asyncio\windows_events.py", line 608, in finish_connect
ov.getresult()
ConnectionRefusedError: [WinError 1225] 远程计算机拒绝网络连接。
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\httpcore-0.16.2-py3.10.egg\httpcore_exceptions.py", line 10, in map_exceptions
yield
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\httpcore-0.16.2-py3.10.egg\httpcore\backends\asyncio.py", line 109, in connect_tcp
stream: anyio.abc.ByteStream = await anyio.connect_tcp(
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\anyio-3.6.2-py3.10.egg\anyio_core_sockets.py", line 222, in connect_tcp
raise OSError("All connection attempts failed") from cause
OSError: All connection attempts failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\httpx-0.23.1-py3.10.egg\httpx_transports\default.py", line 60, in map_httpcore_exceptions
yield
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\httpx-0.23.1-py3.10.egg\httpx_transports\default.py", line 353, in handle_async_request
resp = await self._pool.handle_async_request(req)
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\httpcore-0.16.2-py3.10.egg\httpcore_async\connection_pool.py", line 253, in handle_async_request
raise exc
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\httpcore-0.16.2-py3.10.egg\httpcore_async\connection_pool.py", line 237, in handle_async_request
response = await connection.handle_async_request(request)
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\httpcore-0.16.2-py3.10.egg\httpcore_async\socks_proxy.py", line 290, in handle_async_request
raise exc
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\httpcore-0.16.2-py3.10.egg\httpcore_async\socks_proxy.py", line 225, in handle_async_request
stream = await self._network_backend.connect_tcp(**kwargs)
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\httpcore-0.16.2-py3.10.egg\httpcore\backends\auto.py", line 29, in connect_tcp
return await self._backend.connect_tcp(
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\httpcore-0.16.2-py3.10.egg\httpcore\backends\asyncio.py", line 107, in connect_tcp
with map_exceptions(exc_map):
File "C:\Program Files\Python310\lib\contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\httpcore-0.16.2-py3.10.egg\httpcore_exceptions.py", line 14, in map_exceptions
raise to_exc(exc)
httpcore.ConnectError: All connection attempts failed
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\python_telegram_bot-20.0a6-py3.10.egg\telegram\request_httpxrequest.py", line 183, in do_request
res = await self._client.request(
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\httpx-0.23.1-py3.10.egg\httpx_client.py", line 1533, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\httpx-0.23.1-py3.10.egg\httpx_client.py", line 1620, in send
response = await self._send_handling_auth(
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\httpx-0.23.1-py3.10.egg\httpx_client.py", line 1648, in _send_handling_auth
response = await self._send_handling_redirects(
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\httpx-0.23.1-py3.10.egg\httpx_client.py", line 1685, in _send_handling_redirects
response = await self._send_single_request(request)
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\httpx-0.23.1-py3.10.egg\httpx_client.py", line 1722, in _send_single_request
response = await transport.handle_async_request(request)
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\httpx-0.23.1-py3.10.egg\httpx_transports\default.py", line 352, in handle_async_request
with map_httpcore_exceptions():
File "C:\Program Files\Python310\lib\contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\httpx-0.23.1-py3.10.egg\httpx_transports\default.py", line 77, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: All connection attempts failed
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\LENOVO\Desktop\ChatGPTBot-master\main.py", line 319, in
application.run_polling()
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\python_telegram_bot-20.0a6-py3.10.egg\telegram\ext_application.py", line 685, in run_polling
return self.__run(
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\python_telegram_bot-20.0a6-py3.10.egg\telegram\ext_application.py", line 873, in __run
raise exc
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\python_telegram_bot-20.0a6-py3.10.egg\telegram\ext_application.py", line 862, in __run
loop.run_until_complete(self.initialize())
File "C:\Program Files\Python310\lib\asyncio\base_events.py", line 649, in run_until_complete
return future.result()
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\python_telegram_bot-20.0a6-py3.10.egg\telegram\ext_application.py", line 372, in initialize
await self.bot.initialize()
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\python_telegram_bot-20.0a6-py3.10.egg\telegram\ext_extbot.py", line 252, in initialize
await super().initialize()
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\python_telegram_bot-20.0a6-py3.10.egg\telegram_bot.py", line 518, in initialize
await self.get_me()
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\python_telegram_bot-20.0a6-py3.10.egg\telegram\ext_extbot.py", line 1647, in get_me
return await super().get_me(
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\python_telegram_bot-20.0a6-py3.10.egg\telegram_bot.py", line 313, in decorator
result = await func(*args, **kwargs) # skipcq: PYL-E1102
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\python_telegram_bot-20.0a6-py3.10.egg\telegram_bot.py", line 663, in get_me
result = await self._post(
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\python_telegram_bot-20.0a6-py3.10.egg\telegram_bot.py", line 395, in _post
return await self._do_post(
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\python_telegram_bot-20.0a6-py3.10.egg\telegram\ext_extbot.py", line 306, in _do_post
return await super()._do_post(
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\python_telegram_bot-20.0a6-py3.10.egg\telegram_bot.py", line 426, in _do_post
return await request.post(
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\python_telegram_bot-20.0a6-py3.10.egg\telegram\request_baserequest.py", line 167, in post
result = await self._request_wrapper(
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\python_telegram_bot-20.0a6-py3.10.egg\telegram\request_baserequest.py", line 290, in _request_wrapper
raise exc
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\python_telegram_bot-20.0a6-py3.10.egg\telegram\request_baserequest.py", line 276, in _request_wrapper
code, payload = await self.do_request(
File "C:\Users\LENOVO\AppData\Roaming\Python\Python310\site-packages\python_telegram_bot-20.0a6-py3.10.egg\telegram\request_httpxrequest.py", line 204, in do_request
raise NetworkError(f"httpx HTTPError: {err}") from err