Replies: 2 comments 2 replies
-
Does anyone know how to solve this? Thank you. |
Beta Was this translation helpful? Give feedback.
-
This is what AI says to do my friend:) XO barry You're getting a WinError 10060 timeout error, which basically means that your run.py script (specifically inside the face swapping module) is trying to download a file from the internet but can't connect to the server — it either takes too long, is blocked, or unreachable. 🔍 What's Happening File "modules\processors\frame\face_swapper.py", line 32, in pre_check That’s where the connection fails with: URLError: <urlopen error [WinError 10060] Connection attempt failed> Possible Causes and Fixes
The server hosting the file is down, or Your firewall, antivirus, or router is blocking Python or that specific request. ✅ Try: Temporarily disable your firewall or antivirus (like Windows Defender or Norton) just to test. Allow python.exe through your firewall: Go to Control Panel > Windows Defender Firewall > Allow an app or feature through Windows Defender Firewall. Add python.exe and allow it on both Private and Public networks. Proxy or VPN Conflicts ✅ Try: Disable VPN or proxy temporarily and run again. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
1、win10 X64
2、Python 3.11.9,pip 25.1.1 from C:\Program Files\Python311\Lib\site-packages\pip (python 3.11)、ffmpeg、Visual Studio 2022 Build Tools "Desktop development with C++" 、window11 SDK 。
3、pip install -r requirements.txt no problem
4、run: python run.py
PS C:\DeepLiveCammain> python run.py
Traceback (most recent call last):
File "C:\Program Files\Python311\Lib\urllib\request.py", line 1348, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "C:\Program Files\Python311\Lib\http\client.py", line 1303, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\Program Files\Python311\Lib\http\client.py", line 1349, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Program Files\Python311\Lib\http\client.py", line 1298, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Program Files\Python311\Lib\http\client.py", line 1058, in _send_output
self.send(msg)
File "C:\Program Files\Python311\Lib\http\client.py", line 996, in send
self.connect()
File "C:\Program Files\Python311\Lib\http\client.py", line 1468, in connect
super().connect()
File "C:\Program Files\Python311\Lib\http\client.py", line 962, in connect
self.sock = self._create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\socket.py", line 851, in create_connection
raise exceptions[0]
File "C:\Program Files\Python311\Lib\socket.py", line 836, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\DeepLiveCammain\run.py", line 6, in
core.run()
File "C:\DeepLiveCammain\modules\core.py", line 252, in run
if not frame_processor.pre_check():
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\DeepLiveCammain\modules\processors\frame\face_swapper.py", line 32, in pre_check
conditional_download(
File "C:\DeepLiveCammain\modules\utilities.py", line 196, in conditional_download
request = urllib.request.urlopen(url) # type: ignore[attr-defined]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\urllib\request.py", line 216, in urlopen
return opener.open(url, data, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\urllib\request.py", line 519, in open
response = self._open(req, data)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\urllib\request.py", line 536, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\urllib\request.py", line 496, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\urllib\request.py", line 1391, in https_open
return self.do_open(http.client.HTTPSConnection, req,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\urllib\request.py", line 1351, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试 失败。>
Beta Was this translation helpful? Give feedback.
All reactions