Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/urllib/request.py", line 1319, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
encode_chunked=req.has_header('Transfer-encoding'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/http/client.py", line 1338, in request
self._send_request(method, url, body, headers, encode_chunked)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/http/client.py", line 1384, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^......
trans/recognition/__init__.py", line 178, in run
return OpenaiWhisperRecogn(**kwargs).run()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^File "/Users/m.i.a369/Documents/trae_projects/pyvideotrans/videotrans/recognition/_base.py", line 78, in run
return self._exec()
~~~~~~~~~~^^File "/Users/m.i.a369/Documents/trae_projects/pyvideotrans/videotrans/recognition/_openai.py", line 46, in _exec
model = whisper.load_model(
self.model_name,
device="cuda" if self.is_cuda else "cpu",
download_root=config.ROOT_DIR + "/models"
)File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/whisper/__init__.py", line 137, in load_model
checkpoint_file = _download(_MODELS[name], download_root, in_memory)File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/whisper/__init__.py", line 73, in _download
with urllib.request.urlopen(url) as source, open(download_target, "wb") as output:
~~~~~~~~~~~~~~~~~~~~~~^^^^^File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/urllib/request.py", line 189, in urlopen
return opener.open(url, data, timeout)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/urllib/request.py", line 489, in open
response = self._open(req, data)File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/urllib/request.py", line 506, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
'_open', req)File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/urllib/request.py", line 466, in _call_chain
result = func(*args)File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/urllib/request.py", line 1367, in https_open
return self.do_open(http.client.HTTPSConnection, req,
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
context=self._context)
^^^^^^^^^^^^^^^^^^^^^^File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/urllib/request.py", line 1322, in do_open
raise URLError(err)urllib.error.URLError:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/m.i.a369/Documents/trae_projects/pyvideotrans/videotrans/task/job.py", line 116, in run
from videotrans.configure._except import get_msg_from_exceptFile "/Users/m.i.a369/Documents/trae_projects/pyvideotrans/videotrans/configure/_except.py", line 3, in
import aiohttpModuleNotFoundError: No module named 'aiohttp'
=
system:macOS-26.0.1-arm64-arm-64bit-Mach-O
version:v3.82
frozen:False
language:zh
root_dir:/Users/m.i.a369/Documents/trae_projects/pyvideotrans
Python: 3.13.7 (v3.13.7:bcee1c32211, Aug 14 2025, 19:10:51) [Clang 16.0.0 (clang-1600.0.26.6)]