Traceback (most recent call last):
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connection.py", line 175, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\util\connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\socket.py", line 748, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11004] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connectionpool.py", line 710, in urlopen
chunked=chunked,
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connectionpool.py", line 1040, in _validate_conn
conn.connect()
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connection.py", line 187, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 11004] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\adapters.py", line 499, in send
timeout=timeout,
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connectionpool.py", line 786, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\util\retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='minecraft.cdnvideo.ru', port=443): Max retries exceeded with url: /image/cache/catalog/products/plush/ocelot_big-1200x1200.jpg (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 11004] getaddrinfo failed'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\python\Для выступления\Python File.py", line 228, in
bot.polling(none_stop=True, interval=0)
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\__init__.py", line 622, in polling
logger_level=logger_level, allowed_updates=allowed_updates)
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\__init__.py", line 695, in __threaded_polling
raise e
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\__init__.py", line 651, in __threaded_polling
self.worker_pool.raise_exceptions()
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\util.py", line 147, in raise_exceptions
raise self.exception_info
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\util.py", line 93, in run
task(*args, **kwargs)
File "E:\python\Для выступления\Python File.py", line 42, in buy
bot.send_photo(message.chat.id, get('https://minecraft.cdnvideo.ru/image/cache/catalog/...').content)
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\api.py", line 73, in get
return request("get", url, params=params, **kwargs)
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\adapters.py", line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='minecraft.cdnvideo.ru', port=443): Max retries exceeded with url: /image/cache/catalog/products/plush/ocelot_big-1200x1200.jpg (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 11004] getaddrinfo failed'))
>>>
Покажи код, так легче будет разобратся
я думаю установлена telebot
чтобы удалить ее надо нажать на win+r
вбить cmd
и тебе откроется командная строка
в ней вбей
pip uninstall telebot
pip install pytelegrambotapi
Написано
Войдите на сайт
Чтобы задать вопрос и получить на него квалифицированный ответ.
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connection.py", line 175, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\util\connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\socket.py", line 748, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11004] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connectionpool.py", line 710, in urlopen
chunked=chunked,
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connectionpool.py", line 1040, in _validate_conn
conn.connect()
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connection.py", line 187, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 11004] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\adapters.py", line 499, in send
timeout=timeout,
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\connectionpool.py", line 786, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\urllib3\util\retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='minecraft.cdnvideo.ru', port=443): Max retries exceeded with url: /image/cache/catalog/products/plush/ocelot_big-1200x1200.jpg (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 11004] getaddrinfo failed'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\python\Для выступления\Python File.py", line 228, in
bot.polling(none_stop=True, interval=0)
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\__init__.py", line 622, in polling
logger_level=logger_level, allowed_updates=allowed_updates)
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\__init__.py", line 695, in __threaded_polling
raise e
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\__init__.py", line 651, in __threaded_polling
self.worker_pool.raise_exceptions()
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\util.py", line 147, in raise_exceptions
raise self.exception_info
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\util.py", line 93, in run
task(*args, **kwargs)
File "E:\python\Для выступления\Python File.py", line 42, in buy
bot.send_photo(message.chat.id, get('https://minecraft.cdnvideo.ru/image/cache/catalog/...').content)
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\api.py", line 73, in get
return request("get", url, params=params, **kwargs)
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "C:\Users\scorpio\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\adapters.py", line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='minecraft.cdnvideo.ru', port=443): Max retries exceeded with url: /image/cache/catalog/products/plush/ocelot_big-1200x1200.jpg (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 11004] getaddrinfo failed'))
>>>